🐛 fix: 修复bug
This commit is contained in:
parent
d8c97426a2
commit
c47937b13a
|
@ -158,7 +158,6 @@
|
||||||
describe: {},
|
describe: {},
|
||||||
detailUrl: '',
|
detailUrl: '',
|
||||||
successTip: '',
|
successTip: '',
|
||||||
order_number: 0,
|
|
||||||
goodInfo: '',
|
goodInfo: '',
|
||||||
bgcolor: '',
|
bgcolor: '',
|
||||||
ftcolor: '',
|
ftcolor: '',
|
||||||
|
@ -239,11 +238,9 @@
|
||||||
//刷新页面
|
//刷新页面
|
||||||
successchangeBtnFn () {
|
successchangeBtnFn () {
|
||||||
if (this.goodInfo.product_type === 2 && this.goodInfo.card_show == 2) {
|
if (this.goodInfo.product_type === 2 && this.goodInfo.card_show == 2) {
|
||||||
localStorage.setItem("orderNumber", this.order_number);
|
|
||||||
window.location.href = './coupon/lookCard.html';
|
window.location.href = './coupon/lookCard.html';
|
||||||
} else {
|
|
||||||
window.location.replace(document.referrer);
|
|
||||||
}
|
}
|
||||||
|
window.location.replace(document.referrer);
|
||||||
},
|
},
|
||||||
|
|
||||||
//兑换商品
|
//兑换商品
|
||||||
|
@ -338,8 +335,8 @@
|
||||||
|
|
||||||
if (this.goodInfo.product_type === 2) {
|
if (this.goodInfo.product_type === 2) {
|
||||||
if (this.goodInfo.card_show == 2) {
|
if (this.goodInfo.card_show == 2) {
|
||||||
|
localStorage.setItem("orderNumber", res.data.order_number);
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.order_number = res.data.order_number;
|
|
||||||
this.successTip = '兑换成功!';
|
this.successTip = '兑换成功!';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.popboxshow = true;
|
this.popboxshow = true;
|
||||||
|
|
Loading…
Reference in New Issue