张延森 5 年前
父节点
当前提交
acb97192e3
共有 2 个文件被更改,包括 19 次插入22 次删除
  1. 14
    15
      src/components/amap/PoiAround.js
  2. 5
    7
      src/pages/project/detail/Around/around.js

+ 14
- 15
src/components/amap/PoiAround.js 查看文件

@@ -60,21 +60,20 @@ export default class PoiAround extends Component {
60 60
 
61 61
     return this.props.longitude &&
62 62
       (
63
-        <View onClick={this.props.mapClick}>
64
-          <Map
65
-            id="poi-around"
66
-            showLocation
67
-            show-location={true}
68
-            scale={12}
69
-            markers={markers}
70
-            longitude={this.props.longitude}
71
-            latitude={this.props.latitude}
72
-            onMarkerTap={this.handleTap}
73
-            style={this.props.style}
74
-            enable-scroll={this.props.coverShow ? false : true}
75
-            enable-zoom={this.props.coverShow ? false : true}
76
-          />
77
-        </View>
63
+        <Map
64
+          id="poi-around"
65
+          showLocation
66
+          show-location={true}
67
+          scale={12}
68
+          markers={markers}
69
+          longitude={this.props.longitude}
70
+          latitude={this.props.latitude}
71
+          onMarkerTap={this.handleTap}
72
+          onClick={this.props.mapClick}
73
+          style={this.props.style}
74
+          enable-scroll={this.props.coverShow ? false : true}
75
+          enable-zoom={this.props.coverShow ? false : true}
76
+        />
78 77
       )
79 78
   }
80 79
 }

+ 5
- 7
src/pages/project/detail/Around/around.js 查看文件

@@ -62,13 +62,11 @@ export default function Around(props) {
62 62
             props.onAction()
63 63
         }
64 64
     }
65
-    const tomapDetail = (e) => {
66
-        console.log("dddddddddddddddddddddd")
67
-     
68
-        // const { buildingId } = this.props
69
-        // Taro.navigateTo({
70
-        //     url: `/pages/project/detail/map?id=` + buildingId
71
-        // })
65
+    const tomapDetail = (e) => {     
66
+        const { buildingId } = this.props
67
+        Taro.navigateTo({
68
+            url: `/pages/project/detail/map?id=` + buildingId
69
+        })
72 70
     }
73 71
     return (
74 72
         <View className="around-box">