This commit is contained in:
red-deng-deng 2022-01-22 18:26:01 +08:00
parent 6e39728527
commit 98279466b0
1 changed files with 13 additions and 7 deletions

View File

@ -123,7 +123,11 @@
maskshow: false
}
},
beforeDestroy(){
console.log('本页面销毁');
},
created() {
console.log('跳转页面',window.location.href);
let self = this;
//获取链接携带的参数
let linkId = this.getQueryString('id');
@ -135,9 +139,13 @@
linkId = parmasResult.length > 0 ? parmasResult[0] : null; //链接携带落地页渲染id
keyCode = parmasResult.length > 1 ? parmasResult[1] : null; //链接携带key
}
req.axiosGetplan('/plan/plan_theme/' + linkId).then(res => {
if(linkId.length>12){
req.axiosGetplan('/plan/plan_theme/' + linkId).then(res => {
window.location.href=res.data;
})
}else{
req.axiosGetplan('/plan/plan_theme/' + linkId).then(res => {
if (res.code == 200) {
if(res.data.id){
//内置页顶图
document.title = res.data.title;
self.plan_id=res.data.plan_id
@ -151,10 +159,6 @@
sessionStorage.setItem('product_detail', JSON.stringify(res.data['access_conf'].product_detail));
}
sessionStorage.setItem('linkId', linkId);
}else{//跳转链接
setTimeout(()=>{
window.location.href=res.data;
},3000);
}
//是否携带token
if (keyCode) {
@ -198,7 +202,9 @@
}
}).catch(err => {});
},
}
},
mounted() {
this.$nextTick(() => {