Browse Source

Merge branch 'dev_1.1.7_lint' of https://git.yishihui.com/DeNet/de-net-official into dev_1.1.7_lint

jihuaqiang 2 years ago
parent
commit
f4a32afb32
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pages/treasure/invite.vue

+ 4 - 3
pages/treasure/invite.vue

@@ -145,11 +145,12 @@ export default {
 		this.getConfig();
 	},
 	mounted() {
+		Cookies.set(this.detail.postId, JSON.stringify({ inviteCode: this.$route.params.id }), { expires: 100 });
 		setTimeout(() => {
 			this.checkInstall()
 				.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}`;
+					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);
 					}
 				})
@@ -279,7 +280,7 @@ export default {
 				createTime: Date.now(),
 				jump_type: 'treasure_info',
 				srcContentId: this.detail.srcContentId || '',
-				postNickName: this.detail.inviteUserInfo.nickName,
+				postNickName: this.detail.postUserInfo.nickName,
 			};
 			Cookies.set('jump_info', JSON.stringify(treasureInfo), { expires: 100 });
 		},