ll
liukangdong
2024-09-24 57c140de40d75af475f5a1accc693172ffaaaf0d
h5/pages/driver/taskDetail.vue
@@ -188,8 +188,10 @@
        status: '0'
      },
         jobId: '',
         lat: '',
         lnt: '',
         // lat: '',
         // lnt: '',
         lat: '31.783205',
         lnt: '117.262635',
         nowTime: '',
         signDistance: uni.getStorageSync('driverGuide').signDistance,
      showDetail: false,
@@ -197,17 +199,12 @@
  },
   onLoad(option) {
      this.jobId = option.id
      if(option.status && option.status == '1'){
         this.getLocation()
      }else{
         this.getDetail()
      }
      // this.getDetail({
      //    jobId: option.id,
      //    lat: 31.769137,
      //    lnt: 117.232241,
      // })
      // if(option.status && option.status == '1'){
      //    this.getLocation()
      // }else{
      //    this.getDetail()
      // }
      this.getDetail()
      setInterval(() => {
         this.nowTime = dayjs().format('HH:mm:ss')
      })
@@ -243,7 +240,7 @@
               this.getDetail()
        },
            fail:(err) => {
               console.log('err', err);
               this.showToast('获取定位失败')
            }
      })
    },