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