李程龙 hace 3 años
padre
commit
ec7806b2ed
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pages/pest/details.vue

+ 1 - 1
pages/pest/details.vue

@@ -2,7 +2,7 @@
 	<!-- 病虫害百科详情 -->
 	<view class="page-panel pest-panel">
 		<!-- 图片 -->
-		<image :src="pestInfo.img_urls" class="pest-cover" mode="widthFix"></image>
+		<image :src="pestInfo.img_urls?pestInfo.img_urls:'http://106.119.196.18:10004/static/img/noimage.689b20a.png'" class="pest-cover" mode="widthFix"></image>
 		<!-- 百科标题 -->
 		<view class="pest-title">{{pestInfo.name}}</view>
 		<view class="pest-paragraph">{{pestInfo.prevention}}</view>