qingyiay
2023-10-30 0978691dc9047c7090dca64406f5d0ac027e8df4
pages/driver-page/appointment/appointment.vue
@@ -1,5 +1,9 @@
<template>
   <view class="appointment">
      <view class="appointment-description"
         v-if="isRCSQ">
         *您当前的预约时间段<text>{{yuYueSection}}</text>
      </view>
      <combined-title
         :title="yuYueData.length != 0 ? yuYueData[0].filedName + '——' + yuYueData[0].sendDate : '暂无预约列表'"></combined-title>
      <view class="appointment-table">
@@ -55,13 +59,15 @@
               deptId: '',
               filedId: '',
               remark: ''
            }
            },
            yuYueSection: ''
         };
      },
      onLoad(params) {
         if (params.type == '入场申请') {
            this.isRCSQ = true;
            this.rcsqData.originalYyId = params.yyId;
            this.yuYueSection = params.yuYueSection
         }
         this.yuYuePostParams.takeCoalId = params.takeCoalId;
         this.yuYueListParams.filedId = params.filedId;
@@ -109,10 +115,10 @@
                  this.yuYueList();
                  this.$u.toast('预约成功');
                  let timer = setTimeout(() => {
                     uni.navigateBack({
                        delta: 1
                     });
                  }, 500);
                     uni.switchTab({
                        url: '/pages/tabbar-page/index-tabbar/index-tabbar'
                     })
                  }, 1500);
               } else {
                  this.$u.toast(res.msg ? res.msg : '预约失败');
               }
@@ -130,7 +136,7 @@
                     uni.switchTab({
                        url: '/pages/tabbar-page/index-tabbar/index-tabbar'
                     })
                  }, 500);
                  }, 1500);
               } else {
                  this.$u.toast(res.msg ? res.msg : '入场申请失败,请稍后重试');
               }
@@ -146,6 +152,19 @@
      width: 94%;
      margin: 0 auto;
      // 预约界面描述
      .appointment-description {
         margin: vww(8) 0;
         color: #fd1446;
         text {
            font-weight: bold;
            display: inline-block;
            margin-left: vww(5);
            color: #252525;
         }
      }
      h1 {
         font-size: vww(20);
         text-align: center;