Ver Fonte

[edit] report

wenliming há 2 anos atrás
pai
commit
8146ccd4e7
2 ficheiros alterados com 5 adições e 3 exclusões
  1. 1 1
      pages/treasure/index.vue
  2. 4 2
      pages/treasure/invite.vue

+ 1 - 1
pages/treasure/index.vue

@@ -146,10 +146,10 @@ export default {
 		}
 	},
 	created() {
-		this.setCookieMid();
 		this.getConfig();
 	},
 	mounted() {
+		this.setCookieMid();
 		this.setTreasureInfo();
 		setTimeout(() => {
 			this.checkInstall()

+ 4 - 2
pages/treasure/invite.vue

@@ -11,7 +11,8 @@
 					:postUserInfo="detail.postUserInfo"
 					:reportMore="{
 						shareLinkId: $route.params.id,
-					}"></MobileGuidePage>
+					}"
+				></MobileGuidePage>
 			</template>
 			<template v-else>
 				<div class="logo">
@@ -156,10 +157,10 @@ export default {
 		}
 	},
 	created() {
-		this.setCookieMid();
 		this.getConfig();
 	},
 	mounted() {
+		this.setCookieMid();
 		Cookies.set(this.detail.postId, JSON.stringify({ inviteCode: this.$route.params.id }), { expires: 100 });
 		this.setTreasureInfo();
 
@@ -316,6 +317,7 @@ export default {
 				srcContentId: this.detail.repostSrcContentId || '',
 				postNickName: this.detail.inviteUserInfo.nickName,
 				postId: this.detail.postId,
+				shareLinkId: this.detail.inviteCode,
 			};
 			Cookies.set('jump_info', JSON.stringify(treasureInfo), { expires: 100 });
 		},