|
@@ -166,7 +166,6 @@ export default {
|
|
page_size: 20,
|
|
page_size: 20,
|
|
luck_list: [],
|
|
luck_list: [],
|
|
luck_list_end: false,
|
|
luck_list_end: false,
|
|
- received_log: [],
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -243,16 +242,7 @@ export default {
|
|
switch (data.code.toString()) {
|
|
switch (data.code.toString()) {
|
|
case '0':
|
|
case '0':
|
|
this.status = 'open'
|
|
this.status = 'open'
|
|
- let _obj = {
|
|
|
|
- postId: this.detail.postId,
|
|
|
|
- receivedId: data.data.receivedId,
|
|
|
|
- receiveAmount:data.data.receiveAmount,
|
|
|
|
- srcContentId: this.detail.srcContentId,
|
|
|
|
- postNickName: this.detail.postBizData.postUserInfo.nickName
|
|
|
|
- }
|
|
|
|
this.receiveAmount = data.data.receiveAmount
|
|
this.receiveAmount = data.data.receiveAmount
|
|
- this.received_log.push(_obj)
|
|
|
|
- Cookies.set('received_log', JSON.stringify(this.received_log), { expires: 100 });
|
|
|
|
break;
|
|
break;
|
|
// 红包被领完了
|
|
// 红包被领完了
|
|
case '2008':
|
|
case '2008':
|
|
@@ -299,6 +289,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 });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async asyncData(params) {
|
|
async asyncData(params) {
|
|
@@ -343,6 +338,7 @@ export default {
|
|
// 领取任务红包
|
|
// 领取任务红包
|
|
this.getRedPacket()
|
|
this.getRedPacket()
|
|
this.getValidity()
|
|
this.getValidity()
|
|
|
|
+ this.setPickupInfo()
|
|
} else {
|
|
} else {
|
|
this.status = 'no-chrome'
|
|
this.status = 'no-chrome'
|
|
}
|
|
}
|