修复图片高度设置为array的异常。

This commit is contained in:
JianWeie
2022-01-20 14:23:38 +08:00
parent 261b8e8dd3
commit 3fe754c3b4
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -360,4 +360,5 @@ MigrationBackup/
.ionide/ .ionide/
# Fody - auto-generated XML schema # Fody - auto-generated XML schema
FodyWeavers.xsd FodyWeavers.xsd
/CoreCms.Net.Uni-App/CoreShop/unpackage/dist/dev

View File

@@ -10,7 +10,7 @@
<u-grid :col="coreshopdata.parameters.column" :border="false" align="left"> <u-grid :col="coreshopdata.parameters.column" :border="false" align="left">
<u-grid-item :custom-style="{padding: '0px'}" v-for="(item, index) in coreshopdata.parameters.list" :key="index"> <u-grid-item :custom-style="{padding: '0px'}" v-for="(item, index) in coreshopdata.parameters.list" :key="index">
<view class="good_box" @tap="goGoodsDetail(item.id)"> <view class="good_box" @tap="goGoodsDetail(item.id)">
<u--image :src="item.image" mode="widthFix" width="100%" :height="[coreshopdata.parameters.column==2?'164px':'104px']" radius="10"></u--image> <u--image :src="item.image" mode="widthFix" width="100%" :height="coreshopdata.parameters.column==2?'164px':'104px'" radius="10"></u--image>
<view class="good_title u-line-2"> <view class="good_title u-line-2">
{{item.name}} {{item.name}}
</view> </view>