添加消费反补异步请求
This commit is contained in:
parent
a1a0f9e145
commit
e46c82fb38
@ -97,7 +97,8 @@
|
||||
applyWithdraw,
|
||||
getBillionsWithdrawConfig,
|
||||
applyBillionsWithdrawl,
|
||||
rechargeBalance
|
||||
rechargeBalance,
|
||||
postBillions
|
||||
} from "@/api/user";
|
||||
|
||||
import {mapGetters} from 'vuex'
|
||||
@ -316,22 +317,36 @@
|
||||
mask: true
|
||||
})
|
||||
|
||||
|
||||
data.money = data.recharge_money
|
||||
const result = await rechargeBalance(data)
|
||||
|
||||
if (result.code == 1) {
|
||||
uni.$emit('refreshSubsidyPage')
|
||||
this.showPopup = true
|
||||
this.tipsText = '已成功充值¥' + data.recharge_money
|
||||
this.postBillionsFunc(data.recharge_money, result.data)
|
||||
|
||||
setTimeout(() => {
|
||||
uni.$emit('refreshSubsidyPage')
|
||||
this.showPopup = true
|
||||
this.tipsText = '已成功充值¥' + data.recharge_money
|
||||
this.form.recharge_money = ''
|
||||
uni.hideLoading()
|
||||
}, 2500)
|
||||
}
|
||||
|
||||
this.form.recharge_money = ''
|
||||
uni.hideLoading()
|
||||
}
|
||||
this.showPay = false
|
||||
this.getBillionsWithdrawConfigFun();
|
||||
}
|
||||
},
|
||||
|
||||
// 异步请求
|
||||
postBillionsFunc(money, data) {
|
||||
postBillions({
|
||||
money,
|
||||
id: data.id,
|
||||
order_sn: data.order_sn
|
||||
})
|
||||
},
|
||||
|
||||
onShowPopup() {
|
||||
this.showPopup = !this.showPopup
|
||||
if (this.currentTab == 1) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user