修复返补提现逻辑

This commit is contained in:
wangxiaowei 2024-12-11 09:33:43 +08:00
parent a674c72c46
commit aec615d75a
2 changed files with 29 additions and 4 deletions

@ -418,7 +418,22 @@
post_station_time: this.post_station_time,
local_goods_id: this.goods_id,
}
// huifu(pay_data).then((result) => {
// if (result.code == 1) {
// const pay = {
// nonceStr: result.data.nonceStr,
// package: result.data.package,
// paySign: result.data.paySign,
// signType: result.data.signType,
// timeStamp: result.data.timeStamp,
// }
// pay_data.id = result.data.id
// pay_data.acc_cust_id = acc_cust_id
// this.handleWechatPay(pay, pay_data);
// }
// })
// return false
const acc_cust_id = parseInt(this.info.acc_cust_id)
if (acc_cust_id > 0) {
gtpay(pay_data).then((result) => {

@ -194,6 +194,7 @@
setTimeout(() => {
this.getBillionsWithdrawConfigFun()
uni.hideLoading()
this.isWithdrawl = false
}, 200)
},
// 准备支付
@ -223,7 +224,7 @@
return;
}
if (Number(data.withdrawl_money) > Number(this.widthDrawConfig.able_withdraw)) {
if (Number(data.withdrawl_money) > Number(this.widthDrawConfig.able_withdraw) && this.isWithdrawl == false) {
this.$toast({
title: '可提现金额不足'
});
@ -296,6 +297,7 @@
this.currentTab = 1
const price = data.withdrawal_amount.split('.')
this.form.withdrawl_money = price[0]
this.withdrawlMoney = price[0]
this.withdrawlBillionId = data.billions_id
},
@ -321,7 +323,15 @@
if (this.currentTab == 1) {
// 补贴提现
setTimeout(() => {
this.form.withdrawl_money = value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');
const val = value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')
if (this.isWithdrawl && val > this.withdrawlMoney) {
this.form.withdrawl_money = this.withdrawlMoney
return this.$toast({
title: '输入的金额不能大于可提现金额'
})
}
this.form.withdrawl_money = val
}, 0)
} else if (this.currentTab == 2) {
// 充值到余额