充值成功跳转到账户页面
This commit is contained in:
@@ -156,7 +156,12 @@
|
||||
// 隐藏原生的tabbar
|
||||
// this.iphonepay()
|
||||
uni.hideTabBar();
|
||||
this.getDevName()
|
||||
this.getDevName()
|
||||
setTimeout(()=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/user/persCount'
|
||||
})
|
||||
},2000)
|
||||
},
|
||||
computed: {
|
||||
...mapState(['userInfo']),
|
||||
@@ -376,10 +381,8 @@
|
||||
this.iphonepay()
|
||||
},
|
||||
// 充值
|
||||
goToPay(){
|
||||
|
||||
this.kaiChar()
|
||||
|
||||
goToPay(){
|
||||
this.kaiChar()
|
||||
},
|
||||
// 正常充值
|
||||
kaiChar() { // 常规充值
|
||||
@@ -424,6 +427,11 @@
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
});
|
||||
setTimeout(()=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/user/persCount'
|
||||
})
|
||||
},2000)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "支付失败",
|
||||
@@ -450,6 +458,11 @@
|
||||
uni.showToast({
|
||||
title: "支付成功"
|
||||
});
|
||||
setTimeout(()=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/user/persCount'
|
||||
})
|
||||
},2000)
|
||||
} else {
|
||||
console.log(res)
|
||||
if(res.data.errMsg.indexOf('User canceled') != -1){
|
||||
|
||||
Reference in New Issue
Block a user