付延余
2023-03-16 1ab29b3567574a721bd37d5ff9d7e9db386272d6
pages/driver-page/driver-index/driver-index.vue
@@ -3,6 +3,13 @@
      <view class="driver-index-body">
         <!-- 待领取提煤单 -->
         <combined-title title="待领取"></combined-title>
         <u-empty
            mode="data"
            icon="http://cdn.uviewui.com/uview/empty/data.png"
            textSize="30"
            iconSize="1000"
            v-if="driverBillOfLoadingData.list1 ? (driverBillOfLoadingData.list1.length == 0 ? true : false) : true"
         ></u-empty>
         <card v-for="(item, index) in driverBillOfLoadingData.list1" :key="index" :name="item.id" backgroundType="2">
            <template v-slot:left>
               <view class="card-left__top">
@@ -34,6 +41,23 @@
         <combined-title title="我的提煤单"></combined-title>
         <!-- 卡片 -->
         <!-- <view v-for="(item, index) in driverBillOfLoadingData.list2" :key="index"> -->
         <u-empty
            mode="data"
            icon="http://cdn.uviewui.com/uview/empty/data.png"
            textSize="30"
            iconSize="1000"
            v-if="
               driverBillOfLoadingData.list2
                  ? driverBillOfLoadingData.list2.length == 0
                     ? true
                     : false
                  : true && driverBillOfLoadingData.list3
                  ? driverBillOfLoadingData.list3.length == 0
                     ? true
                     : false
                  : true
            "
         ></u-empty>
         <view>
            <!-- 待预约提煤单 -->
            <view class="daiYuYue" v-for="(item, index) in driverBillOfLoadingData.list3" :key="index">
@@ -45,7 +69,7 @@
                  <view>{{ item.coalName }}</view>
                  <view>已预约:{{ item.cars }} 车</view>
               </view>
               <view><u-button text="预约" type="primary" @click="toAppointmentClick(item.id)"></u-button></view>
               <view><u-button text="预约" type="primary" @click="toAppointmentClick(item)"></u-button></view>
            </view>
            <!-- 已预约提煤单 -->
            <view @click="list3CardIconClick(item)" class="haveYuYue" v-for="(item, index) in driverBillOfLoadingData.list2" :key="index">
@@ -68,6 +92,7 @@
<script>
import { customerId } from '@/utils/status';
export default {
   data() {
      return {
@@ -116,9 +141,9 @@
         });
      },
      // 去预约
      toAppointmentClick(id) {
      toAppointmentClick(value) {
         uni.navigateTo({
            url: `/pages/driver-page/appointment/appointment?takeCoalId=${id}`
            url: `/pages/driver-page/appointment/appointment?takeCoalId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}`
         });
      }
   }