瀏覽代碼

change bug page

邹能昇 4 月之前
父節點
當前提交
6081794fda

+ 9 - 0
nova-tourism/pages/homestay/homestay-detail/index.js

@@ -434,4 +434,13 @@ Page({
             phoneNumber: phone
         })
     },
+    callMap(){
+        const latitude = this.data.storeList[0].location.latitude
+        const longitude = this.data.storeList[0].location.longitude
+        wx.openLocation({
+          latitude,
+          longitude,
+          scale: 18
+        })
+    }
 })

+ 1 - 1
nova-tourism/pages/homestay/homestay-detail/index.wxml

@@ -22,7 +22,7 @@
             </view>
             <view class="info-intr">{{storeList[0].desc}}</view>
             <view class="info-map">
-                <view class="map">
+                <view class="map" bindtap="callMap">
                     <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="20" markers="{{markers}}"></map>
                 </view>
                 <view class="info-call" bindtap="phone" >