ソースを参照

[edit] treasure

wenliming 2 年 前
コミット
df442db482
2 ファイル変更7 行追加2 行削除
  1. 6 1
      pages/treasure/index.vue
  2. 1 1
      pages/treasure/invite.vue

+ 6 - 1
pages/treasure/index.vue

@@ -147,7 +147,12 @@ export default {
 	mounted() {
 		setTimeout(() => {
 			this.checkInstall()
-				.then(() => {})
+				.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}`;
+						window.open(url);
+					}
+				})
 				.catch(() => {
 					this.setTreasureInfo();
 				});

+ 1 - 1
pages/treasure/invite.vue

@@ -5,7 +5,7 @@
 		</template>
 		<template v-else>
 			<template v-if="isMobile">
-				<MobileLandPage :playType="PlayType.Treasure" :useFul="true" :userInfo="detail.inviteUserInfo" :usValue="detail.upGainAmountValue" :postId="detail.srcContentId"></MobileLandPage>
+				<MobileLandPage :playType="PlayType.Treasure" :useFul="true" :userInfo="detail.inviteUserInfo" :usValue="detail.upGainAmountValue" :postId="detail.postId" :srcContentId="detail.srcContentId"></MobileLandPage>
 			</template>
 			<template v-else>
 				<div class="logo">