lll
liukangdong
2024-09-25 b44b5aa1dda1d9196416cbf84e610cfd1f5b1c82
h5/pages/driver/taskDetail.vue
@@ -27,7 +27,7 @@
            <view class="line">
              <view class="label">运输单号</view>
              <view class="value" @click="showDetail = true">
                <text class="waybill_num">{{param.code}}</text>
                <text class="waybill_num">{{param.billCode}}</text>
                <text class="btn">运单详情</text>
              </view>
            </view>
@@ -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('获取定位失败')
            }
      })
    },