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