feat(product): 商品卡片显示品类名称

- types.vo.ts: ProductVO.Info 新增 categoryId/categoryName 字段
- ProductCard.vue: 卡片信息区新增品类名称显示(蓝色)
This commit is contained in:
小蟑螂
2026-04-21 18:23:15 +08:00
parent ccefb0f2af
commit 00e53a20e3
2 changed files with 13 additions and 1 deletions
@@ -82,11 +82,19 @@ const goToDetails = (product: ProductVO.Info) => {
<!-- 商品编码 -->
<div
v-if="product.productCode"
class="mb-2 text-xs text-gray-500 dark:text-gray-400"
class="mb-1 text-xs text-gray-500 dark:text-gray-400"
>
编码: {{ product.productCode }}
</div>
<!-- 品类 -->
<div
v-if="product.categoryName"
class="mb-2 text-xs text-blue-500 dark:text-blue-400"
>
{{ product.categoryName }}
</div>
<!-- 规格数量标签(支持悬停显示详情) -->
<div v-if="product.specs && product.specs.length > 0" class="mb-3">
<Popover placement="right" trigger="hover">