uni.chooseLocation({
success: (res) => {
if (res.errMsg === 'chooseLocation:ok') {
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
}
}
});

- 发布:2025-05-08 14:25
- 更新:2025-05-08 14:39
- 阅读:49
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 14.7.4 (23H420)
HBuilderX类型: 正式
HBuilderX版本号: 4.57
手机系统: iOS
手机系统版本号: iOS 16
手机厂商: 苹果
手机机型: ios
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
可以正常选择地点
可以正常选择地点
实际结果:
搜索不了,也显示不了地址
搜索不了,也显示不了地址
bug描述:
[JS Framework] Failed to execute the callback function:
14:17:29.286 TypeError: undefined is not an object (evaluating 'e.data.detail.points') __ERROR
ios手机一直报错,并且地址一直搜索不到
选择不了地图
配置项一直正确
