如题
代码如下:
uni.getLocation({
type: 'wgs84',
geocode: true,
success:res => {
this.degree = ${res.latitude},${res.longitude}
this.getLocation()
},
fail: err => {
uni.showToast({
title:'获取地址失败请手动输入',
icon: 'none'
})
setTimeout(() => {
this.show = true
uni.navigateTo({
url: '../../components/common/cityList'
})
},2000)
}
});
手机软件全是新装的,全部权限都打开了 GPS也是开启的
QQ浏览器以及搜狐浏览器还有360浏览器全部是走fail返回函数 不提示获取定位 拿不到经纬度
夸克浏览器 小米自带浏览器都提示获取定位可以拿到经纬度
1***@qq.com
- 发布:2020-06-28 17:02
- 更新:2021-12-30 10:45
- 阅读:970
1 个回复
1***@qq.com
请问你解决了么