Переглянути джерело

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{