@@ -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
+ })
+ }
@@ -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 class="info-call" bindtap="phone" >