Browse Source

首页 修改图片显示

master
邓宏 11 months ago
parent
commit
be6516c117
  1. 2
      pages/home/index.vue

2
pages/home/index.vue

@ -290,7 +290,7 @@
<view class="article">
<view class="plant" @click="$u.route({url:'pages/massif/myPlant'})">
<text class="plant-bijibenjilutongxunlu"/>
<u-image v-for="(v,k) in (massif.images||[]).slice(0,5)" :style="{'--c':massif.images.length-5>0?`'+${massif.images.length-5}'`:''}" :key="k" mode="aspectFill" width="56rpx" height="46rpx" radius="8rpx" :src="`${host}/${v}`">
<u-image v-for="(v,k) in (massif.images||[]).slice(0,5)" :style="{'--c':k==4&&massif.images.length-5>0?`'+${massif.images.length-5}'`:''}" :key="k" mode="aspectFill" width="56rpx" height="46rpx" radius="8rpx" :src="`${host}/${v}`">
<text slot="error" class="plant-xiaopangchetupianjiazaishibai"/>
</u-image>
<text class="link">>></text>

Loading…
Cancel
Save