wxml
<view class="bodyer-position">
<view>{{expert.position}}</view>
<image class="adress" bindtap='map' src="../../images/adress.svg"></image>
</view>
js
map:function(){
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success: function (res) {
var latitude = res.latitude
var longitude = res.longitude
wx.openLocation({
latitude: latitude,
longitude: longitude,
scale: 28
})
}
})
},