From 215398e1de740af27a246fe66f452fa481df9cee Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 10 Jan 2024 09:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/lookCard.html | 7 +++---- homepage.html | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/coupon/lookCard.html b/coupon/lookCard.html index 428a132..69bc6f6 100644 --- a/coupon/lookCard.html +++ b/coupon/lookCard.html @@ -22,7 +22,7 @@
-
@@ -107,6 +107,7 @@ toastShow: false, toastTip: '', loading: true, + backShow: sessionStorage.getItem('backShow') }; }, @@ -140,7 +141,6 @@ }); }, - // 单条弹框 openDialog (tip) { this.toastShow = true; @@ -153,8 +153,7 @@ backHandler () { history.go(-1); - } - + }, } }) diff --git a/homepage.html b/homepage.html index d7c9b75..3328214 100644 --- a/homepage.html +++ b/homepage.html @@ -380,6 +380,7 @@ }, 1000); } } else { //兑换码 + localStorage.setItem('backShow', ''); data.token = localStorage.getItem('token'); req.axiosPost('/key/products', data).then(res => { if (res.code == 200) { @@ -400,6 +401,7 @@ .then(({ data, code, }) => { if (code === 200) { localStorage.setItem('orderNumber', data[0].order_number); + localStorage.setItem('backShow', 1); window.location.href = './coupon/lookCard.html'; } });