浏览代码

首页授权手机号

xhj 2 年之前
父节点
当前提交
cb005d1819
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 9 7
      pages/index/index.vue

+ 9 - 7
pages/index/index.vue

@@ -480,13 +480,15 @@
 			await req.silenceLogin(this.query.userId, '');
 			let _ts = this;
 			
-			this.userInfo = req.getStorage('userInfo')
-			
-			
-			if (!this.userInfo.mobile&&this.firstLoad==true) {
-				this.isShowUpdate = true;
-				this.isUpdateMobile = true;
-			}
+			setTimeout(()=>{
+				this.userInfo = req.getStorage('userInfo')
+				
+				console.log('onShow',req.getStorage('userInfo'))
+				if (!this.userInfo.mobile&&this.firstLoad==true) {
+					this.isShowUpdate = true;
+					this.isUpdateMobile = true;
+				}
+			},500)
 			
 			this.firstLoad = false