From 1395f2ad24260964291340e86a16f862fbbc4d14 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 22 Oct 2026 16:37:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(goods):=20=E9=87=8D=E6=9E=84=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=A1=B5=E9=9D=A2=E8=A3=85=E4=BF=AE=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E6=9B=BF=E4=BB=A3?= =?UTF-8?q?CSS=E7=A4=BA=E6=84=8F=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"货号"统一重命名为"SKU编码" - 重构分类页面装修,使用图片预览替代CSS示意图 - 修复商家端主容器横向溢出隐藏问题 --- .../src/components/goodsDetail/ShowGoods.vue | 60 +- buyer/src/pages/Cart.vue | 7 - buyer/src/pages/GoodsList.vue | 15 - buyer/src/pages/Merchant.vue | 13 - buyer/src/pages/user/menu.js | 48 - manager/src/views/goods/goods-info/goods.vue | 22 - .../views/goods/goods-info/goodsDetail.vue | 34 +- .../src/views/goods/virtual-sales/index.vue | 4 +- .../page-decoration/category-setting.vue | 453 ++-- .../goods/goods-seller/alertQuantity.vue | 4 +- .../goods/goods-seller/alertQuantityWarn.vue | 4 +- seller/src/views/goods/goods-seller/goods.vue | 4 +- .../goods-seller/goodsOperationFirst.vue | 2 +- .../goods/goods-seller/goodsOperationSec.vue | 2076 +++++++++++------ seller/src/views/main.scss | 1 - 15 files changed, 1620 insertions(+), 1127 deletions(-) diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index b4019d5bb..5cff56f94 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -70,35 +70,7 @@
- -
-
-
- -
- {{ $filters.unitPrice(item, "¥") }} -
-
-
-
起批量
-
- {{ item }}{{ skuDetail.goodsUnit }} -
-
-
- - -
- {{ $filters.unitPrice(skuDetail.price, "¥") }} -
+ {{ $filters.unitPrice(skuDetail.price, "¥") }}
@@ -364,7 +336,6 @@ const router = useRouter(); const showGoodsVideo = ref(false); const goodsVideo = ref(""); -const wholesaleList = ref([]); const count = ref(1); // 商品数量 const imgIndex = ref(0); // 展示图片下标 const currentSelceted = ref([]); // 当前商品sku @@ -389,21 +360,6 @@ const currentImg = computed(() => { return item ? item.url || item : ""; }); -const wholesalePrice = computed(() => { - return wholesaleList.value.length - ? wholesaleList.value.map((item) => { - return item.price; - }) - : []; -}); - -const wholesaleNum = computed(() => { - return wholesaleList.value.length - ? wholesaleList.value.map((item) => { - return item.num; - }) - : []; -}); /** 卡密商品:禁加购,仅立即购买;库存读 quantity(M-02 起支持促销) */ const isECouponGoods = computed(() => { @@ -436,7 +392,6 @@ watch( () => props.detail, (val) => { skuDetail.value = val.data; - wholesaleList.value = val.wholesaleList; syncCountWithQuantity(); promotion(); swiperGoodsImg(); @@ -472,10 +427,6 @@ function syncCountWithQuantity() { count.value = 1; return; } - if (!isECouponGoods.value && wholesaleList.value && wholesaleList.value.length > 0) { - count.value = Math.min(Math.max(wholesaleList.value[0].num, 1), qty); - return; - } const max = isECouponGoods.value ? getECouponMaxBuyNum(skuDetail.value) : qty; if (count.value > max) { count.value = max; @@ -484,14 +435,7 @@ function syncCountWithQuantity() { } } -function changeCount(val) { - if (wholesaleList.value && wholesaleList.value.length > 0) { - if (count.value <= wholesaleList.value[0].num) { - Message.warning("批发商品购买数量不能小于起批数量"); - count.value = wholesaleList.value[0].num; - } - } -} +function changeCount(val) {} function select(index, value) { // 选择规格 diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index 3d0d97e34..70d6d3344 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -118,13 +118,6 @@

{{ goods.goodsSku.goodsName }}

-

- 批发商品 -