From dfb5adf5d4dc7971d9ef7c6528c302dc57f871fc Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 27 十二月 2022 17:48:31 +0800
Subject: [PATCH] 样式修改
---
src/components/map/index.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index a39ac2e..f16b949 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -12,7 +12,7 @@
};
},
created() {
- debugger
+
// if (this.point) {
// this._point = this.point;
// }
@@ -23,11 +23,11 @@
methods: {
locationMap() {
const that = this;
- debugger
- setTimeout(() => {
+
+
// console.log("_zoom---", that.zoom);
// console.log("_point---", JSON.stringify(that.point));
- that.map.setZoomAndCenter(that._zoom, [that.point.x, that.point.y]);
+ that.map.setZoomAndCenter(that.zoom, [that.point.x, that.point.y]);
if (that.mark) {
// 鍒涘缓涓�涓� Marker 瀹炰緥锛�
var marker = new AMap.Marker({
@@ -37,8 +37,14 @@
// 灏嗗垱寤虹殑鐐规爣璁版坊鍔犲埌宸叉湁鐨勫湴鍥惧疄渚嬶細
that.map.add(marker);
+ marker.on('click',function(e){
+ console.log('666')
+ that.$emit('fatherMethod')
+ // that.$parent.fatherMethod();
+
+ })
}
- }, 1000);
+
},
},
mounted() {
--
Gitblit v1.8.0