李程龙 3 anos atrás
pai
commit
a567589c01
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      pages/pest/index.vue

+ 2 - 3
pages/pest/index.vue

@@ -9,7 +9,7 @@
 		<view class="page-panel pest-panel" v-if="pestList.length>0">
 			<block v-for="(item,index) in pestList" :key="index">
 				<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">
 						<text class="text">{{item.name}}</text>
 					</view>
@@ -52,7 +52,7 @@
 			};
 		},
 		async onLoad() {
-			await this.$onLaunched
+			await this.$onLaunched;
 			this.getPestList();
 		},
 		// 触底请求
@@ -77,7 +77,6 @@
 			},
 			// 获取虫害or病害 列表
 			async getPestList() {
-
 				const {
 					disease_nums,
 					pest_nums,