跳转bug
This commit is contained in:
@@ -106,7 +106,7 @@ export const user = {
|
|||||||
confirmText: '去认证',
|
confirmText: '去认证',
|
||||||
success: (res)=> {
|
success: (res)=> {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.reLaunch({ url: `/pages/AppMine/userInfo?isFromTabbar=1&path='/pages/AppHome/AppHome'` })
|
uni.reLaunch({ url: `/pages/AppMine/userInfo?isFromTabbar=1&path=/pages/AppHome/AppHome` })
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
// 停留
|
// 停留
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,20 +158,13 @@ export default {
|
|||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
this.autoLogin({ loginWay:'qujing'})
|
this.autoLogin({ loginWay:'qujing'})
|
||||||
uni.$emit('auth')
|
uni.$emit('auth')
|
||||||
if (this.isFromTabbar == 1) {
|
setTimeout(() => {
|
||||||
console.log('111')
|
if (this.isFromTabbar == 1) {
|
||||||
setTimeout(() => {
|
uni.switchTab({ url: this.path })
|
||||||
console.log('222')
|
} else {
|
||||||
uni.switchTab({
|
|
||||||
url: this.path
|
|
||||||
})
|
|
||||||
}, 600);
|
|
||||||
} else {
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 600);
|
}
|
||||||
}
|
}, 600);
|
||||||
|
|
||||||
}
|
}
|
||||||
}).catch(err=> {
|
}).catch(err=> {
|
||||||
this.$u.toast(err.msg)
|
this.$u.toast(err.msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user