From 00e53a20e3bccded5b605d1cc185168ae58f5965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Tue, 21 Apr 2026 18:23:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(product):=20=E5=95=86=E5=93=81=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=98=BE=E7=A4=BA=E5=93=81=E7=B1=BB=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - types.vo.ts: ProductVO.Info 新增 categoryId/categoryName 字段 - ProductCard.vue: 卡片信息区新增品类名称显示(蓝色) --- .../src/api/ecommerce/product/types/types.vo.ts | 4 ++++ .../views/ecommerce/product/components/ProductCard.vue | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts index fdb47fbc..20658e8b 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts @@ -9,6 +9,10 @@ export namespace ProductVO { id: number; /** 公司ID */ companyId: number; + /** 类目ID */ + categoryId?: number; + /** 类目名称 */ + categoryName?: string; /** 商品名称 */ name: string; /** 链接商品名称 */ 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 fa8b35b6..80cdbf50 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 @@ -82,11 +82,19 @@ const goToDetails = (product: ProductVO.Info) => {
编码: {{ product.productCode }}
+ +
+ {{ product.categoryName }} +
+