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));
+ }
+ }
})
}
},