From 9eb242a53dad837f519ec35e45c2511ea65fc801 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sat, 22 Jan 2022 15:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exchange.html | 2 +- homepage.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exchange.html b/exchange.html index 542ee11..5ef66a1 100644 --- a/exchange.html +++ b/exchange.html @@ -194,7 +194,7 @@ //刷新页面 successchangeBtnFn() { console.log(window); - window.replace(document.referrer); + window.location.replace(document.referrer); }, //兑换商品 exchangeGoodsFn() { diff --git a/homepage.html b/homepage.html index 6f5ba71..f05a412 100644 --- a/homepage.html +++ b/homepage.html @@ -366,6 +366,7 @@ self.swiperDataList = res.data; self.goodsShow = res.data.length > 1; if (res.data && res.data.length == 1&&res.data[0].available==1) { + console.log(123,res.data); sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0])); window.location.href = "./exchange.html"; return false;