问题模块 | 框架类型 | 问题类型 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
框架 | 小程序 | Bug | 客户端 | 最新 | 2.3.2 |
- 当前 Bug 的表现(可附上截图)
- 预期表现
通过wx.getLocation拿到准确定位
wx.getLocation拿到的位置
113.39350
23.09786
wx.chooseLocation拿到的位置
113.39905
23.09543
- 复现路径
- 提供一个最简复现 Demo
// 获取用户位置
getUserLocation: function () {
var that = this
wx.getLocation({
// type: 'wgs84',
type: 'gcj02',
success(res) {
var latitude = res.latitude
var longitude = res.longitude
that.setData({
latitude: latitude,//纬度 不准
longitude: longitude,//经度 不准
})
}
})
},
网友回复
那个很帅的小白:
不是真是的位置=>这是什么意思?