From 2eb1a1bf41473920363f73584e1e0662b1a1a401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Thu, 8 Aug 2024 09:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=92=8C?= =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E8=B7=B3=E8=BD=AC=E5=88=B0=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E9=A1=B5=E9=9D=A2=E6=97=B6=E4=BC=A0=E5=85=A5=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E7=BC=96=E5=8F=B7=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E4=BE=BF=E6=9F=A5=E8=AF=A2=E5=8F=AF=E7=94=A8=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/index.vue | 3 ++- pages/index/cart.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/goods/index.vue b/pages/goods/index.vue index 488c435d..bf0b0cb9 100644 --- a/pages/goods/index.vue +++ b/pages/goods/index.vue @@ -156,7 +156,8 @@ data: JSON.stringify({ items: [{ skuId: e.id, - count: e.goods_num + count: e.goods_num, + categoryId: state.goodsInfo.categoryId }] }), }); diff --git a/pages/index/cart.vue b/pages/index/cart.vue index 3f42523b..633b567d 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -107,6 +107,7 @@ skuId: item.sku.id, count: item.count, cartId: item.id, + categoryId: item.spu.categoryId }) goods_list.push({ // goods_id: item.goods_id,