Bläddra i källkod

事件列表图片

彭宇 2 år sedan
förälder
incheckning
29fa715d2c
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/views/forest.vue

+ 2 - 1
src/views/forest.vue

@@ -195,7 +195,8 @@
                 </div>
                 <div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList" @click="dropLocation(item.latitude,item.longitude)">
                   <div class="bgt-img">
-                    <img src="../assets/images/integrated/event-img-sub.png"/>
+                    <img v-if="item.picturePath!=null&&item.picturePath!=''" :src="item.picturePath" style="width: 93px;height: 64px"/>
+                    <img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px"/>
                   </div>
                   <div class="bgt-info">
                     <div v-if="item.eventStatusValue=='forest_event_status_1'&&item.urgeCount==0" class="event-state-sb">