From 2486e4be99d638b2f34c4e4623930a2a79502969 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Sun, 4 Feb 2024 17:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=8D=E5=88=B7=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/myOrder.html | 6 +++++- order.html | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/coupon/myOrder.html b/coupon/myOrder.html index ed945e6..46aaef8 100644 --- a/coupon/myOrder.html +++ b/coupon/myOrder.html @@ -134,6 +134,10 @@ this.goodsCount = localStorage.getItem('goodsCount'); this.scrollTop = document.documentElement.scrollTop || document.body.scrollTop; + + window.addEventListener('pageshow', () => { + !this.loadShowHeight && this.getOrderList(); + }); }, methods: { @@ -182,7 +186,7 @@ /* 查看卡密 */ lookCard (item) { sessionStorage.setItem("orderNumber", item.order_number); - window.location.href = './orderDetails/cardOrder.html'; + window.location.href = '../orderDetails/cardOrder.html'; }, /*跳转详情*/ diff --git a/order.html b/order.html index cadb0cc..061eeab 100644 --- a/order.html +++ b/order.html @@ -119,6 +119,10 @@ this.goodsCount = Number(sessionStorage.getItem("goodsCount")); this.scrollTop = document.documentElement.scrollTop || document.body.scrollTop; + + window.addEventListener('pageshow', () => { + !this.loadShowHeight && this.getOrderList(); + }); }, methods: {