添加支付结果通知等待时间
This commit is contained in:
parent
588ec4c17e
commit
fd0e13ac69
@ -207,6 +207,11 @@
|
||||
}
|
||||
data.type = this.currentValue
|
||||
balanceApplyWithdraw(data).then(res => {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
setTimeout(() => {
|
||||
if (res.code == 1) {
|
||||
this.$toast({
|
||||
title: '提交成功'
|
||||
@ -220,6 +225,8 @@
|
||||
title: res.msg
|
||||
});
|
||||
}
|
||||
uni.hideLoading()
|
||||
}, this.$payWait)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@ -304,13 +304,14 @@
|
||||
const result = await applyBillionsWithdrawl(data);
|
||||
|
||||
if (result.code == 1) {
|
||||
setTimeout(() => {
|
||||
uni.$emit('refreshSubsidyPage')
|
||||
this.showPopup = true
|
||||
this.tipsText = '已成功提现¥' + data.withdrawl_money + '至微信零钱'
|
||||
}
|
||||
|
||||
this.form.withdrawl_money = ''
|
||||
uni.hideLoading()
|
||||
}, this.$payWait)
|
||||
}
|
||||
} else if(this.currentTab == 2) {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
@ -329,7 +330,7 @@
|
||||
this.tipsText = '已成功充值¥' + data.recharge_money
|
||||
this.form.recharge_money = ''
|
||||
uni.hideLoading()
|
||||
}, 2500)
|
||||
}, this.$payWait)
|
||||
}
|
||||
}
|
||||
this.showPay = false
|
||||
|
||||
1
main.js
1
main.js
@ -11,6 +11,7 @@ import routerLink from './js_sdk/uni-simple-router/link.vue'
|
||||
Vue.component('mescroll-body', MescrollBody)
|
||||
Vue.prototype.$toast = toast
|
||||
Vue.prototype.$Cache = Cache
|
||||
Vue.prototype.$payWait = 2500
|
||||
Vue.config.productionTip = false
|
||||
Vue.component('RouterLink', routerLink)
|
||||
|
||||
|
||||
@ -190,9 +190,16 @@
|
||||
// 支付后处理
|
||||
handPayResult(result) {
|
||||
// 页面出栈
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
//记录支付结果
|
||||
setTimeout(() => {
|
||||
this.result = result
|
||||
this.$Router.back(1)
|
||||
uni.hideLoading()
|
||||
}, this.$payWait)
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user