Browse Source

Merge branch 'feature_20250827_地图添加搜索当前范围功能' into uat(dev)

# Conflicts:
#	src/views/deviceOutside/rangeStore.vue
zhujindu 3 months ago
parent
commit
c43d20c716
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/deviceOutside/rangeStore.vue

+ 4 - 0
src/views/deviceOutside/rangeStore.vue

@@ -139,6 +139,7 @@
         </bml-marker-clusterer>
         <!-- 地图中心坐标 -->
         <bm-marker
+          v-if="touchmoveTrue"
           :position="{ lng: currentCenter.lng, lat: currentCenter.lat }"
           :icon="{
             // url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
@@ -875,6 +876,7 @@ export default {
       }, //地图中心位置
       isCompetingStores: true,
       postType: '',
+      touchmoveTrue: false, //移动后在线式中心图标
     };
   },
   created() {
@@ -890,6 +892,7 @@ export default {
   },
   activated() {
     this.postType = localStorage.getItem('postType');
+    this.touchmoveTrue = false;
     this.listData = [];
     this.baiduMapKey = new Date().getTime();
     this.closeFn();
@@ -1145,6 +1148,7 @@ export default {
       this.geocoder = new TMap.service.Geocoder();
     },
     dragend(e) {
+      this.touchmoveTrue = true;
       // const currentCenter = this.mapk.getCenter();
       // console.log(`当前中心点纬度: ${currentCenter.lat}, 经度: ${currentCenter.lng}`);
       // this.getMapposition(e, '2', this.$route.query.tabVal);