소스 검색

1.修改注册资格授权逻辑
2.修改分享功能判断逻辑

306132416@qq.com 5 년 전
부모
커밋
f270e1722d
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      pages/index/index.vue
  2. 1 1
      pages/selfCenter/index.vue

+ 3 - 3
pages/index/index.vue

@@ -252,15 +252,15 @@
 			},
 			 showShareModal(){
 			         // 需要在 popup 组件,指定 ref 为 popup
-			 		if(!this.isAuth){
+			 		if(getApp().globalData.user_phone){
+						this.$refs.popup.open();
+			 		}else {
 			 			uni.navigateTo({
 			 				url: '../auth/index',
 			 				success: res => {},
 			 				fail: () => {},
 			 				complete: () => {}
 			 			});
-			 		}else {
-			 			this.$refs.popup.open();
 			 		}
 			       },
 			 cancelModal(){

+ 1 - 1
pages/selfCenter/index.vue

@@ -222,7 +222,7 @@ export default {
 	 },
 	 applyPower(){
 		 let that = this;
-		 if(getApp().globalData.isAuth){
+		 if(that.isAuthPhone){
 				if(that.userStatus === '点击申请'){
 						that.getUserIsApply()
 				}else{