diff --git a/exchange.html b/exchange.html index 52286c6..6aab61f 100644 --- a/exchange.html +++ b/exchange.html @@ -158,7 +158,6 @@ describe: {}, detailUrl: '', successTip: '', - order_number: 0, goodInfo: '', bgcolor: '', ftcolor: '', @@ -239,11 +238,9 @@ //刷新页面 successchangeBtnFn () { if (this.goodInfo.product_type === 2 && this.goodInfo.card_show == 2) { - localStorage.setItem("orderNumber", this.order_number); 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.card_show == 2) { + localStorage.setItem("orderNumber", res.data.order_number); this.loading = true; - this.order_number = res.data.order_number; this.successTip = '兑换成功!'; setTimeout(() => { this.popboxshow = true;