Browse Source

Merge branch 'feature_220323_meta' into test

# Conflicts:
#	pages/index.vue
wenliming 3 years ago
parent
commit
85c86a0dd2
1 changed files with 8 additions and 1 deletions
  1. 8 1
      pages/index.vue

+ 8 - 1
pages/index.vue

@@ -154,7 +154,6 @@ export default {
 			page_size: 20,
 			page_size: 20,
 			luck_list: [],
 			luck_list: [],
 			luck_list_end: false,
 			luck_list_end: false,
-			received_log: [],
 		}
 		}
 	},
 	},
 
 
@@ -250,6 +249,8 @@ export default {
 						this.status = 'opened'
 						this.status = 'opened'
 					}
 					}
 					this.getValidity()
 					this.getValidity()
+					this.status = 'open'
+					this.receiveAmount = data.data.receiveAmount
 					break;
 					break;
 				// 红包被领完了
 				// 红包被领完了
 				case '2008':
 				case '2008':
@@ -309,6 +310,11 @@ export default {
 					clearInterval(timer)
 					clearInterval(timer)
 				}
 				}
 			}, 1000)
 			}, 1000)
+		},
+		setPickupInfo() {
+			let  pickupInfo = {	srcContentId: this.detail.srcContentId,
+								postNickName: this.detail.postBizData.postUserInfo.nickName };
+			Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
 		}
 		}
 	},
 	},
 
 
@@ -358,6 +364,7 @@ export default {
 			// 领取任务红包
 			// 领取任务红包
 			this.setCookieMid()
 			this.setCookieMid()
 			this.getRedPacket()
 			this.getRedPacket()
+			this.setPickupInfo()
 		} else {
 		} else {
 			this.home_show = true
 			this.home_show = true
 			this.status = 'no-chrome'
 			this.status = 'no-chrome'