🐛 fix: 修复bug
This commit is contained in:
parent
e428d3aded
commit
741579b3ae
|
@ -166,7 +166,6 @@
|
|||
}
|
||||
if (item.channel == 1) {
|
||||
if (item.goods.entity.receive_mode === 2) { /* H5 领取 */
|
||||
item.goods.available = 1;
|
||||
sessionStorage.setItem('goodsInfo', JSON.stringify(item.goods));
|
||||
location.href = './zfb-reduce.html';
|
||||
} else {
|
||||
|
@ -201,7 +200,6 @@
|
|||
if (item.type === 3) {
|
||||
if (item.channel === 1) {
|
||||
if (item.goods.entity.receive_mode === 2) { /* H5 领取 */
|
||||
item.goods.available = 1;
|
||||
sessionStorage.setItem('goodsInfo', JSON.stringify(item.goods));
|
||||
location.href = './zfb-redPackets.html';
|
||||
} else {
|
||||
|
|
|
@ -129,6 +129,11 @@
|
|||
|
||||
mounted () {
|
||||
document.title = localStorage.getItem('title');
|
||||
|
||||
/* 初始弹窗 */
|
||||
if (![1, 9].includes(this.goodsInfo.available)) {
|
||||
this.tip(product_status(this.goodsInfo.available, this.goodsInfo), 2);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -209,7 +214,7 @@
|
|||
if (this.backAble) {
|
||||
window.location.replace('./homepage.html');
|
||||
} else {
|
||||
this.popShow = false;
|
||||
history.go(-2);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{{prompt_text}}
|
||||
</div>
|
||||
<!-- 弹出提示 -->
|
||||
<model-pop @backFunction="backGoodsFn" :show.sync="popShow" title="温馨提示" :status="popStatus"
|
||||
<model-pop @backFunction="popShow = false" :show.sync="popShow" title="温馨提示" :status="popStatus"
|
||||
:text="popText"></model-pop>
|
||||
<!-- 单条弹出框 -->
|
||||
<img class="bubble" src="https://lsxd-zfb-reduction.oss-cn-hangzhou.aliyuncs.com/img/logo.png" alt="">
|
||||
|
@ -187,6 +187,7 @@
|
|||
req.axiosPost("/voucher/grant", params)
|
||||
.then(({ code, message }) => {
|
||||
if (code === 200) {
|
||||
this.goods.available = 9;
|
||||
this.tip('领取成功,请前往【支付宝】-【卡包】中查看', 1);
|
||||
} else {
|
||||
this.axiosErrorFun(code, message, 2);
|
||||
|
@ -198,11 +199,9 @@
|
|||
/* 返回 */
|
||||
backGoodsFn () {
|
||||
if (this.backAble) {
|
||||
setTimeout(() => {
|
||||
window.location.replace('./homepage.html');
|
||||
}, 300);
|
||||
window.location.replace('./homepage.html');
|
||||
} else {
|
||||
this.popShow = false;
|
||||
history.go(-2);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue