diff --git a/coupon/details.html b/coupon/details.html index 1fe7a1a..1ff05e9 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -576,7 +576,6 @@ }); }); }, - //优惠券订单支付 createdPay (orderNumber) { console.log(582,orderNumber); diff --git a/index.html b/index.html index fad40eb..1d4bb8c 100644 --- a/index.html +++ b/index.html @@ -110,7 +110,6 @@ }, created () { - let self = this; //获取链接携带的参数 let linkId = this.getQueryString('id'); @@ -126,6 +125,7 @@ req.axiosGet('/plan/plan_theme/' + linkId).then(res => { if (res.code == 200) { window.location.replace(res.data); + self.loading = false; return; } else { @@ -142,6 +142,7 @@ localStorage.setItem('title', res.data.title); localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list)); localStorage.setItem('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail)); + localStorage.setItem('test', window.location.href); if(isWx()){ this.getweixin(); } @@ -197,6 +198,7 @@ center.style.height = img.clientHeight + "px"; } }) + // localStorage.clear() }, computed: {