From d1399868aa72b2cc75725e74500936b33de49910 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 06 一月 2025 18:15:05 +0800
Subject: [PATCH] ll

---
 h5/pages/driver/reservedRecord.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/h5/pages/driver/reservedRecord.vue b/h5/pages/driver/reservedRecord.vue
index 91c20e3..6876112 100644
--- a/h5/pages/driver/reservedRecord.vue
+++ b/h5/pages/driver/reservedRecord.vue
@@ -47,7 +47,7 @@
       isShowDate: false,
       param: {},
 			page: 1,
-			capacity: 10,
+			capacity: 20,
 			total: 0,
 			datalist: [],
 			statusMap: {
@@ -59,8 +59,18 @@
 			}
     }
   },
-	created() {
+	onShow() {
+		this.page = 1
 		this.getList()
+	},
+	onReachBottom() {
+		const { total,  datalist} = this
+	  if(datalist.length < total){
+			this.page = this.page + 1
+			this.getList()
+		} else {
+			this.showToast('鏆傛棤鏇村鏁版嵁')
+		}
 	},
   methods: {
 		getList() {
@@ -68,7 +78,7 @@
 			driverApplyRecord({
 				page, capacity,model: {}
 			}).then(res => {
-				this.datalist = res.data.records
+				this.datalist = [...this.datalist, ...res.data.records]
 				this.total = res.data.total
 			})
 		},

--
Gitblit v1.9.3