From 9213e2f70e80d5117e29a33575dd8396b161f667 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 10 Jan 2024 11:10:23 +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 --- exchange.html | 7 +++++-- homepage.html | 8 +++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/exchange.html b/exchange.html index 9997851..22f59cb 100644 --- a/exchange.html +++ b/exchange.html @@ -345,15 +345,18 @@ */ if (this.goodInfo.product_type === 2) { if (this.goodInfo.card_show == 2) { - if (!this.backAble) { /* 当只有一个卡密商品时 */ + if (!this.backAble && this.goodsDetail.restrict == 1) { /* 当只有一个卡密商品且仅兑换一次时 */ this.loading = true; setTimeout(() => { sessionStorage.setItem('orderNumber', res.data.order_number); window.location.href = './coupon/lookCard.html'; this.loading = false; }, 3000); + } else if (!this.backAble && this.goodsDetail.restrict > 1) { + this.successTip = '兑换成功,请到页面左下角"订单"查看卡密信息!'; + this.popboxshow = true; } else { - this.successTip = '兑换成功,请到页面左下角"订单"(订单列表处)查看卡密信息!'; + this.successTip = '兑换成功,请到"订单列表"查看卡密信息!'; this.popboxshow = true; } } else { diff --git a/homepage.html b/homepage.html index baa274b..cefc3bf 100644 --- a/homepage.html +++ b/homepage.html @@ -161,7 +161,7 @@
- +