product:优化商品分类的代码

This commit is contained in:
YunaiV
2022-12-14 20:32:44 +08:00
parent 5474ae876d
commit 2f9eef589b
8 changed files with 95 additions and 40 deletions

View File

@ -34,7 +34,7 @@
<u-grid-item v-for="(subItem, subIndex) in item.children" :key="subItem.id">
<view class="sub-category-item" @click="handleCategory(item, subIndex)">
<u-icon name="photo" :size="80" v-if="subItem.picUrl === null"></u-icon>
<image :src="item.picUrl" v-if="subItem.picUrl != null" mode='widthFix' />
<image :src="subItem.picUrl" v-if="subItem.picUrl != null" mode='widthFix' />
<text class="sub-category-title">{{ subItem.name }}</text>
</view>
</u-grid-item>