From 1926afd27629d68013543a1d30cf39c4a2e69fd3 Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 27 Jun 2025 18:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E5=95=86=E5=9F=8E=E8=B0=83?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/components/product-sku.vue | 30 ++++++++++++----------- src/pages/shop/product-detail.vue | 18 ++++++++------ src/pages/tabbar/onlineShop.vue | 30 +++++++++++++++-------- src/sheep/api/index.ts | 2 ++ src/sheep/api/onlineShop.ts | 20 +++++++++++++++ 5 files changed, 68 insertions(+), 32 deletions(-) create mode 100644 src/sheep/api/onlineShop.ts diff --git a/src/pages/shop/components/product-sku.vue b/src/pages/shop/components/product-sku.vue index 96aac93..1010b5a 100644 --- a/src/pages/shop/components/product-sku.vue +++ b/src/pages/shop/components/product-sku.vue @@ -26,11 +26,11 @@ {{ state.goodsDetail.productName }} - 促销 ¥{{ parseFloat(state.selectedSku.promotionPrice) || state.selectedSku.retailPrice || 0 }} + 促销 ¥{{ hooks.useMoney(state.selectedSku.promotionPrice) || hooks.useMoney(state.selectedSku.retailPrice) || 0 }} - 原价 ¥{{ state.selectedSku.retailPrice || 0 }} + 原价 ¥{{ hooks.useMoney(state.selectedSku.retailPrice) || 0 }} - 内装数量:{{ state.selectedSku.packageNum || 0 }} + 库存:{{ state.selectedSku.stock || 0 }} 已选择:{{ `${state.selectedSku.spec || "未选择"} / ${state.selectedSku.unit || "未选择"},数量:${state.goodsCount}` }} @@ -71,7 +71,7 @@