|
@@ -64,20 +64,25 @@
|
|
|
<text>¥ </text> {{infoData.balance}}
|
|
<text>¥ </text> {{infoData.balance}}
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
- 可提现余额 ¥ {{infoData.txBalance}}
|
|
|
|
|
|
|
+ 可提现余额 ¥ {{infoData.txBalance}}
|
|
|
|
|
+ <text v-if="infoData.txBalance > 0" @click="checkToApplyCash" class="to-cash">提现</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <button @click="applyCach" class="admin-button-com default" >提现</button>
|
|
|
|
|
|
|
+ <button @click="pageTo({url:'/pagesStore/me/recharge'})" class="admin-button-com default" >充值</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="module-com content_box user-open_bx">
|
|
<view class="module-com content_box user-open_bx">
|
|
|
<view class="input-line-wrap">
|
|
<view class="input-line-wrap">
|
|
|
<tui-list-cell @click="pageTo({url:'/pagesStore/me/withdraw'})" class="line-cell" :hover="false" :arrow="true">
|
|
<tui-list-cell @click="pageTo({url:'/pagesStore/me/withdraw'})" class="line-cell" :hover="false" :arrow="true">
|
|
|
<div class="tui-title">提现记录</div>
|
|
<div class="tui-title">提现记录</div>
|
|
|
- <!-- <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请输入" maxlength="50" type="text" /> -->
|
|
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell @click="pageTo({url:'/pagesStore/me/incomeExpenses'})" class="line-cell" :hover="false" :arrow="true">
|
|
<tui-list-cell @click="pageTo({url:'/pagesStore/me/incomeExpenses'})" class="line-cell" :hover="false" :arrow="true">
|
|
|
<div class="tui-title">收支明细</div>
|
|
<div class="tui-title">收支明细</div>
|
|
|
- <!-- <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请输入" maxlength="50" type="text" /> -->
|
|
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+ <tui-list-cell @click="pageTo({url:'/pagesStore/me/rechargeList'})" class="line-cell" :hover="false" :arrow="true">
|
|
|
|
|
+ <div class="tui-title">充值记录</div>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+ <tui-list-cell @click="pageTo({url:'/pagesStore/me/cashSet'})" class="line-cell" :hover="false" :arrow="true">
|
|
|
|
|
+ <div class="tui-title">提现帐号设置</div>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -123,7 +128,6 @@
|
|
|
shopShow(){
|
|
shopShow(){
|
|
|
this.shopId = this.getLoginInfo.shopId
|
|
this.shopId = this.getLoginInfo.shopId
|
|
|
this.$refs.dorpdownSelect.dropdownShow = true;
|
|
this.$refs.dorpdownSelect.dropdownShow = true;
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
async init(){
|
|
async init(){
|
|
|
try {
|
|
try {
|
|
@@ -151,11 +155,29 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- async applyCach(){
|
|
|
|
|
|
|
+ checkToApplyCash(){
|
|
|
|
|
+ let self = this;
|
|
|
|
|
+ //没有设置提现帐号则提示
|
|
|
|
|
+ if(self.infoData.cashAccount == ''){
|
|
|
|
|
+ console.log(1111)
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '您还没有设置提现帐号',
|
|
|
|
|
+ confirmText: "去设置",
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ self.applyCash()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ self.applyCash()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ async applyCash(){
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
title: '加载中'
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ });
|
|
|
try {
|
|
try {
|
|
|
const { data } = await applyCash({})
|
|
const { data } = await applyCash({})
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -308,6 +330,13 @@
|
|
|
height: 50upx;
|
|
height: 50upx;
|
|
|
border-radius: 25upx;
|
|
border-radius: 25upx;
|
|
|
}
|
|
}
|
|
|
|
|
+ & .to-cash{
|
|
|
|
|
+ margin-left:20upx;
|
|
|
|
|
+ border:1upx solid rgba(0,0,0,.2);
|
|
|
|
|
+ border-radius:18upx;
|
|
|
|
|
+ font-size:1upx;
|
|
|
|
|
+ padding:0 15upx 0 15upx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
& .user-open_bx {
|
|
& .user-open_bx {
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|