彭宇 2 سال پیش
والد
کامیت
629d227f37
1فایلهای تغییر یافته به همراه11 افزوده شده و 3 حذف شده
  1. 11 3
      src/components/eventLocation.vue

+ 11 - 3
src/components/eventLocation.vue

@@ -308,7 +308,7 @@ export default {
         lng: this.longitude,
         lat: this.latitude,
         icon: 'marker',
-        bindPopupHtml: '位',
+        bindPopupHtml: '搜索点位',
         click: '',
         parameter: '',
         keepBindPopup: false,
@@ -393,12 +393,14 @@ export default {
             that.$refs.eventLocationSupermap.clearM(false)
             that.$refs.eventLocationSupermap.clearM(true)
             that.$refs.eventLocationSupermap.setMarkers(that.markersList)
-          }, 2000)
+              that.$refs.eventLocationSupermap.setMarkers(marker)
+          }, 1000)
         } else {
           setTimeout(() => {
             that.$refs.eventLocationSupermap.clearM(false)
             that.$refs.eventLocationSupermap.clearM(true)
-          }, 2000)
+            that.$refs.eventLocationSupermap.setMarkers(marker)
+          }, 1000)
         }
       })
     },
@@ -487,6 +489,12 @@ export default {
               that.$refs.eventLocationSupermap.setMarkersRadius(that.cameraMarkersList)
               that.$refs.eventLocationSupermap.setMarkers(marker)
             }, 1000)
+          }else{
+            setTimeout(() => {
+              that.$refs.eventLocationSupermap.clearM(true)
+              that.$refs.eventLocationSupermap.clearM(false)
+              that.$refs.eventLocationSupermap.setMarkers(marker)
+            }, 1000)
           }
         })
       } else {