refactor: 搜索框 - 热销产品显示简称

This commit is contained in:
2025-05-13 17:39:03 +08:00
parent bfae1a23fc
commit ee0f9f25e3
2 changed files with 2 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ abstract class Common extends BaseController
$products = ProductModel::field([
'id',
'name',
'short_name',
'cover_image',
])
->language($language)

View File

@@ -109,7 +109,7 @@
<div class="popitem">
<a href="{:url('product/detail', ['id' => $vo.id])}"><img src="{$vo.cover_image}" class="popimg" /></a>
<div class="productName">{$vo.name}</div>
<div class="produc-dec">{$vo.name}</div>
<div class="produc-dec">{$vo.short_name}</div>
</div>
{/volist}
</div>