fix: 修改 红包领取成功 修改状态

This commit is contained in:
zhangds 2024-05-14 17:56:22 +08:00
parent 27df7f0ce1
commit 9e77351dfb
2 changed files with 5 additions and 4 deletions

View File

@ -206,9 +206,10 @@
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) { if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
this.goodsInfo.available = 9;
this.tip("领取成功", 2, '关闭'); this.tip("领取成功", 2, '关闭');
this.goodInfo.available = 9; localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo));
localStorage.setItem('goodInfo', JSON.stringify(this.goodInfo));
} else { } else {
this.tip(res.message, 2, '关闭'); this.tip(res.message, 2, '关闭');
} }

View File

@ -194,9 +194,9 @@
.then((res) => { .then((res) => {
this.loading = false; this.loading = false;
if (res.code == 200) { if (res.code == 200) {
this.goodsInfo.available = 9;
this.tip("领取成功", 2, '关闭'); this.tip("领取成功", 2, '关闭');
this.goodInfo.available = 9; localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo));
localStorage.setItem('goodInfo', JSON.stringify(this.goodInfo));
} else { } else {
this.tip(res.message, 2, '关闭'); this.tip(res.message, 2, '关闭');
} }