nieyuge 2 years ago
parent
commit
01867c352a
4 changed files with 8 additions and 4 deletions
  1. 2 1
      pages/index.vue
  2. 2 1
      pages/luckdraw.vue
  3. 2 1
      pages/nft/group.vue
  4. 2 1
      pages/nft/index.vue

+ 2 - 1
pages/index.vue

@@ -552,8 +552,9 @@ export default {
 				srcContentId: this.detail.srcContentId,
 				postNickName: this.detail.postBizData.postUserInfo.nickName,
                 createTime: Date.now(),
+				jump_type: 'red_packet',
 			};
-			Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
+			Cookies.set('jump_info', JSON.stringify(pickupInfo), { expires: 100 });
 		},
 		async getDetail() {
 			let { data } = await axios.post(`${baseURL}/denet/post/getDetail`, {

+ 2 - 1
pages/luckdraw.vue

@@ -405,8 +405,9 @@ export default {
 				srcContentId: this.detail.srcContentId,
 				postNickName: this.detail.postBizData.postUserInfo.nickName,
                 createTime: Date.now(),
+                jump_type: 'luck_draw',
 			};
-			Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
+			Cookies.set('jump_info', JSON.stringify(pickupInfo), { expires: 100 });
         },
         formatTime(time, _type = 'MM-DD HH:mm:ss') {
 			return moment(time).format(_type)

+ 2 - 1
pages/nft/group.vue

@@ -221,8 +221,9 @@ export default {
 			let nftGroupInfo = {
 				twitterAccount: this.postBizData.defaultTwitterAccount || '',
                 createTime: Date.now(),
+                jump_type: 'nft_group_info',
 			};
-			Cookies.set('nft_group_info', JSON.stringify(nftGroupInfo), { expires: 100 });
+			Cookies.set('jump_info', JSON.stringify(nftGroupInfo), { expires: 100 });
 		},
     }
 }

+ 2 - 1
pages/nft/index.vue

@@ -200,8 +200,9 @@ export default {
 				nftProjectId: this.detail.nftProjectId,
                 twitterAccount: atob(this.$route.params.account || ''),
                 createTime: Date.now(),
+                jump_type: 'nft_info',
 			};
-			Cookies.set('nft_info', JSON.stringify(nftInfo), { expires: 100 });
+			Cookies.set('jump_info', JSON.stringify(nftInfo), { expires: 100 });
 		},
     }
 }