diff --git a/packkey/redPackets.html b/packkey/redPackets.html index e1b777f..ab60aab 100644 --- a/packkey/redPackets.html +++ b/packkey/redPackets.html @@ -206,9 +206,10 @@ 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); } + + this.goodsInfo.available = 9; this.tip("领取成功", 2, '关闭'); - this.goodInfo.available = 9; - localStorage.setItem('goodInfo', JSON.stringify(this.goodInfo)); + localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo)); } else { this.tip(res.message, 2, '关闭'); } diff --git a/redPackets.html b/redPackets.html index aa1173c..b83e1f5 100644 --- a/redPackets.html +++ b/redPackets.html @@ -194,9 +194,9 @@ .then((res) => { this.loading = false; if (res.code == 200) { + this.goodsInfo.available = 9; this.tip("领取成功", 2, '关闭'); - this.goodInfo.available = 9; - localStorage.setItem('goodInfo', JSON.stringify(this.goodInfo)); + localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo)); } else { this.tip(res.message, 2, '关闭'); }