소스 검색

首页修改

yuwenjun 4 년 전
부모
커밋
9a742f04b8
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      pages/index/index.vue

+ 4 - 3
pages/index/index.vue

@@ -123,7 +123,8 @@ export default {
 			if (res == 1) {
 			if (res == 1) {
 				console.log('用户已授权')
 				console.log('用户已授权')
 				this.GetWxAuthorize()
 				this.GetWxAuthorize()
-				
+			}else{
+				this.isRequest = true
 			}
 			}
 		})
 		})
 	},
 	},
@@ -142,13 +143,13 @@ export default {
 				this.organizeId = res.data.organizeId
 				this.organizeId = res.data.organizeId
 				this.getUserInfoPersonal(this.organizeId)
 				this.getUserInfoPersonal(this.organizeId)
 				this.refresh = true
 				this.refresh = true
-				this.isRequest = true;
+				this.isRequest = true
 			}).catch(err=>{
 			}).catch(err=>{
 				// 缓存游客openid
 				// 缓存游客openid
 				uni.setStorageSync('openid',err.data.openid)
 				uni.setStorageSync('openid',err.data.openid)
 				this.logout()
 				this.logout()
 				this.refresh = true
 				this.refresh = true
-				this.isRequest = true;
+				this.isRequest = true
 			})
 			})
 		},
 		},
 		//初始化个人中心数据
 		//初始化个人中心数据