nieyuge 2 年之前
父节点
当前提交
6e4de1851a
共有 1 个文件被更改,包括 12 次插入5 次删除
  1. 12 5
      pages/index.vue

+ 12 - 5
pages/index.vue

@@ -266,6 +266,7 @@ export default {
 			metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
 			jumpUrl: jumpUrl,
 			status: '',
+            reportStatus: 'normal',
 			page_index: 1,
 			page_size: 20,
 			luck_list: [],
@@ -335,7 +336,7 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: this.status,
+                        status: this.reportStatus,
 					},
 				}
 			})
@@ -365,7 +366,7 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: this.status,
+                        status: this.reportStatus,
 					},
 				}
 			})
@@ -430,6 +431,7 @@ export default {
 				case '0':
 					this.getDetail()
 					if (data.data.receiveAmount == '0') {
+                        this.reportStatus = 'empty'
 						this.status = 'nothing'
 					} else {
 						if (data.data.newReceived) {
@@ -448,11 +450,13 @@ export default {
 					break;
 				case '2003':
 					// this.status = 'expire'
+                    this.reportStatus = 'empty'
 					this.getDetail()
 					this.status = 'nothing'
 					break
 				// 红包被领完了
 				case '2008':
+                    this.reportStatus = 'empty'
 					this.getDetail()
 					this.status = 'nothing'
 					break
@@ -463,6 +467,7 @@ export default {
 				default:
 					console.log('getRedPacket', data)
 					// this.show_home = false
+                    this.reportStatus = 'empty'
 					this.getDetail()
 					this.status = 'nothing'
 					break;
@@ -631,7 +636,7 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
-                            status: this.status,
+                            status: this.reportStatus,
                         },
                     }
                 })
@@ -665,6 +670,7 @@ export default {
 			}else{
 				this.show_home = true
 				this.status = 'nothing'
+                this.reportStatus = 'empty'
 			}
 			this.setPickupInfo()
             setTimeout(() => {
@@ -682,7 +688,7 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
-                            status: this.status,
+                            status: this.reportStatus,
                         },
                     }
                 });
@@ -690,6 +696,7 @@ export default {
 		} else {
 			this.show_home = true
 			this.status = 'no-chrome'
+            this.reportStatus = 'not-chrome'
             Report.reportLog({
 				baseInfo: {
 					appVersionCode: this.appVersionCode,
@@ -704,7 +711,7 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
-                        status: this.status,
+                        status: this.reportStatus,
 					},
 				}
 			})