From ecbdab9da9488cc58a1ac7064f9cffde4792fba4 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 28 六月 2024 09:51:01 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/staff/vehicle/shinei.vue |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/h5/pages/staff/vehicle/shinei.vue b/h5/pages/staff/vehicle/shinei.vue
index 63ea472..9acf2f2 100644
--- a/h5/pages/staff/vehicle/shinei.vue
+++ b/h5/pages/staff/vehicle/shinei.vue
@@ -75,7 +75,7 @@
       selDatetime: '',
 
       colorOptions: [
-        { color: '#279BAA', name: '宸查�夋嫨' },
+        { color: this.$store.state.primaryColor, name: '宸查�夋嫨' },
         { color: '#F7F7F7', name: '鍙绾�' },
         { color: '#cccccc', name: '涓嶅彲棰勭害' },
       ]
@@ -89,7 +89,7 @@
     onSubmit() {
 			const { param } = this
       const selTimeList = this.timeList.filter(i => i.checked == '1')
-      if (selTimeList.length == -1) {
+      if (selTimeList.length == 0) {
         return uni.showToast({
           title: '璇峰厛閫夋嫨鐢ㄨ溅鏃堕棿娈�',
           icon: 'none'
@@ -155,9 +155,6 @@
       } else {
         this.selDatetime = this.param.queryDate.slice(5) + ' ' + selTimeLists[0].startHours + '-' + selTimeLists[selTimeLists.length - 1].endHours
       }
-      // if(true){
-      // 	this.selDatetime.push(item)
-      // }
     },
     confirmDate(e) {
       this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
@@ -228,7 +225,7 @@
     padding: 20rpx 30rpx 84rpx;
     box-shadow: 0rpx -3rpx 6rpx 0rpx #eeeeee;
     .sel_time {
-      color: #279baa;
+      color: $uni-color-primary;
     }
     .btns {
       margin-top: 10rpx;
@@ -253,7 +250,7 @@
         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;
@@ -277,7 +274,7 @@
       font-size: 30rpx;
     }
     .active {
-      background-color: #279baa;
+      background-color: $uni-color-primary;
       color: #fff;
     }
     .disable {

--
Gitblit v1.9.3