uni.chooseLocation({
longitude:_this.srcLongitude,
latitude:_this.srcLatitude,
success(res) {
_this.srcAddress = res.name
_this.srcLongitude = res.longitude
_this.srcLatitude = res.latitude
_this.tip3 = false;
}
})

- 发布:2024-09-12 23:35
- 更新:2024-09-13 05:59
- 阅读:215
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window10
HBuilderX类型: 正式
HBuilderX版本号: 4.23
手机系统: Android
手机系统版本号: Android 14
手机厂商: 华为
手机机型: mate20
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
传入经纬度,获取附近地址列表
传入经纬度,获取附近地址列表
预期结果:
获取附近地址列表
获取附近地址列表
实际结果:
无法查询出列表
无法查询出列表
bug描述:
uni.chooseLocation({
longitude:_this.srcLongitude,
latitude:_this.srcLatitude,
success(res) {
_this.srcAddress = res.name
_this.srcLongitude = res.longitude
_this.srcLatitude = res.latitude
_this.tip3 = false;
}
})
这个方法出了几次问题了,有一次是官方好像升级api了,不传入经纬度无法查询出列表。运行了一段时间,传入的经纬度也出不来金纬度了,运行的好好的就无法获取地址列表,客户无法选择位置了。
