wenliming 2 years ago
parent
commit
b1b4fffa1a
2 changed files with 4 additions and 5 deletions
  1. 2 2
      pages/treasure/index.vue
  2. 2 3
      pages/treasure/invite.vue

+ 2 - 2
pages/treasure/index.vue

@@ -150,13 +150,13 @@ export default {
 				.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);
+						window.location.replace(url);
 					}
 				})
 				.catch(() => {
 					this.setTreasureInfo();
 				});
-		}, 600);
+		}, 1000);
 		this.checkBrowser();
 		this.isLoading = false;
 

+ 2 - 3
pages/treasure/invite.vue

@@ -149,16 +149,15 @@ export default {
 		setTimeout(() => {
 			this.checkInstall()
 				.then(() => {
-					console.log(this.detail, 'detail');
 					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.open(url);
+						window.location.replace(url);
 					}
 				})
 				.catch(() => {
 					this.setTreasureInfo();
 				});
-		}, 600);
+		}, 1000);
 		this.checkBrowser();
 		this.isLoading = false;