wenliming 2 years ago
parent
commit
1aa8258a8d
2 changed files with 8 additions and 6 deletions
  1. 2 3
      pages/treasure/index.vue
  2. 6 3
      pages/treasure/invite.vue

+ 2 - 3
pages/treasure/index.vue

@@ -80,7 +80,6 @@ export default {
 			isMobile: false,
 			isChrome: false,
 			linkHref: '',
-			metaTitle: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 		};
 	},
 	components: {
@@ -95,7 +94,7 @@ export default {
 				// facebook
 				{
 					name: 'og:title',
-					content: this.metaTitle,
+					content: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 				},
 				{
 					name: 'og:image',
@@ -108,7 +107,7 @@ export default {
 				},
 				{
 					name: 'twitter:title',
-					content: this.metaTitle,
+					content: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 				},
 				{
 					name: 'twitter:image',

+ 6 - 3
pages/treasure/invite.vue

@@ -74,13 +74,16 @@ export default {
 					avatarUrl: '',
 					nickName: '',
 				},
+				amountValue: '',
+				currencySymbol: '',
+				amountUsdValue: '',
+				totalCount: '',
 			},
 			config: {},
 			title: 'Treasure Hunt',
 			isMobile: false,
 			isChrome: false,
 			linkHref: '',
-			metaTitle: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 		};
 	},
 	components: {
@@ -95,7 +98,7 @@ export default {
 				// facebook
 				{
 					name: 'og:title',
-					content: this.metaTitle,
+					content: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 				},
 				{
 					name: 'og:image',
@@ -108,7 +111,7 @@ export default {
 				},
 				{
 					name: 'twitter:title',
-					content: this.metaTitle,
+					content: `Treasure Chest: ${this.detail.amountValue} ${this.detail.currencySymbol} (worth $${this.detail.amountUsdValue}) for ${this.detail.totalCount} winners`,
 				},
 				{
 					name: 'twitter:image',