zhangwei 3 年 前
コミット
d2c0c54a0d
1 ファイル変更0 行追加10 行削除
  1. 0 10
      pages/index.vue

+ 0 - 10
pages/index.vue

@@ -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'
 					}