feat:落地页区分兑换码和优惠卷页面跳转
This commit is contained in:
parent
bb9677e0f0
commit
1591265987
|
@ -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(() => {
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue