From d93d24b89f994d7a92f0e2f3c05ce139227c1fd6 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Sat, 2 Apr 2022 18:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E8=BF=9B=E5=85=A5=E5=A6=82=E6=9E=9C=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E5=8F=97=E8=BF=87=E6=9D=83=E4=BA=86=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=B0=B1=E4=B8=8D=E5=86=8D=E6=8E=88=E6=9D=83=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=AF=B7=E6=B1=82=E4=B8=80=E4=B8=8B=E8=BF=99?= =?UTF-8?q?=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/auth/auth-userInfo-mobileInfo.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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') + }) + } } }, })