ws před 1 rokem
rodič
revize
75c8ac9b03

+ 4 - 0
nnzwminiapp/pagesPublic/pages/tdcr/details/detail.js

@@ -19,6 +19,10 @@ Page({
       label: '其他地块',
     }],
     tabActive: 1,
+    map: {
+      longitude: 106.644341,
+      latitude: 29.501202
+    }
   },
 
   /**

+ 1 - 1
nnzwminiapp/pagesPublic/pages/tdcr/details/detail.wxml

@@ -2,7 +2,7 @@
 <view class="main" style="background-image: url({{imgPath}}/index/bg.png);">
   <view class="header" style="height: {{headerStyle.height}}px;line-height: {{headerStyle.height}}px;margin-top: {{headerStyle.top}}px;">{{title}}</view>
   <view class="map-content" style="background-image: url({{imgPath}}/details/map-border.png);">
-    <map class="map" enable-satellite="true"></map>
+    <map class="map" enable-satellite="true" longitude="{{map.longitude}}" latitude="{{map.latitude}}"></map>
   </view>
   <view class="tab">
     <view class="tab-item" wx:for="{{tabs}}" style="{{tabActive == index ? 'background-image: url(' + imgPath + '/details/tab-bg.png);' : ''}}" data-index="{{index}}" bindtap="tabEvent">{{item.label}}</view>