|
@@ -80,7 +80,7 @@ export default {
|
|
|
isMobile: false,
|
|
|
isChrome: false,
|
|
|
linkHref: '',
|
|
|
- metaTitle: 'DeNet: An Easy Web3 Tool For GIVEAWAY / AIRDROP',
|
|
|
+ metaTitle: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -149,17 +149,17 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.checkInstall()
|
|
|
.then(() => {
|
|
|
- if (this.detail.srcContentId && this.detail.postUserInfo && this.detail.postUserInfo.nickName) {
|
|
|
- let url = `https://twitter.com/${this.detail.postUserInfo.nickName}/status/${this.detail.srcContentId}`;
|
|
|
+ if (this.detail.repostSrcContentId && this.detail.inviteUserInfo && this.detail.inviteUserInfo.nickName) {
|
|
|
+ let url = `https://twitter.com/${this.detail.inviteUserInfo.nickName}/status/${this.detail.repostSrcContentId}`;
|
|
|
window.location.replace(url);
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ this.isLoading = false;
|
|
|
this.setTreasureInfo();
|
|
|
});
|
|
|
}, 1000);
|
|
|
this.checkBrowser();
|
|
|
- this.isLoading = false;
|
|
|
|
|
|
var clipboard = new ClipboardJS('.btn');
|
|
|
let that = this;
|
|
@@ -280,8 +280,8 @@ export default {
|
|
|
let treasureInfo = {
|
|
|
createTime: Date.now(),
|
|
|
jump_type: 'treasure_info',
|
|
|
- srcContentId: this.detail.srcContentId || '',
|
|
|
- postNickName: this.detail.postUserInfo.nickName,
|
|
|
+ srcContentId: this.detail.repostSrcContentId || '',
|
|
|
+ postNickName: this.detail.inviteUserInfo.nickName,
|
|
|
};
|
|
|
Cookies.set('jump_info', JSON.stringify(treasureInfo), { expires: 100 });
|
|
|
},
|