|
|
@@ -140,11 +140,10 @@
|
|
|
<!-- 地图中心坐标 -->
|
|
|
<bm-marker
|
|
|
:position="{ lng: currentCenter.lng, lat: currentCenter.lat }"
|
|
|
- :dragging="true"
|
|
|
- animation="BMAP_ANIMATION_BOUNCE"
|
|
|
:icon="{
|
|
|
- url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
|
|
|
- size: { width: 14, height: 23 },
|
|
|
+ // url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
|
|
|
+ url: require('@/assets/mapLocation.png'),
|
|
|
+ size: { width: 42, height: 80 },
|
|
|
}">
|
|
|
</bm-marker>
|
|
|
<bm-marker
|
|
|
@@ -178,7 +177,7 @@
|
|
|
class="mapimg"
|
|
|
style="bottom: 286px" />
|
|
|
<!-- 获取当前中心位置数据 -->
|
|
|
- <img src="./../../assets/sbpm.png" @click="getLocationData" class="mapimg" />
|
|
|
+ <img src="./../../assets/searchLocation.png" @click="getLocationData" class="mapimg" />
|
|
|
<div v-if="show" class="mapStoreList">
|
|
|
<van-icon
|
|
|
name="close"
|
|
|
@@ -997,8 +996,13 @@ export default {
|
|
|
this.getposition();
|
|
|
},
|
|
|
getLocationData() {
|
|
|
+ // let currentCenter = this.CJ02BD(34.62200241805427, 112.45384320079718);
|
|
|
+ // this.lon = currentCenter.lon;
|
|
|
+ // this.lat = currentCenter.lat;
|
|
|
+
|
|
|
this.lon = this.currentCenter.lng;
|
|
|
this.lat = this.currentCenter.lat;
|
|
|
+ console.log(this.lon, this.lat);
|
|
|
this.getUserOutPlaList();
|
|
|
},
|
|
|
getStoreTypeList() {
|
|
|
@@ -1146,6 +1150,7 @@ export default {
|
|
|
// this.getMapposition(e, '2', this.$route.query.tabVal);
|
|
|
var input = [e.target.re.lat, e.target.re.lng];
|
|
|
this.currentCenter = new TMap.LatLng(Number(input[0]), Number(input[1]));
|
|
|
+ console.log(e);
|
|
|
console.log(`当前中心点纬度: ${this.currentCenter.lat}, 经度: ${this.currentCenter.lng}`);
|
|
|
},
|
|
|
zoomend(e) {
|