From 1591265987f8b6bb9d4a3c4157656a8743cc5f5d Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Sat, 8 Oct 2022 16:46:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=90=BD=E5=9C=B0=E9=A1=B5=E5=8C=BA?= =?UTF-8?q?=E5=88=86=E5=85=91=E6=8D=A2=E7=A0=81=E5=92=8C=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=8D=B7=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1_5_0_C/index.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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);