莲花进村定制版

This commit is contained in:
liuye
2024-06-04 15:30:19 +08:00
parent e750f68fc0
commit 8f6434c393
4 changed files with 678 additions and 14 deletions

View File

@@ -98,20 +98,20 @@ export default {
onLoad() {
this.autoLogin().then(() => {
this.getHistoryList()
uni.getLocation({
type: 'wgs84', // 返回可以用于uni.openLocation的经纬度默认为wgs84的gps坐标
success : (res) => {
let location = `${res.latitude}, ${res.longitude}`
this.$instance.post(`/admin/area/reverseGeocoding?location=${location}`).then(res => {
if(res && res.code == 0){
this.areaId = res.data.result.addressComponent.adcode + '000000'
}
})
},
fail: (error) => {
console.log('获取位置失败:', error);
}
});
// uni.getLocation({
// type: 'wgs84', // 返回可以用于uni.openLocation的经纬度默认为wgs84的gps坐标
// success : (res) => {
// let location = `${res.latitude}, ${res.longitude}`
// this.$instance.post(`/admin/area/reverseGeocoding?location=${location}`).then(res => {
// if(res && res.code == 0){
// this.areaId = res.data.result.addressComponent.adcode + '000000'
// }
// })
// },
// fail: (error) => {
// console.log('获取位置失败:', error);
// }
// });
})
recorderManager.onStop((res)=> {
this.upLoad(res.tempFilePath)