test:打印链接跳转路由

This commit is contained in:
Apple 2022-11-03 10:21:24 +08:00
parent 8f891136aa
commit 1b41899583
2 changed files with 3 additions and 2 deletions

View File

@ -576,7 +576,6 @@
}); });
}); });
}, },
//优惠券订单支付 //优惠券订单支付
createdPay (orderNumber) { createdPay (orderNumber) {
console.log(582,orderNumber); console.log(582,orderNumber);

View File

@ -110,7 +110,6 @@
}, },
created () { created () {
let self = this; let self = this;
//获取链接携带的参数 //获取链接携带的参数
let linkId = this.getQueryString('id'); let linkId = this.getQueryString('id');
@ -126,6 +125,7 @@
req.axiosGet('/plan/plan_theme/' + linkId).then(res => { req.axiosGet('/plan/plan_theme/' + linkId).then(res => {
if (res.code == 200) { if (res.code == 200) {
window.location.replace(res.data); window.location.replace(res.data);
self.loading = false; self.loading = false;
return; return;
} else { } else {
@ -142,6 +142,7 @@
localStorage.setItem('title', res.data.title); localStorage.setItem('title', res.data.title);
localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list)); 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('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail));
localStorage.setItem('test', window.location.href);
if(isWx()){ if(isWx()){
this.getweixin(); this.getweixin();
} }
@ -197,6 +198,7 @@
center.style.height = img.clientHeight + "px"; center.style.height = img.clientHeight + "px";
} }
}) })
// localStorage.clear() // localStorage.clear()
}, },
computed: { computed: {