Browse Source

ws-地图修改

ws 1 năm trước cách đây
mục cha
commit
1a2420ab6a

+ 6 - 4
nnzwminiapp/pages/map/map.js

@@ -1212,7 +1212,9 @@ Page({
       searchInfo: searchInfo
     })
     const _this = this
+    let matterEventInfo = _this.data.matterEventInfo
     if (searchInfo.navType == 0) {
+      matterEventInfo.isShow = false
       let params = {
         "title": _this.data.searchVal,
       };
@@ -1230,14 +1232,14 @@ Page({
         })
       });
     } else {
-      let matterEventInfo = _this.data.matterEventInfo
       matterEventInfo.search = true
-      _this.setData({
-        matterEventInfo: matterEventInfo
-      })
+      
       searchHandMatterByValFun(_this)
       // searchHandMatter(_this)
     }
+    _this.setData({
+      matterEventInfo: matterEventInfo
+    })
   },
   clickMatterEvent(e) {
     const _this = this

+ 19 - 4
nnzwminiapp/pages/map2/map.js

@@ -548,6 +548,19 @@ Page({
           wx.request({
             url: imgUrl + 'tdcr/details/data.json',
             success: (res) => {
+              // 解析中心点
+              BMap.reverseGeocoder({
+                location: {
+                  longitude: res.data[that.data.dataIndex].longitude,
+                  latitude: res.data[that.data.dataIndex].latitude,
+                },
+                success: res => {
+                  // console.log(res)
+                  that.setData({
+                    trafficEnd: res.result.formatted_addresses?.recommend
+                  })
+                }
+              })
               let polygons = []
               res.data[that.data.dataIndex].polygon.forEach(item => {
                 polygons.push({
@@ -1231,7 +1244,9 @@ Page({
       searchInfo: searchInfo
     })
     const _this = this
+    let matterEventInfo = _this.data.matterEventInfo
     if (searchInfo.navType == 0) {
+      matterEventInfo.isShow = false
       let params = {
         "title": _this.data.searchVal,
       };
@@ -1249,14 +1264,14 @@ Page({
         })
       });
     } else {
-      let matterEventInfo = _this.data.matterEventInfo
       matterEventInfo.search = true
-      _this.setData({
-        matterEventInfo: matterEventInfo
-      })
+      
       searchHandMatterByValFun(_this)
       // searchHandMatter(_this)
     }
+    _this.setData({
+      matterEventInfo: matterEventInfo
+    })
   },
   clickMatterEvent(e) {
     const _this = this

+ 3 - 3
nnzwminiapp/pages/myCenter/myCenter.js

@@ -317,7 +317,7 @@ Page({
     },
     tosbfw(){
         wx.navigateToMiniProgram({
-            appId: 'wxfc86707bae655315',
+            appId: 'wx6163d215ef686f78',
             success(res) {
                 // 打开成功
             }
@@ -333,7 +333,7 @@ Page({
     },
     todzzz(){
         wx.navigateToMiniProgram({
-            appId: 'wxfc86707bae655315',
+            appId: 'wx635c548ecb74c1af',
             success(res) {
                 // 打开成功
             }
@@ -341,7 +341,7 @@ Page({
     },
     toswfw(){
         wx.navigateToMiniProgram({
-            appId: 'wxfc86707bae655315',
+            appId: 'wx2eec5fb00157a603',
             success(res) {
                 // 打开成功
             }