From f17e6df65bb5a12a524075ae0d52aa5b6bb76eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Fri, 8 May 2026 11:20:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=95=86=E5=93=81=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=A7=84=E6=A0=BC=E5=B1=95=E7=A4=BA=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E9=99=90=E5=88=B6=EF=BC=8C=E5=85=A8=E9=83=A8=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=9D=87=E5=8F=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../product/components/ProductCard.vue | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/product/components/ProductCard.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/product/components/ProductCard.vue index 670ac5ae..6e1b852d 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/product/components/ProductCard.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/product/components/ProductCard.vue @@ -79,9 +79,6 @@ const goToDetails = (product: ProductVO.Info) => { router.push(`/ecom/product/overview/${product.id}`); }; -const MAX_VISIBLE_SPECS = 4; -const visibleSpecs = computed(() => (props.product.specs || []).slice(0, MAX_VISIBLE_SPECS)); - /** id 仅来自后端的已有规格;新增行不传 id,用 _clientKey 做列表 key */ type EditableSpec = { id?: number; @@ -241,7 +238,7 @@ const displaySpecs = computed(() => { if (isEditing.value) { return draft.value.specs; } - return visibleSpecs.value; + return props.product.specs || []; }); const formatCost = (val?: number) => `¥${(val ?? 0).toFixed(2)}`; @@ -593,12 +590,6 @@ const saveEdit = async () => { -
- 仅展示前 {{ visibleSpecs.length }} 条规格,点击「经营统计」查看全部 -
暂无规格数据
@@ -1275,14 +1266,6 @@ const saveEdit = async () => { font-size: 0.875rem; } -.more-tip { - padding: 10px 16px; - font-size: 11px; - color: #8c8c8c; - border-top: 1px dashed #f0f0f0; - background: #fafafa; -} - .empty-text { font-size: 13px; color: #8c8c8c; @@ -1449,7 +1432,6 @@ html.dark { .field-label, .label, - .more-tip, .empty-text, .no-image, .cost-prefix { @@ -1590,11 +1572,6 @@ html.dark { border: 1px solid hsl(var(--primary) / 26%); } - .more-tip { - background: $accent-light-bg; - border-top: 1px dashed $border-base; - } - .meta-box, .table-container, .spec-row,