diff --git a/components/auth/auth-userInfo-mobileInfo.vue b/components/auth/auth-userInfo-mobileInfo.vue index 0c655b2..f47e93c 100644 --- a/components/auth/auth-userInfo-mobileInfo.vue +++ b/components/auth/auth-userInfo-mobileInfo.vue @@ -84,7 +84,6 @@ uni.setStorageSync('urlparams',currentPage.$page.fullPath); if(uni.getStorageSync('token')==''){ this.loginEv(currentPage.options); - this.showAuth = true; } let pagesArr = getCurrentPages(); // console.log(pagesArr.length,'获取页面栈大小'); @@ -115,6 +114,13 @@ uni.setStorageSync('expire',res.data.data.expire); // 缓存失效时间(时间戳格式) uni.setStorageSync('phone_active',res.data.data.phone_active); // 是否绑定手机号 uni.setStorageSync('is_active',res.data.data.is_active)//是否第一次授权 + if(res.data.data.phone_active==0 || res.data.data.is_active==0) { + this.showAuth = true; + } else { + uni.reLaunch({ // 重新进入当前页面 + url:uni.getStorageSync('urlparams') + }) + } } }, })