莲花进村定制版
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user