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