Browse Source

Merge branch 'dev_1.1.5' of https://git.yishihui.com/DeNet/de-net-official into dev_1.1.5

jihuaqiang 2 years ago
parent
commit
f7554de4a6
1 changed files with 16 additions and 0 deletions
  1. 16 0
      pages/index.vue

+ 16 - 0
pages/index.vue

@@ -320,6 +320,8 @@ export default {
 				}
 			},
 			currencyIconPath: '',
+			customCover: '',
+			customGiveaway: '',
 			title: 'DeNet Giveaway',
 			metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
 			jumpUrl: jumpUrl,
@@ -400,6 +402,8 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
+						redPacketType: 0,
+						customCover: this.customCover,
 					}
 				}
 			})
@@ -423,6 +427,8 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
+						redPacketType: 0,
+						customCover: this.customCover,
 					},
                     extParams: extParams
 				}
@@ -451,6 +457,8 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
+						redPacketType: 0,
+						customCover: this.customCover,
 					},
                     extParams: extParams,
 				}
@@ -632,6 +640,8 @@ export default {
 			})
 			if (data.code == 0) {
 				this.detail.postBizData = JSON.parse(data.data.postBizData)
+				this.customCover = this.detail.postBizData && this.detail.postBizData.posterType == 2 ? 1 : 0;
+				this.customGiveaway = this.detail.postBizData && this.detail.postBizData.rewardType == 2 ? 1 : 0;
 			}
 		},
 		async getConfig() {
@@ -722,6 +732,8 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
+							redPacketType: 0,
+							customCover: this.customCover,
                         }
                     }
                 })
@@ -773,6 +785,8 @@ export default {
                             postId: this.detail.postId,
                             srcContentId: this.detail.srcContentId,
                             senderId: this.detail.srcUserId,
+							redPacketType: 0,
+							customCover: this.customCover,
                         },
                         extParams: {
                             status: this.reportStatus,
@@ -798,6 +812,8 @@ export default {
                         postId: this.detail.postId,
                         srcContentId: this.detail.srcContentId,
                         senderId: this.detail.srcUserId,
+						redPacketType: 0,
+						customCover: this.customCover,
 					},
                     extParams: {
                         status: this.reportStatus,