feat: 分类浏览体验优化
- 后端 CategoryItem 新增 sample 字段,每个器械/部位分类附首条动作代表图(720 JPG 海报),前端网格无需点进详情即可预览 - 首页『按器械浏览』『按部位浏览』网格 tile 改为图文卡片,展示分类代表图 - filter-bar 内联改为一行可横滑的分类 chips + 末尾『全部类型』入口;点开面板展开全部,选中项自动置顶
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
data-value="{{item.value}}"
|
||||
data-label="{{item.label}}"
|
||||
bindtap="onScanBodyPart">
|
||||
<image class="bp__img" src="{{item.sample}}" mode="aspectFill" lazy-load />
|
||||
<text class="bp__label">{{item.label}}</text>
|
||||
<text class="bp__count">{{item.count}} 个动作</text>
|
||||
</view>
|
||||
@@ -135,6 +136,7 @@
|
||||
data-value="{{item.value}}"
|
||||
data-label="{{item.label}}"
|
||||
bindtap="onScanEquipment">
|
||||
<image class="eq__img" src="{{item.sample}}" mode="aspectFill" lazy-load />
|
||||
<text class="eq__label">{{item.label}}</text>
|
||||
<text class="eq__count">{{item.count}} 个动作</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user