|
@@ -220,7 +220,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getRedPacket() {
|
|
|
- this.received_log = Cookies.get('received_log') || []
|
|
|
let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/luckdrop/receiveLuckdrop', {
|
|
|
baseInfo: {
|
|
|
appVersionCode: this.appVersionCode,
|
|
@@ -235,16 +234,7 @@ export default {
|
|
|
case '0':
|
|
|
if (data.data.newReceived) {
|
|
|
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.received_log.push(_obj)
|
|
|
- Cookies.set('received_log', JSON.stringify(this.received_log), { expires: 1000 });
|
|
|
} else {
|
|
|
this.status = 'opened'
|
|
|
}
|