今天开发企业小程序

1.记录

2.问题

3.结果

 

 

1.地图api

wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success: function (res) {
var latitude = res.latitude
var longitude = res.longitude
wx.openLocation({
latitude: latitude,
longitude: longitude,
name: "店名",
address : '地址'
})
}
})
posted @ 2017-11-17 11:03  Y-HJ  阅读(94)  评论(0编辑  收藏  举报