From 68d73b824bc87ef2fd0328a7078178993411fd7c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 21 Feb 2022 11:14:19 +0800
Subject: [PATCH] 个人新闻发布

---
 public/loginMap/js/vueMain.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/public/loginMap/js/vueMain.js b/public/loginMap/js/vueMain.js
index 68d0db6..61f8ae8 100644
--- a/public/loginMap/js/vueMain.js
+++ b/public/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