feat:落地页区分兑换码和优惠卷页面跳转

This commit is contained in:
wangsongsole 2022-10-08 16:46:18 +08:00
parent bb9677e0f0
commit 1591265987
1 changed files with 13 additions and 4 deletions

View File

@ -146,8 +146,13 @@
sessionStorage.setItem('haskey', keyCode);
this.openDialog('正在加载商品...');
sessionStorage.setItem('entryLink', window.location.href);//存储起始页链接
window.location.replace("/couponCollection.html");
setTimeout(() => {
if (this.pageType === 4) {
window.location.href = './couponCollection.html';
} else {
window.location.href = '../homepage.html';
}
}, 1000);
} else {
self.openErrorDialog(res.message);
}
@ -231,7 +236,11 @@
this.openDialog('正在加载商品...');
sessionStorage.setItem('entryLink', window.location.href);//存储起始页链接
setTimeout(() => {
window.location.href = './couponCollection.html';
if (this.pageType === 4) {
window.location.href = './couponCollection.html';
} else {
window.location.href = '../homepage.html';
}
}, 1000);
} else {
self.openErrorDialog(res.message);
@ -280,7 +289,7 @@
this.openDialog('正在加载商品...');
sessionStorage.setItem('entryLink', window.location.href);//存储起始页链接
setTimeout(() => {
window.location.href = './couponCollection.html';
window.location.href = '../homepage.html';
}, 1000);
} else {
self.openErrorDialog(self.tiptext);