| | |
| | | status: '0' |
| | | }, |
| | | jobId: '', |
| | | lat: '', |
| | | lnt: '', |
| | | // lat: '', |
| | | // lnt: '', |
| | | lat: '31.783205', |
| | | lnt: '117.262635', |
| | | nowTime: '', |
| | | signDistance: uni.getStorageSync('driverGuide').signDistance, |
| | | showDetail: false, |
| | |
| | | }, |
| | | 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') |
| | | }) |
| | |
| | | this.getDetail() |
| | | }, |
| | | fail:(err) => { |
| | | console.log('err', err); |
| | | this.showToast('获取定位失败') |
| | | } |
| | | }) |
| | | }, |