xujing 5 years ago
parent
commit
36aa1ca28f

+ 3
- 2
src/pages/project/detail/Around/around.js View File

@@ -62,7 +62,7 @@ export default function Around(props) {
62 62
             props.onAction()
63 63
         }
64 64
     }
65
-    const tomapDetail = (e) => {     
65
+    const tomapDetail = (e) => {
66 66
         const { buildingId } = this.props
67 67
         Taro.navigateTo({
68 68
             url: `/pages/project/detail/map?id=` + buildingId
@@ -71,7 +71,8 @@ export default function Around(props) {
71 71
     return (
72 72
         <View className="around-box">
73 73
             <View className="around-header">
74
-                <PoiAround mapClick={tomapDetail} style="width: 100vw; height: 500rpx;" current={curMarker} coverShow={true} markers={markers} longitude={lng} latitude={lat} onMarkerClick={handleMarkerTap} />
74
+                <PoiAround mapClick={tomapDetail} style="width:100%;height:100%" current={curMarker} coverShow={true} longitude={lng} latitude={lat} onMarkerClick={handleMarkerTap} />
75
+                {/* <PoiAround mapClick={tomapDetail} style="width:100%;height:100%"  current={curMarker} coverShow={true} markers={markers} longitude={lng} latitude={lat} onMarkerClick={handleMarkerTap} /> */}
75 76
             </View>
76 77
             <View className="around-body">
77 78
                 <Tab dataset={dataList} className="around-project" onChange={handleTabChange} />

+ 3
- 2
src/pages/project/detail/Around/around.scss View File

@@ -6,8 +6,9 @@
6 6
   background-color: #fff;
7 7
     
8 8
   .around-header {
9
-    width: 100%;
10
-    height: 500px;
9
+    width: 690px;
10
+    margin:  0 auto;
11
+    height: 346px;
11 12
   }
12 13
   .around-body {
13 14
     padding: 0 30px;

+ 0
- 3
src/pages/project/detail/index.js View File

@@ -844,9 +844,6 @@ export default class Index extends Component {
844 844
               更多<Text className="iconfont icon-more"></Text>
845 845
             </View>
846 846
           </View>
847
-          {/* <View className="section-head">
848
-            <Text className="section-head__title">位置及周边配套</Text>
849
-          </View> */}
850 847
         </View>
851 848
         <Around building={building} buildingId={this.state.buildingId} ></Around>
852 849
       </View>