ll
liukangdong
2024-12-19 63f68bf25b920d5711032a6e675769855ed3582b
h5/pages/driver/index.vue
@@ -45,7 +45,8 @@
                     <view class="sub">
                        <view class="time" v-if="item.arriveDate && item.contractNum">{{ item.arriveDate.slice(5) }}</view>
                        <view class="time" v-if="item.type != 4 && item.platformWmsJob && item.platformWmsJob.ioCreatedate">
                           {{ item.platformWmsJob.ioCreatedate.slice(5, 19) }}</view>
                           {{ item.platformWmsJob.ioCreatedate.slice(5, 19) }}
                        </view>
                        <view v-if="item.status == 0" class="sub_btn">确认任务</view>
                        <view v-if="item.status == 1" class="sub_btn">立即签到</view>
                        <view v-if="item.status == 2" class="sub_btn" @click.stop="handleQueue(item)">查看排队</view>
@@ -110,27 +111,28 @@
      return {
         taskList: [],
         driverInfo: uni.getStorageSync('driverInfo'),
      }
   },
   onLoad() {
      const ywinfo = uni.getStorageSync('ywinfo') || {}
      if(ywinfo.ywid && ywinfo.type == 0){
         setTimeout(() => {
            uni.removeStorageSync('ywinfo')
         }, 500)
            uni.setStorageSync('ywinfo',{})
         const yw = ywinfo.yw
            setTimeout(() => {
         if(yw == 7){
            this.jump('/pages/driver/reservedDetail?id=' + ywinfo.ywid)
         }else if(yw == 8){
            this.jump('/pages/driver/taskDetail?id=' + ywinfo.ywid)
         }else if(yw == 0) {
            getLastWaitJob({ uuid: ywinfo.ywid }).then(res => {
                  getLastWaitJob({
                     uuid: ywinfo.ywid
                  }).then(res => {
               if(res.data && res.data.id){
                  this.taskClick(res.data)
               }
            })
         }
            }, 100)
      }
   },
   onShow() {
@@ -154,7 +156,9 @@
         })
      },
      loginOut() {
         logoutPost({isH5: 1}).then(res => {
            logoutPost({
               isH5: 1
            }).then(res => {
            this.$store.commit('empty')
            setTimeout(() => {
               window.location.href = app_url