From 792aa4268acb3541d99c818fd075be3a1b0d737e Mon Sep 17 00:00:00 2001 From: Waiting Date: Wed, 20 Mar 2024 22:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sku-dialog.vue | 49 +++++++++++----------- src/pages/mall/index.vue | 15 ++++--- src/pages/mall/subs/goods/detail.vue | 30 +++++++++---- src/pages/mall/subs/shoppingcart/index.vue | 20 +++++---- src/pages/mine/index.vue | 7 +++- src/pages/qrcode/index.vue | 6 ++- src/store/modules/shoppingcart/index.ts | 43 ++++++++++++++----- src/store/modules/user/index.ts | 9 +++- src/store/modules/user/types.ts | 2 +- 9 files changed, 118 insertions(+), 63 deletions(-) diff --git a/src/components/sku-dialog.vue b/src/components/sku-dialog.vue index 3f33457..16cc61f 100644 --- a/src/components/sku-dialog.vue +++ b/src/components/sku-dialog.vue @@ -4,7 +4,7 @@ - {{ bean.name }}… + {{ bean?.name }} {{ bean?.price }} @@ -12,7 +12,7 @@ 颜色 - {{ item }} @@ -21,16 +21,16 @@ 尺码 - - {{ item }} + {{ item.sizeName }} 购买数量 - @@ -48,40 +48,37 @@ diff --git a/src/pages/mall/subs/goods/detail.vue b/src/pages/mall/subs/goods/detail.vue index de41d66..df2f9e0 100644 --- a/src/pages/mall/subs/goods/detail.vue +++ b/src/pages/mall/subs/goods/detail.vue @@ -12,7 +12,7 @@ - + {{ goodsBean?.price || 0 }} 销量2653 @@ -78,7 +78,7 @@ - 0 + {{ shoppingCartList.length }} 购物车 @@ -90,20 +90,25 @@ - +