From 2cd0d163048da8a0f002bfbd59d3758e42b1e9b8 Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 15 May 2024 10:52:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + redPackets.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/index.html b/index.html index d3ed726..097f9f3 100644 --- a/index.html +++ b/index.html @@ -244,6 +244,7 @@ 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 b83e1f5..cd632e6 100644 --- a/redPackets.html +++ b/redPackets.html @@ -143,6 +143,7 @@ let openid = getQueryString("openid"); if (openid) { this.openid = openid; + this.getGoodsStatus(); } }, mounted() { @@ -150,6 +151,17 @@ }, methods: { + // 获取最新的商品状态 + getGoodsStatus() { + if (this.goodsInfo.entity.goods_id) { + let params = { + token: localStorage.getItem("token") + } + req.axiosGet(`/key/order/orderCashInfoByGoodsId/${this.goodsInfo.entity.goods_id}`, params).then(res => { + console.log("状态 =>", res) + }) + } + }, /* 立即领取 */ receive() { if (this.loading) return;