Commit 48ccee35 authored by leon's avatar leon

feat;use coverImage first

parent cad8abef
......@@ -3,7 +3,7 @@
<u-waterfall v-model="reportList">
<template v-slot:left="{leftList}">
<view class="water-list" v-for="(item, index) in leftList" :key="index" @click="onClick(item)">
<u-lazy-load class="water-image" img-mode="aspectFit" threshold="-450" height="150" border-radius="10" :image="item.previewImg" :index="index"></u-lazy-load>
<u-lazy-load class="water-image" img-mode="aspectFit" threshold="-450" height="150" border-radius="10" :image="item.coverImage ? item.coverImage : item.previewImg" :index="index"></u-lazy-load>
<view class="water-name">
{{item.name}}
</view>
......@@ -14,7 +14,7 @@
</template>
<template v-slot:right="{rightList}">
<view class="water-list" v-for="(item, index) in rightList" :key="index" @click="onClick(item)">
<u-lazy-load class="water-image" img-mode="aspectFit" threshold="-450" height="150" border-radius="10" :image="item.previewImg" :index="index"></u-lazy-load>
<u-lazy-load class="water-image" img-mode="aspectFit" threshold="-450" height="150" border-radius="10" :image="item.coverImage ? item.coverImage : item.previewImg" :index="index"></u-lazy-load>
<view class="water-name">
{{item.name}}
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment