yangan
2023-11-21 0937a09b807ae3d615e2e13d7b254a952b9f99ce
pages/driver-page/driver-index/driver-index.vue
@@ -73,6 +73,15 @@
                        <view class="coal-name">{{ item.coalName }}</view>
                     </view>
                  </view>
                  <!-- 创建时间 -->
                  <view class="created-box">
                        <view class="clock-create">
                           <view class="time-icon"><u-icon name="clock"
                                 color="#515151"
                                 size="40"></u-icon></view>
                                 <text class="create-date"> {{ item.createTime }}</text>
                        </view>
                     </view>
                  <view class="fourth-line"
                     @click.stop="qiangDanBtn(item)"
                     v-if="item.carNum - item.taskNum !== 0">
@@ -104,7 +113,7 @@
                  <view class="appointment-form-item"
                     v-for="(item, index) in driverBillOfLoadingData.list3"
                     :key="index"
                     @click="list3CardIconClick(item)"
                     @click.stop="list3CardIconClick(item)"
                     >
                     
                     <view class="main-divider"></view>
@@ -165,8 +174,17 @@
                           <!-- <view class="order-type">{{ item.orderType }}</view> -->
                        </view>
                     </view>
                     <!-- 创建时间 -->
                     <view class="created-box">
                        <view class="clock-create">
                           <view class="time-icon"><u-icon name="clock"
                                 color="#515151"
                                 size="40"></u-icon></view>
                                 <text class="create-date"> {{ item.createTime }}</text>
                        </view>
                     </view>
                     <view class="fourth-line"
                        @click="toAppointmentClick(item)">
                        @click.stop="toAppointmentClick(item)">
                        <view class="button-img">立即预约</view>
                     </view>
                  </view>
@@ -231,6 +249,15 @@
                                 size="40"></u-icon></view>
                        </view>
                     </view>
                     <!-- 创建时间 -->
                     <view class="created-box">
                        <view class="clock-create">
                           <view class="time-icon"><u-icon name="clock"
                                 color="#515151"
                                 size="40"></u-icon></view>
                                 <text class="create-date"> {{ item.createTime }}</text>
                        </view>
                     </view>
                     <view class="status">
                        <u-tag :text="coalStatus[item.statusWeigh] || ''"
                           plain>
@@ -247,6 +274,8 @@
                           <view class="coal-name">{{ item.coalName || '' }}</view>
                           <!-- <view class="order-type">{{ item.orderType }}</view> -->
                        </view>
                     </view>
                     <view class="fourth-line" style="opacity: 0;">
                     </view>
                  </view>
               </view>
@@ -269,7 +298,8 @@
   import { onlineurl } from '@/api/request.js'
   import { BaseUrl } from '@/api/publicInterface.js'
   import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
   import { mapState } from 'vuex'
   import { mapState } from 'vuex';
   import { Debounce } from '../../../utils/util';
   export default {
      components: {
         combinedTitle,
@@ -311,14 +341,16 @@
            fleetId: '',
            xsUserId: '',
            customerId: '',
            coalStatus: ['未称重', '称重中', '验质中', '称重完成', '验质完成'],
            coalStatus: ['未称重', '称重中', '验质中', '称重完成', '处理完成'],
            onlineurl,
            phone: "",
            isFirstLogin: true //是否是第一次登录
         };
      },
      onLoad() {
         this.TourImgList = TourImgList
      mounted() {
         // this.TourImgList = TourImgList
         this.getLogOn()
      },
      onShow() {
         this.init();
@@ -334,7 +366,6 @@
         },
         init() {
            this.qiangDanList();
            this.getLogOn()
         },
         // 司机首页列表
         qiangDanList() {
@@ -347,7 +378,7 @@
            });
         },
         // 抢单按钮
         qiangDanBtn(value) {
         qiangDanBtn:Debounce(function(value){
            if (value.tmcCount == '0') {
               this.qiangDan(value.orderPlanId, value.fleetId, value.customerId === null ? '0' : value.customerId,
                  value.xsUserId === null ? '0' : value.xsUserId);
@@ -359,7 +390,9 @@
               this.qiangDanShow = true;
               this.qiangDanContent = `已抢${value.tmcCount}单,确定抢单?`;
            }
         },
         } ,500)
         ,
         // 抢单模态框
         qiangDanConfirm() {
            this.qiangDanContent = '';
@@ -435,6 +468,24 @@
<style lang="scss"
   scoped>
    .created-box{
      display: flex;
      position: absolute;
      bottom: 20rpx;
          left: 35rpx;
      .clock-create{
         display: flex;
      }
      .create-date{
         height: 24rpx;
         line-height: 37rpx;
         font-size: 28rpx;
         font-weight: 300;
         color: #515151;
         margin-left: 28rpx;
      }
   }
   @mixin formItem {
      width: vww(345);
      height: vww(150);
@@ -463,6 +514,16 @@
      display: flex;
      justify-content: space-between;
      align-items: center;
      .clock-create{
          width: 100%;
         height: 42rpx;
         margin-right: 100rpx;
         line-height: 42rpx;
         display: flex;
         justify-content: space-between;
         align-items: center;
         justify-content: flex-start;
      }
      .send-date {
         width: 148rpx;
@@ -472,6 +533,13 @@
         font-weight: 300;
         color: #515151;
      }
      .create-date {
         line-height: 24rpx;
         font-size: 28rpx;
         font-weight: 300;
         margin-left: 28rpx;
         color: #515151;
      }
      .havedclock {
         width: 58% !important;