diff --git a/v1_5_0_C/index.html b/v1_5_0_C/index.html index f1ae2ea..acd5529 100644 --- a/v1_5_0_C/index.html +++ b/v1_5_0_C/index.html @@ -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);