跳转地址更新

This commit is contained in:
red-deng-deng 2022-01-22 18:04:53 +08:00
parent 0eecb259c7
commit b665c95766
1 changed files with 27 additions and 17 deletions

View File

@ -134,6 +134,7 @@
let parmasResult = parmas.filter(n => n);
linkId = parmasResult.length > 0 ? parmasResult[0] : null; //链接携带落地页渲染id
keyCode = parmasResult.length > 1 ? parmasResult[1] : null; //链接携带key
linkId='AAAAWW9smfXGjug0';
}
req.axiosGetplan('/plan/plan_theme/' + linkId).then(res => {
if (res.code == 200) {
@ -152,13 +153,21 @@
}
sessionStorage.setItem('linkId', linkId);
}else{//跳转链接
sessionStorage.setItem('tourl',true);
setTimeout(()=>{
window.location.href=res.data;
},3000);
}
//是否携带token
if (keyCode) {
let data = {
key: keyCode
}
if(keyCode.includes('html')){
return
}else{
req.axiosPostTogppds('/key/loginFromLink', data).then(res => {
if (res.code == 200) {
sessionStorage.setItem('key', keyCode);
@ -178,6 +187,7 @@
self.tiptext = res.message;
self.popboxshow = true;
});
}
} else {
let keyName;
if(this.pageType==3){