微信更新7.0,使用wx.chooseLocation 开发,体验版都没有反应
发布于 6 年前 作者 chenping 6996 次浏览 来自 问答

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

})

},

})

},

回到顶部