230320a303 1 year ago
parent
commit
4a2b9d0c36

+ 9 - 0
project.private.config.json

@@ -23,6 +23,15 @@
                     "scene": "990001",
                     "launchFrom": "scan",
                     "location": "qr_code"
+                },
+                {
+                    "id": 1685088655739,
+                    "name": "pages",
+                    "pathName": "pagesPlan/queryBuyHouse",
+                    "query": "id=295",
+                    "scene": "011001",
+                    "launchFrom": "search_used_list",
+                    "location": ""
                 }
             ]
         }

+ 38 - 42
src/app.jsx

@@ -44,7 +44,6 @@ class App extends Component {
           'indexDtl',
           'indexDtlMore',
           'indexDtlAround',
-          // 'indexDtlMap',
           'produceType',
           'vr',
           'photo',
@@ -65,30 +64,29 @@ class App extends Component {
         root: 'pagesMore',
         pages: [
           'news/index',
-          'news/list',
-          'news/indexDtl',
+          // 'news/list',
+          // 'news/indexDtl',
           'news/tpDtl',
-          'news/plan',
-          'news/planDtl',
-          'center/index',
-          'center/group',
-          'center/feedback',
+          // 'news/plan',
+          // 'news/planDtl',
+          // 'center/index',
+          // 'center/group',
+          // 'center/feedback',
           'center/loanCalc',
           'center/webViews',
-          'center/coupon',
-          'center/sxf',
-          'center/saleEdit',
-          'center/userEdit',
-          'center/uploadRoom',
-          'center/uploadRoom2',
-          'center/uploadRoomHl',
-          'comment/add',
-          'comment/list',
-          'comment/dtl',
-          'qa/list',
-          'qa/add',
-          // 'qa/dtl',
-          'test/index',
+          // 'center/coupon',
+          // 'center/sxf',
+          // 'center/saleEdit',
+          // 'center/userEdit',
+          // 'center/uploadRoom',
+          // 'center/uploadRoom2',
+          // 'center/uploadRoomHl',
+          // 'comment/add',
+          // 'comment/list',
+          // 'comment/dtl',
+          // 'qa/list',
+          // 'qa/add',
+          // 'test/index',
         ]
       },
       {
@@ -96,9 +94,9 @@ class App extends Component {
         pages: [
           'apply',
           'apply2',
-          'yanfang',
-          'discountGroup',
-          'queryBuyHouse',
+          // 'yanfang',
+          // 'discountGroup',
+          // 'queryBuyHouse',
         ]
       },
       {
@@ -115,14 +113,13 @@ class App extends Component {
       {
         root: 'pagesQa',
         pages: [
-          'index',
-          'add',
-          'dtl',
-          'dtlSub',
-          'msg/index',
-          'msg/chat',
-          'msg/message',
-          // 'todayNews',
+          // 'index',
+          // 'add',
+          // 'dtl',
+          // 'dtlSub',
+          // 'msg/index',
+          // 'msg/chat',
+          // 'msg/message',
           'area',
           'areaImg',
           'areaSub',
@@ -143,15 +140,14 @@ class App extends Component {
           'roomPrice',
           'roomPriceImg',
           'roomPriceList',
-          // 'card/index',
-          'follow/list',
-          'follow/user',
-          'follow/add',
-          'follow/history',
-          'follow/lineup',
-          'follow/lineup2',
-          'follow/lineupRecord',
-          'follow/lineupRecord2',
+          // 'follow/list',
+          // 'follow/user',
+          // 'follow/add',
+          // 'follow/history',
+          // 'follow/lineup',
+          // 'follow/lineup2',
+          // 'follow/lineupRecord',
+          // 'follow/lineupRecord2',
         ]
       },
       {

+ 4 - 4
src/pagesOther/map/aftermetro.jsx

@@ -301,7 +301,7 @@ class Index extends Component {
 
   render () {
     let { estateArr } = this.state
-    const { mapDiyObj, curScale, polylines,   } = this.state
+    const { mapDiyObj, curScale, polylines, prevCenterLocation  } = this.state
     let { polygonsTextArr } = this.state
     const { isEnablesatellite } = this.state
     if (curScale < 16 && curScale > 11) {
@@ -323,10 +323,10 @@ class Index extends Component {
       <View className="l-box">
         <Map
           enable-satellite={isEnablesatellite}
-          longitude={mapDiyObj.center[0]}
-          latitude={mapDiyObj.center[1]} 
+          longitude={prevCenterLocation.longitude}
+          latitude={prevCenterLocation.latitude} 
           enable-poi={false}
-          scale={mapDiyObj.cScale}
+          scale={curScale}
           markers={markers}
           polyline={polylines}
           min-scale="11"

+ 11 - 7
src/pagesOther/map/dtl.jsx

@@ -42,7 +42,10 @@ class Index extends Component {
       isFooterTipsShow: false,
       isEnablesatellite: false,
       timer: null,
-      prevCenterLocation: {},
+      prevCenterLocation: {
+        longitude: 115.852386,
+        latitude: 28.684076,
+      },
     }
   }
 
@@ -479,7 +482,7 @@ class Index extends Component {
 
   render () {
     let { areaArr, estateArr, schoolArr } = this.state
-    const { mapDiyObj, curScale, polygons, polygonsTextArr } = this.state
+    const { prevCenterLocation, curScale, polygons, polygonsTextArr } = this.state
     if (curScale < 17 && curScale > 13) {
       if (curScale > 14.5) {
         estateArr.map(item => {
@@ -497,15 +500,16 @@ class Index extends Component {
       <View className="l-box">
         {this.renderHeader()}
         <Map
+          optimize={true}
           enable-satellite={isEnablesatellite}
-          longitude={mapDiyObj.center[0]}
-          latitude={mapDiyObj.center[1]} 
+          longitude={prevCenterLocation.longitude}
+          latitude={prevCenterLocation.latitude} 
           enable-poi={false}
-          scale={mapDiyObj.cScale}
+          scale={curScale}
           markers={markers}
           polygons={polygons}
-          min-scale="11"
-          max-scale="20"
+          min-scale={11}
+          max-scale={19}
           subkey="Y7PBZ-FPZRP-4DXDL-VXQ3B-7DFL7-UXBK4"
           onCalloutTap={this.calloutTap.bind(this)}
           onRegionChange={this.regionChange.bind(this)} 

+ 4 - 4
src/pagesOther/map/dtl2.jsx

@@ -262,7 +262,7 @@ class Index extends Component {
 
   render () {
     let { estateArr } = this.state
-    const { mapDiyObj, curScale, polygonsTextArr  } = this.state
+    const { prevCenterLocation, curScale, polygonsTextArr  } = this.state
     const { isEnablesatellite } = this.state
     const markers = curScale > 14 ? JSON.parse(JSON.stringify([...estateArr, ...polygonsTextArr])) : JSON.parse(JSON.stringify([...polygonsTextArr]))
     // const markers = JSON.parse(JSON.stringify([...estateArr, ...polygonsTextArr]))
@@ -271,10 +271,10 @@ class Index extends Component {
       <View className="l-box">
         <Map
           enable-satellite={isEnablesatellite}
-          longitude={mapDiyObj.center[0]}
-          latitude={mapDiyObj.center[1]} 
+          longitude={prevCenterLocation.longitude}
+          latitude={prevCenterLocation.latitude} 
           enable-poi={false}
-          scale={mapDiyObj.cScale}
+          scale={curScale}
           markers={markers}
           min-scale="11"
           max-scale="19"

+ 4 - 4
src/pagesOther/map/plan.jsx

@@ -371,7 +371,7 @@ class Index extends Component {
 
 
   render () {
-    const { mapDiyObj, curScale, polygons, polygonsTextArr } = this.state
+    const { prevCenterLocation, curScale, polygons, polygonsTextArr } = this.state
     const { isEnablesatellite } = this.state
     const markers = curScale > 14 ? JSON.parse(JSON.stringify([...polygonsTextArr])) : []
     return (
@@ -379,10 +379,10 @@ class Index extends Component {
         {this.renderHeader()}
         <Map
           enable-satellite={isEnablesatellite}
-          longitude={mapDiyObj.center[0]}
-          latitude={mapDiyObj.center[1]} 
+          longitude={prevCenterLocation.longitude}
+          latitude={prevCenterLocation.latitude} 
           enable-poi={false}
-          scale={mapDiyObj.cScale}
+          scale={curScale}
           markers={markers}
           polygons={polygons}
           min-scale="13"