|
@@ -39,7 +39,8 @@
|
|
|
</view>
|
|
|
<view class="list animated fadeInDown">
|
|
|
<view class="news_item" v-for="(item, index) in newsList" :key="index" @click="go('/pages/news/detail?id=' + item.id)">
|
|
|
- <image src="../../static/tp.jpg" mode="aspectFill" class="img"></image>
|
|
|
+ <image :src="item.cover" mode="aspectFill" class="img" v-if="item.cover"></image>
|
|
|
+ <image src="../../static/tp.jpg" mode="aspectFill" class="img" v-else></image>
|
|
|
<view class="con">
|
|
|
<view class="title ellip">{{ item.title }}</view>
|
|
|
<view class="source omit">
|