2***@qq.com
2***@qq.com
  • 发布:2021-05-10 11:35
  • 更新:2021-08-06 16:17
  • 阅读:757

【报Bug】vivo IQOO3 uni.getLocation 定位结果错误

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.1.14

手机系统: Android

手机系统版本号: Android 11

手机厂商: 华为

手机机型: IQOO3

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
uni.getLocation({  
            geocode:true,  
            type: 'gcj02',  
            success: function (res) {  
                console.log(res);  
                that.lng = res.longitude;  
                that.lat = res.latitude;  
                that.address = res.address.city+res.address.district+res.address.street+res.address.poiName;  
                console.log('当前位置的经度:' + res.longitude);  
                console.log('当前位置的纬度:' + res.latitude);  
            },  
            fail(err){  
                console.log('错误:',err);  
                that.lng =0;  
                that.lat =0;  
                that.address = '';  
            }  
        });

操作步骤:

uni.getLocation

预期结果:

定位成功

实际结果:

getLocation:fail [geolocation:6]定位结果错误

bug描述:

定不位 getLocation:fail [geolocation:6]定位结果错误

2021-05-10 11:35 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者) - 1111

其他手机正常

1***@qq.com

1***@qq.com

我也遇到了这个问题,楼主解决了吗,最开始的时候好像没这个问题,不知道怎么的这后面就一直报这个

该问题目前已经被锁定, 无法添加新回复