From 26e45866e56dfa4209a5166939be592e05442e97 Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 15 May 2024 11:33:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 - redPackets.html | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 097f9f3..d3ed726 100644 --- a/index.html +++ b/index.html @@ -244,7 +244,6 @@ let wxauth_url = "https://openapi.1688sup.com/wechat/oauth"; let pageV2 = await this.isPageV2(data, type); // 新页面,无须授权 - debugger if (pageV2) { wxauth_url = "/goods-v2/ysf-reduce.html"; } else { diff --git a/redPackets.html b/redPackets.html index cd632e6..50d702b 100644 --- a/redPackets.html +++ b/redPackets.html @@ -158,7 +158,12 @@ token: localStorage.getItem("token") } req.axiosGet(`/key/order/orderCashInfoByGoodsId/${this.goodsInfo.entity.goods_id}`, params).then(res => { - console.log("状态 =>", res) + if (res.code === 200) { + if (res.data.receive_status === 1 || res.data.receive_status === 2) { + this.goodsInfo.available = 9; + localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo)); + } + } }) } },