修改文本
This commit is contained in:
parent
2c09b95a5e
commit
3ac51e0d83
@ -36,7 +36,8 @@
|
||||
<view class="flex">
|
||||
<view class="flex-col flex-1 text-right">
|
||||
<text class="xs primary" @tap="form.withdrawl_money=widthDrawConfig.able_withdraw">全部提现</text>
|
||||
<text class="xs muted m-t-10">可提现金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}}</text>
|
||||
<text class="xs muted m-t-10" v-if="!isWithdrawl">可提现金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}}</text>
|
||||
<text class="xs muted m-t-10" v-if="isWithdrawl">可提现金额 ¥ {{form.withdrawl_money}}</text>
|
||||
</view>
|
||||
<view class="m-l-20" @click="reloadMoney">
|
||||
<u-image width="40rpx" height="40rpx" :src="aliOSS + 'uniapp/reload.png'"></u-image>
|
||||
@ -112,7 +113,8 @@
|
||||
getBillionsWithdrawConfig,
|
||||
applyBillionsWithdrawl,
|
||||
rechargeBalance,
|
||||
postBillions
|
||||
postBillions,
|
||||
advance
|
||||
} from "@/api/user";
|
||||
|
||||
import {mapGetters} from 'vuex'
|
||||
@ -159,6 +161,8 @@
|
||||
showPay: false,
|
||||
payInfo: '',
|
||||
payMoney: '',
|
||||
isWithdrawl: false,
|
||||
withdrawlBillionId: 0
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -252,8 +256,6 @@
|
||||
title: '可充值金额不足'
|
||||
});
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
this.onSubmit(true)
|
||||
// this.payMoney = data.recharge_money
|
||||
@ -280,8 +282,11 @@
|
||||
},
|
||||
|
||||
setSubsidyWithdrawl(data) {
|
||||
this.isWithdrawl = true
|
||||
this.currentTab = 1
|
||||
this.form.withdrawl_money = data.order_price
|
||||
const price = data.withdrawal_amount.split('.')
|
||||
this.form.withdrawl_money = price[0]
|
||||
this.withdrawlBillionId = data.billions_id
|
||||
},
|
||||
|
||||
changeShow(index) {
|
||||
@ -327,7 +332,14 @@
|
||||
})
|
||||
|
||||
data.money = data.withdrawl_money
|
||||
const result = await applyBillionsWithdrawl(data);
|
||||
if (this.isWithdrawl) {
|
||||
const result = await advance({
|
||||
billions_id: this.withdrawlBillionId,
|
||||
money: data.money
|
||||
});
|
||||
} else {
|
||||
const result = await applyBillionsWithdrawl(data);
|
||||
}
|
||||
|
||||
if (result.code == 1) {
|
||||
setTimeout(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user