From 19f0eca493f7e17ab7b67d28cf77d80de364576c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 28 十月 2024 15:00:57 +0800
Subject: [PATCH] ll

---
 h5/pages/staff/vehicle/sendACar.vue |   28 +++++++++++++++++-----------
 1 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/h5/pages/staff/vehicle/sendACar.vue b/h5/pages/staff/vehicle/sendACar.vue
index 4bee49a..bcf1fcc 100644
--- a/h5/pages/staff/vehicle/sendACar.vue
+++ b/h5/pages/staff/vehicle/sendACar.vue
@@ -47,7 +47,14 @@
           </view>
         </view>
       </view>
-      <image v-if="dataList.length === 0" src="@/static/empty.png" style="width: 320rpx;margin: 120rpx auto;" mode="widthFix" />
+      <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>
     <!-- 閫夋嫨杞﹁締 -->
     <u-picker
@@ -89,7 +96,7 @@
       minDate: '',
       pagination: {
         page: 0,
-        capacity: 10
+        capacity: 6
       },
       total: 0,
       dataList: [],
@@ -102,9 +109,12 @@
     this.initData()
   },
   onReachBottom() {
-    if (this.total > 10) {
+		console.log('onReachBottom');
+    if (this.total > this.dataList.length) {
       this.getList()
-    }
+    }else {
+			this.showToast('鏆傛棤鏇村鏁版嵁')
+		}
   },
   methods: {
     getList() {
@@ -118,11 +128,7 @@
         ...pagination,
         model: { ...param }
       }).then(res => {
-        if (pagination.page === 1) {
-          this.dataList = res.data.records
-        } else {
-          this.dataList = [...list, ...res.data.records]
-        }
+        this.dataList = [...this.dataList, ...res.data.records]
         this.total = res.data.total
       })
     },
@@ -160,7 +166,7 @@
     },
     initData() {
       getCarsList({
-        type: 1
+        type: 0
       }).then(res => {
         this.carsList = [res.data]
       })
@@ -226,7 +232,7 @@
       text {
         &:nth-child(1) {
           font-size: 32rpx;
-          font-weight: 500;
+          font-weight: 600;
           color: #222222;
         }
         &:nth-child(2) {

--
Gitblit v1.9.3