wenliming 2 år sedan
förälder
incheckning
5161f73921
2 ändrade filer med 10 tillägg och 10 borttagningar
  1. 4 4
      pages/treasure/index.vue
  2. 6 6
      pages/treasure/invite.vue

+ 4 - 4
pages/treasure/index.vue

@@ -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: {
@@ -148,17 +148,17 @@ export default {
 		setTimeout(() => {
 			this.checkInstall()
 				.then(() => {
-					if (this.detail.srcContentId && this.detail.postUserInfo && this.detail.postUserInfo.postNickName) {
-						let url = `https://twitter.com/${this.detail.postUserInfo.postNickName}/status/${this.detail.srcContentId}`;
+					if (this.detail.srcContentId && this.detail.postUserInfo && this.detail.postUserInfo.nickName) {
+						let url = `https://twitter.com/${this.detail.postUserInfo.nickName}/status/${this.detail.srcContentId}`;
 						window.location.replace(url);
 					}
 				})
 				.catch(() => {
+					this.isLoading = false;
 					this.setTreasureInfo();
 				});
 		}, 1000);
 		this.checkBrowser();
-		this.isLoading = false;
 
 		var clipboard = new ClipboardJS('.btn');
 		let that = this;

+ 6 - 6
pages/treasure/invite.vue

@@ -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 });
 		},