fix:修复跳转起始页报错问题
This commit is contained in:
parent
4da9f126cc
commit
da5cc8818c
|
@ -407,7 +407,7 @@
|
||||||
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
||||||
sessionStorage.setItem('key', goodsArr[0].key);
|
sessionStorage.setItem('key', goodsArr[0].key);
|
||||||
sessionStorage.setItem('token', goodsArr[0].token);
|
sessionStorage.setItem('token', goodsArr[0].token);
|
||||||
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./index.html");
|
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./index.html?id=" + sessionStorage.getItem('linkId'));
|
||||||
return false;
|
return false;
|
||||||
} else if (goodsArr && goodsArr.length >= 1) {
|
} else if (goodsArr && goodsArr.length >= 1) {
|
||||||
self.goodsNum = true;
|
self.goodsNum = true;
|
||||||
|
|
|
@ -163,7 +163,11 @@
|
||||||
this.popStatus = 2
|
this.popStatus = 2
|
||||||
this.popShow = true
|
this.popShow = true
|
||||||
if (!this.popShow) {
|
if (!this.popShow) {
|
||||||
window.location.replace('./index.html');
|
/*跳转起始页面*/
|
||||||
|
let entryLink = sessionStorage.getItem('entryLink');
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.replace(entryLink);
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
if (code === -1) {
|
if (code === -1) {
|
||||||
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
||||||
if (!this.popShow) {
|
if (!this.popShow) {
|
||||||
window.location.replace('./index.html');
|
this.toPage()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
if (code === -1) {
|
if (code === -1) {
|
||||||
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
||||||
if (!this.popShow) {
|
if (!this.popShow) {
|
||||||
window.location.replace('./index.html');
|
this.toPage()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
if (code === -1) {
|
if (code === -1) {
|
||||||
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
||||||
if (!this.popShow) {
|
if (!this.popShow) {
|
||||||
window.location.replace('./index.html');
|
this.toPage()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -238,6 +238,14 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/*跳转起始页面*/
|
||||||
|
toPage () {
|
||||||
|
let entryLink = sessionStorage.getItem('entryLink');
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.replace(entryLink);
|
||||||
|
}, 3000);
|
||||||
|
},
|
||||||
|
|
||||||
/* 弹窗回调 */
|
/* 弹窗回调 */
|
||||||
backFunction (type) {
|
backFunction (type) {
|
||||||
if (this.bottomText === '点击复制' && type) {
|
if (this.bottomText === '点击复制' && type) {
|
||||||
|
|
Loading…
Reference in New Issue