Forráskód Böngészése

【Mod】积分扣减问题

liuxiangxin 6 hónapja
szülő
commit
bec796e9f4
2 módosított fájl, 8 hozzáadás és 8 törlés
  1. 2 2
      pages/score/lottery.vue
  2. 6 6
      pages/score/record.vue

+ 2 - 2
pages/score/lottery.vue

@@ -205,8 +205,8 @@
 					})
 					return;
 				}
-				// 活动是否结束
-				if( this.scoreInfo.score - this.lotteryInfo.need_score < this.lotteryInfo.need_score ){
+				// 积分不足
+				if( this.scoreInfo.score < this.lotteryInfo.need_score ){
 					uni.showToast({
 						title:"积分不足",
 						icon:"none",

+ 6 - 6
pages/score/record.vue

@@ -37,10 +37,10 @@
 			}
 		},
 		onShow() {
-			// 没有数据的话,或者请求中,不允许刷新
-			if( this.isReqing )		return ;
 			// 登录提示
 			if( !this.$checkAccess.alterLogin() )  return ;
+			// 没有数据的话,或者请求中,不允许刷新
+			if( this.isReqing )		return ;
 			// 请求参数
 			this.requestParam.page	= 1;
 			// 是否是最后一页
@@ -59,10 +59,10 @@
 			});
 		},
 		onPullDownRefresh() {
-			// 如果请求中,不允许请求,
-			if( this.isReqing )		return uni.stopPullDownRefresh();;
 			// 登录提示
 			if( !this.$checkAccess.alterLogin() )  return uni.stopPullDownRefresh();
+			// 如果请求中,不允许请求,
+			if( this.isReqing )		return uni.stopPullDownRefresh();
 			// 初始化页码为1
 			this.requestParam.page	= 1;
 			// 是否是最后一页
@@ -82,14 +82,14 @@
 			uni.stopPullDownRefresh();
 		},
 		onReachBottom() {
+			// 登录提示
+			if( !this.$checkAccess.alterLogin() )  return ;
 			// 如果页码是0,避免第一页重复
 			if( this.requestParam.page < 1 ) return;
 			// 最后一页不再请求
 			if( this.isLast ) 	return;
 			// 请求中,不再请求
 			if( this.isReqing ) return;
-			// 登录提示
-			if( !this.$checkAccess.alterLogin() )  return ;
 			// 增加一页
 			this.requestParam.page = this.requestParam.page+1;
 			// 设置请求中