From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/staff/vehicle/shiwai.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/h5/pages/staff/vehicle/shiwai.vue b/h5/pages/staff/vehicle/shiwai.vue
index b8742bc..ff51cda 100644
--- a/h5/pages/staff/vehicle/shiwai.vue
+++ b/h5/pages/staff/vehicle/shiwai.vue
@@ -24,7 +24,7 @@
         <view class="value" @click="isShowDate = true">
           <text
             class="mr6"
-            :style="{ color: param.startTime ? '#999999' : '#999999' }"
+            :style="{ color: param.startTime ? '#000000' : '#999999' }"
           >
             <template v-if="param.startTime">
               {{ param.startHours }}鑷硔{ param.endHours }}
@@ -36,8 +36,8 @@
       </view>
     </view>
     <view class="have_info" v-if="info && info.length > 0">
-      <view class="tit">鎮ㄧ敵璇风殑鐢ㄨ溅鏃舵宸叉湁杞﹁締棰勭害</view>
-      <view class="content" v-for="item,i in info" :key="i">
+      <view class="tit">鎮ㄧ敵璇风殑鐢ㄨ溅鏃舵瀛樺湪浠ヤ笅棰勭害淇℃伅锛屾棤娉曢绾�</view>
+      <view class="content" v-for="(item, i) in info" :key="i">
         <view class="card">{{ item.carCode }}</view>
         <view class="line">
           <text>鐢ㄨ溅鏃舵</text>
@@ -61,7 +61,7 @@
         </view>
         <view class="line">
           <text>鐢宠浜�</text>
-          <text>{{ item.memberName }} {{ item.memberMobile}}</text>
+          <text>{{ item.memberName }} {{ item.memberMobile }}</text>
         </view>
       </view>
     </view>
@@ -70,7 +70,7 @@
       <text class="sel" v-if="param.startTime"
         >{{ param.startHours }}鑷硔{ param.endHours }}</text
       >
-      <text class="btn" @click="onSubmit">纭棰勭害</text>
+      <text class="btn" :class="{disable: info && info.length > 0}" @click="onSubmit">纭棰勭害</text>
     </view>
     <!--  -->
     <!-- 閫夋嫨杞﹁締 -->
@@ -125,16 +125,14 @@
     }
   },
   onLoad() {
-    this.minDate = new Date(dayjs().format('YYYY-MM-DD HH:') + '00:00').getTime()
+    this.minDate = new Date(dayjs().format('YYYY-MM-DD HH:mm') + ':00').getTime()
+    console.log('minDate', this.minDate);
     this.initData()
   },
   methods: {
     onSubmit() {
       const { param, info } = this
-			if (info.length > 0) return uni.showToast({
-        title: '璇烽噸鏂伴�夋嫨鏃堕棿娈�',
-        icon: 'none'
-      })
+      if (info.length > 0) return
       if (!param.startTime) return uni.showToast({
         title: '璇峰厛閫夋嫨鐢ㄨ溅鏃堕棿娈�',
         icon: 'none'
@@ -217,7 +215,7 @@
 
 <style lang="scss">
 .have_info {
-	padding: 0 0 200rpx;
+  padding: 0 0 200rpx;
   .tit {
     color: #ed4545;
     margin: 40rpx 0 24rpx;
@@ -226,10 +224,10 @@
     background: #f7f7f7;
     border-radius: 16rpx;
     padding: 30rpx 30rpx 10rpx;
-		margin-bottom: 20rpx;
+    margin-bottom: 20rpx;
     .card {
       margin-bottom: 30rpx;
-      font-weight: 500;
+      font-weight: 600;
       font-size: 32rpx;
       color: #222222;
       background: #f7f7f7;
@@ -317,7 +315,7 @@
   position: fixed;
   width: 100%;
   left: 0;
-	background-color: #fff;
+  background-color: #fff;
   bottom: 0;
   padding: 20rpx 30rpx 84rpx;
   box-shadow: 0rpx -3rpx 6rpx 0rpx #eeeeee;
@@ -329,15 +327,18 @@
     height: 72rpx;
     line-height: 72rpx;
     text-align: center;
-    background: #279baa;
+    background: $uni-color-primary;
     box-shadow: 0rpx -1rpx 0rpx 0rpx #eeeeee;
     border-radius: 36rpx;
     font-size: 30rpx;
     color: #ffffff;
   }
   .sel {
-    color: #279baa;
+    color: $uni-color-primary;
     flex: 1;
   }
+	.disable{
+		background: #CCCCCC;
+	}
 }
 </style>

--
Gitblit v1.9.3