|
@@ -9,7 +9,7 @@
|
|
|
<view class="page-panel pest-panel" v-if="pestList.length>0">
|
|
<view class="page-panel pest-panel" v-if="pestList.length>0">
|
|
|
<block v-for="(item,index) in pestList" :key="index">
|
|
<block v-for="(item,index) in pestList" :key="index">
|
|
|
<view class="pest-item" @click="openPestsInfo(item)">
|
|
<view class="pest-item" @click="openPestsInfo(item)">
|
|
|
- <image class="pic" mode="aspectFill" :src="item.img_urls"></image>
|
|
|
|
|
|
|
+ <image class="pic" mode="aspectFill" :src="item.img_urls?item.img_urls:'http://106.119.196.18:10004/static/img/noimage.689b20a.png'"></image>
|
|
|
<view class="row-center p-10">
|
|
<view class="row-center p-10">
|
|
|
<text class="text">{{item.name}}</text>
|
|
<text class="text">{{item.name}}</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -52,7 +52,7 @@
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
async onLoad() {
|
|
async onLoad() {
|
|
|
- await this.$onLaunched
|
|
|
|
|
|
|
+ await this.$onLaunched;
|
|
|
this.getPestList();
|
|
this.getPestList();
|
|
|
},
|
|
},
|
|
|
// 触底请求
|
|
// 触底请求
|
|
@@ -77,7 +77,6 @@
|
|
|
},
|
|
},
|
|
|
// 获取虫害or病害 列表
|
|
// 获取虫害or病害 列表
|
|
|
async getPestList() {
|
|
async getPestList() {
|
|
|
-
|
|
|
|
|
const {
|
|
const {
|
|
|
disease_nums,
|
|
disease_nums,
|
|
|
pest_nums,
|
|
pest_nums,
|