微信更新7.0,使用wx.chooseLocation 开发,体验版都没有反应
selectlocation: function() {
var that = this
wx.chooseLocation({
success: function(res) {
// success
console.log(res, res.latitude, res.longitude, ‘出发地’)
that.setData({
departure: res.name,
so_lat: res.latitude,
so_lng: res.longitude
})
},
})
},