Просмотр исходного кода

1.调试分享次数接口
2.添加申请资格授权判断
3.修改积分奖励页面数据逻辑

306132416@qq.com лет назад: 5
Родитель
Сommit
1739cf0240
2 измененных файлов с 9 добавлено и 5 удалено
  1. 1 1
      pages/selfCenter/awardPage/index.vue
  2. 8 4
      pages/selfCenter/index.vue

+ 1 - 1
pages/selfCenter/awardPage/index.vue

@@ -20,7 +20,7 @@
 					<view>
 						<text>{{item.name || '-'}}</text>
 						<text style="visibility: hidden;">A</text>
-						<text>购买了产品</text>
+						<text v-show=" item.name!=='分享奖励' ">购买了产品</text>
 					</view>
 					<view>
 						<text style="color:#ccc;font-size: 28rpx;">{{item.time || '-'}}</text>

+ 8 - 4
pages/selfCenter/index.vue

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