//定位
gps() {
// console.log('获取当前位置')
uni.showLoading({
title: '获取位置中',
mask: true
})
let __this = this;
uni.getLocation({
type: 'gcj02',
isHighAccuracy: true, // 是否高精度获取
highAccuracyExpireTime: 3000,
timeout: '3',
cacheTimeout: 3,
accuracy: 'best',
success: function(res) {
console.log(res, '会计法艰苦撒旦发')
},
fail(erro) {
console.log(erro, '111会计法艰苦撒旦发')
},
});
},
1 个回复
z***@163.com
看了这个的帖子https://ask.dcloud.net.cn/question/173880,加上这个geolocation-amap-release.aar包就好了