消费返补可提现金额添加刷新按钮

This commit is contained in:
wangxiaowei 2024-09-05 17:40:20 +08:00
parent 64c535c0bb
commit 6f48eba4a1

@ -19,9 +19,14 @@
<text class="font-size-46 m-r-10 normal">¥</text>
<u-input @input="setMoney" v-model="form.withdrawl_money" placeholder="0.00" :custom-style="{'font-size': '66rpx'}" />
</view>
<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>
<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>
</view>
<view class="m-l-20" @click="reloadMoney">
<u-image width="40rpx" height="40rpx" :src="aliOSSDomain + 'uniapp/reload.png'"></u-image>
</view>
</view>
</view>
<view class="muted xs m-t-30 rule-ele" v-if="widthDrawConfig.withdrawl_rule">
@ -41,9 +46,14 @@
<text class="font-size-46 m-r-10 normal">¥</text>
<u-input @input="setMoney" v-model="form.recharge_money" placeholder="0.00" :custom-style="{'font-size': '66rpx'}" />
</view>
<view class="flex-col flex-1 text-right">
<text class="xs primary" @tap="form.recharge_money=widthDrawConfig.able_withdraw">全部充值</text>
<text class="xs muted m-t-10">可充值金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}}</text>
<view class="flex">
<view class="flex-col flex-1 text-right">
<text class="xs primary" @tap="form.recharge_money=widthDrawConfig.able_withdraw">全部充值</text>
<text class="xs muted m-t-10">可充值金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}}</text>
</view>
<view class="m-l-20" @click="reloadMoney">
<u-image width="40rpx" height="40rpx" :src="aliOSSDomain + 'uniapp/reload.png'"></u-image>
</view>
</view>
</view>
<view class="muted xs m-t-30" v-if="widthDrawConfig.rule">
@ -145,6 +155,16 @@
uni.$off('refreshBillionsWithdrawConfigFun')
},
methods: {
reloadMoney() {
uni.showLoading({
title: '加载中',
mask: true
})
setTimeout(() => {
this.getBillionsWithdrawConfigFun()
uni.hideLoading()
}, 200)
},
// 准备支付
startPay() {
const data = { ...this.form }
@ -181,6 +201,7 @@
this.payMoney = data.withdrawl_money
this.payInfo = '消费返补提现 ¥' + data.withdrawl_money;
this.showPay = true
} else if(this.currentTab == 2) {
// 充值
if (!Number(data.recharge_money)) {
@ -209,12 +230,13 @@
title: '可充值金额不足'
});
return;
}
this.payMoney = data.recharge_money
this.payInfo = '充值 ¥' + data.recharge_money + ' 到本地余额'
this.onSubmit(true)
// this.payMoney = data.recharge_money
// this.payInfo = '充值 ¥' + data.recharge_money + ' 到本地余额'
}
this.showPay = true
},
changeOrderTab(index) {