From c48eb99bb65733157ae55999a2fb32d44f034d64 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 22 Apr 2024 11:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=8F=91=E8=B4=A7=E5=9C=B0=E7=82=B9=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E5=90=8E=20=E6=9C=AA=E6=97=B6=E9=97=B4=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E8=AE=A2=E5=8D=95=E5=BD=92=E5=B1=9E=E5=95=86=E6=88=B7?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods_details/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 65d0ca2..20df12b 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -1483,9 +1483,15 @@ title: '购买个数不能为0!' }) } + + + // 获取商品ID + let productId = that.id; + if(that.send_province_info) productId = that.send_province_info.product_id; + let q = { is_new: news === undefined ? 0 : 1, - product_id: that.id, + product_id: productId, cart_num: that.attr.productSelect.cart_num, product_attr_unique: that.attr.productSelect !== undefined ? that.attr.productSelect.unique : "", source: this.source,