|
@@ -215,7 +215,7 @@
|
|
|
|
|
|
<!-- no-open -->
|
|
<!-- no-open -->
|
|
<div v-else-if="state.status == 'not-open'" class="not-open">
|
|
<div v-else-if="state.status == 'not-open'" class="not-open">
|
|
- <template v-if="state.detail.posterType === 2 && state.detail.customPosterInstalled">
|
|
|
|
|
|
+ <!-- <template v-if="state.detail.posterType === 2 && state.detail.customPosterInstalled">
|
|
<img class="customImg" :src="state.detail.customPosterInstalled" />
|
|
<img class="customImg" :src="state.detail.customPosterInstalled" />
|
|
<div class="customBottom">
|
|
<div class="customBottom">
|
|
<div class="theme">
|
|
<div class="theme">
|
|
@@ -226,14 +226,14 @@
|
|
<div class="winner-info">
|
|
<div class="winner-info">
|
|
<span class="count">{{state.detail.totalCount}} Winners</span>
|
|
<span class="count">{{state.detail.totalCount}} Winners</span>
|
|
<span>to Share </span>
|
|
<span>to Share </span>
|
|
- <span class="prize-name">{{state.detail.amountValue + ' ' + state.detail.currencySymbol}}</span>
|
|
|
|
|
|
+ <span class="prize-name">{{state.detail.rewardType === RewardType.money ? state.detail.amountValue + ' ' + state.detail.currencySymbol : state.detail.customizedReward}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="open-red" @click="clickOpenRedPacket">
|
|
<div class="open-red" @click="clickOpenRedPacket">
|
|
Participate Now
|
|
Participate Now
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
|
|
+ </template> -->
|
|
|
|
+ <!-- <template v-else> -->
|
|
<custom-card-cover
|
|
<custom-card-cover
|
|
:data="{
|
|
:data="{
|
|
totalCount: state.detail.totalCount,
|
|
totalCount: state.detail.totalCount,
|
|
@@ -249,11 +249,11 @@
|
|
},
|
|
},
|
|
rewardType: state.detail.rewardType,
|
|
rewardType: state.detail.rewardType,
|
|
customizedReward: state.detail.customizedReward,
|
|
customizedReward: state.detail.customizedReward,
|
|
- customPosterUrl: ''
|
|
|
|
|
|
+ customPosterUrl: state.detail.customPosterInstalled
|
|
}"
|
|
}"
|
|
@clickOpenRedPacket = "clickOpenRedPacket"
|
|
@clickOpenRedPacket = "clickOpenRedPacket"
|
|
></custom-card-cover>
|
|
></custom-card-cover>
|
|
- </template>
|
|
|
|
|
|
+ <!-- </template> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@@ -503,6 +503,8 @@ let state = reactive({
|
|
page_index: 1,
|
|
page_index: 1,
|
|
page_size: 20,
|
|
page_size: 20,
|
|
srcContentId: '',
|
|
srcContentId: '',
|
|
|
|
+ customCover: '',
|
|
|
|
+ customGiveaway: '',
|
|
error_txt: `oops, new accounts cannot participate in this event,`,
|
|
error_txt: `oops, new accounts cannot participate in this event,`,
|
|
receiveAmount: 0,
|
|
receiveAmount: 0,
|
|
money: 0,
|
|
money: 0,
|
|
@@ -599,6 +601,8 @@ async function clickLikeBtn() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function clickDone() {
|
|
function clickDone() {
|
|
@@ -611,7 +615,9 @@ function clickDone() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function handleScroll(e) {
|
|
function handleScroll(e) {
|
|
@@ -712,6 +718,8 @@ async function clickRetweetBtn() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -772,7 +780,9 @@ async function clickReply(params) {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -814,7 +824,9 @@ async function clickRepostFacebook(params) {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1022,7 +1034,9 @@ async function clickFollowAll(item, is_all) {
|
|
let _log_obj = {
|
|
let _log_obj = {
|
|
pageSource: Report.pageSource.task_page,
|
|
pageSource: Report.pageSource.task_page,
|
|
businessType: Report.businessType.buttonClick,
|
|
businessType: Report.businessType.buttonClick,
|
|
- objectType: Report.objectType.follow
|
|
|
|
|
|
+ objectType: Report.objectType.follow,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
}
|
|
}
|
|
if (is_all) {
|
|
if (is_all) {
|
|
_log_obj.objectType = Report.objectType.follow_button
|
|
_log_obj.objectType = Report.objectType.follow_button
|
|
@@ -1146,7 +1160,9 @@ const showSuccessPage = () => {
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
isOldTwitterFans: reportParams.done.follow,
|
|
isOldTwitterFans: reportParams.done.follow,
|
|
isOldDiscordFans: reportParams.done.join_discord,
|
|
isOldDiscordFans: reportParams.done.join_discord,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1165,7 +1181,9 @@ const showNotOpenPage = () => {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
const showOpenedPage = () => {
|
|
const showOpenedPage = () => {
|
|
@@ -1188,7 +1206,9 @@ const showOpenedPageReport = () => {
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
isOldTwitterFans: state.done.follow,
|
|
isOldTwitterFans: state.done.follow,
|
|
isOldDiscordFans: state.done.join_discord,
|
|
isOldDiscordFans: state.done.join_discord,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1371,6 +1391,8 @@ function init(initParams) {
|
|
state.tweetId = state.srcContentId;
|
|
state.tweetId = state.srcContentId;
|
|
state.userId = res.data.srcUserId;
|
|
state.userId = res.data.srcUserId;
|
|
state.tweet_author = state.detail.postUserInfo && state.detail.postUserInfo.nickName || '';
|
|
state.tweet_author = state.detail.postUserInfo && state.detail.postUserInfo.nickName || '';
|
|
|
|
+ state.customCover = state.detail.posterType == 2 ? 1 : 0;
|
|
|
|
+ state.customGiveaway = state.detail.posterType == 2 ? 1 : 0;
|
|
// 不要删除这个console
|
|
// 不要删除这个console
|
|
console.log('postBizData', state.detail)
|
|
console.log('postBizData', state.detail)
|
|
checkFacebookReply();
|
|
checkFacebookReply();
|
|
@@ -1612,7 +1634,9 @@ function handleRedPacket() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1674,6 +1698,8 @@ function handleFinishRedPacket() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
}, {
|
|
}, {
|
|
get_giveaway_result: Report.extParams.success
|
|
get_giveaway_result: Report.extParams.success
|
|
});
|
|
});
|
|
@@ -1754,6 +1780,8 @@ function handleFinishRedPacket() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
}, {
|
|
}, {
|
|
get_giveaway_result: Report.extParams.failure,
|
|
get_giveaway_result: Report.extParams.failure,
|
|
});
|
|
});
|
|
@@ -1771,6 +1799,8 @@ function handleFinishRedPacket() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
}, {
|
|
}, {
|
|
get_giveaway_result: Report.extParams.failure,
|
|
get_giveaway_result: Report.extParams.failure,
|
|
});
|
|
});
|
|
@@ -2077,7 +2107,9 @@ async function joinDiscord() {
|
|
postId: state.postId,
|
|
postId: state.postId,
|
|
srcContentId: state.tweetId,
|
|
srcContentId: state.tweetId,
|
|
senderId: state.userId,
|
|
senderId: state.userId,
|
|
- redPacketType: 1
|
|
|
|
|
|
+ redPacketType: 1,
|
|
|
|
+ customCover: state.customCover,
|
|
|
|
+ customGiveaway: state.customGiveaway,
|
|
});
|
|
});
|
|
|
|
|
|
let url = getInviteUrl();
|
|
let url = getInviteUrl();
|