From ad21a364301751988fb569a1775cf8b42e4e605f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 19 Feb 2022 17:46:52 +0800
Subject: [PATCH] 部分修改
---
leafletMapOur/loginMap/js/vueMain.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/leafletMapOur/loginMap/js/vueMain.js b/leafletMapOur/loginMap/js/vueMain.js
index 68d0db6..61f8ae8 100644
--- a/leafletMapOur/loginMap/js/vueMain.js
+++ b/leafletMapOur/loginMap/js/vueMain.js
@@ -21,8 +21,13 @@
nowPosition: '',
resultFeedbackPopupShow: false,
popupDisplay: "none",
+
+ regionName: ''
},
methods: {
+ getLocalPoliceStation () {
+ window.parent.getRegionName(this.regionName)
+ },
getDataList () {
var that = this
that.beginCome()
@@ -39,6 +44,8 @@
}]
//url解码
this.getdata = this.getQueryVariable('data') || data
+
+ console.log(this.getdata, 456)
this.map = this.beginMap(this.map, this.getdata) //创建并接受map
this.map.invalidateSize(true) //应用地图高度
},
@@ -110,6 +117,11 @@
}
function showPosition (position) {
+
+ that.regionName = position.district || position.city
+
+ console.log(position)
+
var adCode = position.adCode //邮政编码
var nation = position.nation //中国
var city = position.city //城市
--
Gitblit v1.9.3