fix: 🐛 修改可能显示图片不全的问题

This commit is contained in:
学习很差啦
2022-11-02 15:27:35 +08:00
parent 031aa0f173
commit 0f8d53b09a
4 changed files with 6 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
<div v-for="(item, index) in res" :key="index" class="goods-row" @click="navigateToDetailPage(item)">
<div class="flex goods-col">
<div class="goods-img">
<u-image width="230rpx" border-radius='16' height="230rpx" :src="item.goodsImage || item.thumbnail">
<u-image width="230rpx" mode="aspectFit" border-radius='16' height="230rpx" :src="item.goodsImage || item.thumbnail">
<u-loading slot="loading"></u-loading>
</u-image>
</div>