From fe8bf9a588e2367c4b81641ffdbbf34e4c6ada96 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 21 Mar 2023 16:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/utils/modules.js | 2 +- src/project/fengdu/AppMine/userInfo.vue | 19 ++++++------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/components/utils/modules.js b/src/components/utils/modules.js index c9377d2..91fbee3 100644 --- a/src/components/utils/modules.js +++ b/src/components/utils/modules.js @@ -106,7 +106,7 @@ export const user = { confirmText: '去认证', success: (res)=> { 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) { // 停留 } diff --git a/src/project/fengdu/AppMine/userInfo.vue b/src/project/fengdu/AppMine/userInfo.vue index 089e87a..4ed14b6 100644 --- a/src/project/fengdu/AppMine/userInfo.vue +++ b/src/project/fengdu/AppMine/userInfo.vue @@ -158,20 +158,13 @@ export default { this.$u.toast('提交成功') this.autoLogin({ loginWay:'qujing'}) uni.$emit('auth') - if (this.isFromTabbar == 1) { - console.log('111') - setTimeout(() => { - console.log('222') - uni.switchTab({ - url: this.path - }) - }, 600); - } else { - setTimeout(() => { + setTimeout(() => { + if (this.isFromTabbar == 1) { + uni.switchTab({ url: this.path }) + } else { uni.navigateBack() - }, 600); - } - + } + }, 600); } }).catch(err=> { this.$u.toast(err.msg)