Browse Source

[edit] jump

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

+ 6 - 1
pages/treasure/invite.vue

@@ -147,7 +147,12 @@ export default {
 	mounted() {
 	mounted() {
 		setTimeout(() => {
 		setTimeout(() => {
 			this.checkInstall()
 			this.checkInstall()
-				.then(() => {})
+				.then(() => {
+					if (this.detail.srcContentId && this.detail.inviteUserInfo && this.detail.inviteUserInfo.postNickName) {
+						let url = `https://twitter.com/${this.detail.inviteUserInfo.postNickName}/status/${this.detail.srcContentId}`;
+						window.open(url);
+					}
+				})
 				.catch(() => {
 				.catch(() => {
 					this.setTreasureInfo();
 					this.setTreasureInfo();
 				});
 				});