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/sendACar.vue |   41 ++++++++++++++++++++++++++---------------
 1 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/h5/pages/staff/vehicle/sendACar.vue b/h5/pages/staff/vehicle/sendACar.vue
index 3df0a80..997a031 100644
--- a/h5/pages/staff/vehicle/sendACar.vue
+++ b/h5/pages/staff/vehicle/sendACar.vue
@@ -18,7 +18,7 @@
         class="box_list_item"
         v-for="(item, index) in dataList"
         :key="index"
-				@click="itemDetail(item)"
+        @click="itemDetail(item)"
       >
         <view class="box_list_item_head">
           <text>{{ item.carCode }}</text>
@@ -46,6 +46,14 @@
             <text>{{ item.addr }}</text>
           </view>
         </view>
+      </view>
+      <view v-if="dataList.length === 0" style="text-align: center">
+        <image
+          src="@/static/empty.png"
+          style="width: 320rpx; margin: 120rpx auto 0"
+          mode="widthFix"
+        />
+        <view class="placeholder9 fs24">鏆傛棤鏁版嵁</view>
       </view>
     </view>
     <!-- 閫夋嫨杞﹁締 -->
@@ -109,7 +117,7 @@
     getList() {
       const { param, pagination } = this
       pagination.page = pagination.page + 1
-      if(param.queryDate){
+      if (param.queryDate) {
         param.queryStartTime = param.queryDate + ' 00:00:00'
         param.queryEndTime = param.queryDate + ' 23:59:59'
       }
@@ -125,11 +133,11 @@
         this.total = res.data.total
       })
     },
-		itemDetail(item) {
-			uni.navigateTo({
-				url: "/pages/staff/vehicle/sendACarDetail?id=" + item.id
-			})
-		},
+    itemDetail(item) {
+      uni.navigateTo({
+        url: "/pages/staff/vehicle/sendACarDetail?id=" + item.id
+      })
+    },
     seletedCar(e) {
       const item = e.value[0]
       this.pagination.page = 0
@@ -139,10 +147,12 @@
       this.getList()
     },
     seletedDate(e) {
-      this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
-      this.pagination.page = 0
-      this.isShowDate = false
-      this.getList()
+      setTimeout(() => {
+        this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
+        this.pagination.page = 0
+        this.isShowDate = false
+        this.getList()
+      })
     },
     endtimeClose() {
       this.param.endTime = ''
@@ -169,6 +179,7 @@
 <style lang="scss">
 .main_app {
   background: #f7f7f7;
+  min-height: 100vh;
   padding: 0;
 }
 .app_header {
@@ -216,13 +227,13 @@
       .error {
         color: #e0312a;
       }
-			.grr{
-				color: #999999;
-			}
+      .grr {
+        color: #999999;
+      }
       text {
         &:nth-child(1) {
           font-size: 32rpx;
-          font-weight: 500;
+          font-weight: 600;
           color: #222222;
         }
         &:nth-child(2) {

--
Gitblit v1.9.3