添加支付结果通知等待时间

This commit is contained in:
wangxiaowei 2024-09-16 17:31:35 +08:00
parent 588ec4c17e
commit fd0e13ac69
4 changed files with 38 additions and 22 deletions

@ -207,19 +207,26 @@
} }
data.type = this.currentValue data.type = this.currentValue
balanceApplyWithdraw(data).then(res => { balanceApplyWithdraw(data).then(res => {
if (res.code == 1) { uni.showLoading({
this.$toast({ title: '加载中',
title: '提交成功' mask: true
}, { })
tab: 2, setTimeout(() => {
url: '/bundle/pages/user_withdraw/withdrawal_record' if (res.code == 1) {
// url: '/bundle/pages/wallet_withdraw_result/wallet_withdraw_result?id=' + res.data.id this.$toast({
}); title: '提交成功'
} else { }, {
this.$toast({ tab: 2,
title: res.msg url: '/bundle/pages/user_withdraw/withdrawal_record'
}); // url: '/bundle/pages/wallet_withdraw_result/wallet_withdraw_result?id=' + res.data.id
} });
} else {
this.$toast({
title: res.msg
});
}
uni.hideLoading()
}, this.$payWait)
}); });
} }
}, },

@ -304,13 +304,14 @@
const result = await applyBillionsWithdrawl(data); const result = await applyBillionsWithdrawl(data);
if (result.code == 1) { if (result.code == 1) {
uni.$emit('refreshSubsidyPage') setTimeout(() => {
this.showPopup = true uni.$emit('refreshSubsidyPage')
this.tipsText = '已成功提现¥' + data.withdrawl_money + '至微信零钱' this.showPopup = true
this.tipsText = '已成功提现¥' + data.withdrawl_money + '至微信零钱'
this.form.withdrawl_money = ''
uni.hideLoading()
}, this.$payWait)
} }
this.form.withdrawl_money = ''
uni.hideLoading()
} else if(this.currentTab == 2) { } else if(this.currentTab == 2) {
uni.showLoading({ uni.showLoading({
title: '加载中...', title: '加载中...',
@ -329,7 +330,7 @@
this.tipsText = '已成功充值¥' + data.recharge_money this.tipsText = '已成功充值¥' + data.recharge_money
this.form.recharge_money = '' this.form.recharge_money = ''
uni.hideLoading() uni.hideLoading()
}, 2500) }, this.$payWait)
} }
} }
this.showPay = false this.showPay = false

@ -11,6 +11,7 @@ import routerLink from './js_sdk/uni-simple-router/link.vue'
Vue.component('mescroll-body', MescrollBody) Vue.component('mescroll-body', MescrollBody)
Vue.prototype.$toast = toast Vue.prototype.$toast = toast
Vue.prototype.$Cache = Cache Vue.prototype.$Cache = Cache
Vue.prototype.$payWait = 2500
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.component('RouterLink', routerLink) Vue.component('RouterLink', routerLink)

@ -190,9 +190,16 @@
// 支付后处理 // 支付后处理
handPayResult(result) { handPayResult(result) {
// 页面出栈 // 页面出栈
uni.showLoading({
title: '加载中',
mask: true
})
//记录支付结果 //记录支付结果
this.result = result setTimeout(() => {
this.$Router.back(1) this.result = result
this.$Router.back(1)
uni.hideLoading()
}, this.$payWait)
} }
}, },