소스 검색

[edit][兼容v3版本接口问题]

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

+ 6 - 1
pages/index.vue

@@ -593,7 +593,12 @@ export default {
 		} else if (isBrowser() == 'chrome') {
 			// 领取任务红包
 			this.setCookieMid()
-			this.getRedPacket()
+			// 是否被领完
+			if(this.detail.postBizData.receiveCount < this.detail.postBizData.totalCount){
+				this.getRedPacket()	
+			}else{
+				this.status = 'nothing'
+			}
 			this.setPickupInfo()
 			Report.reportLog({
 				baseInfo: {