From a35b8eec96aac2793de732c3fb7513cd6c5b2e4c Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 08 一月 2025 14:39:34 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/driver/reservedRecord.vue | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/h5/pages/driver/reservedRecord.vue b/h5/pages/driver/reservedRecord.vue
index 0d19bd6..6876112 100644
--- a/h5/pages/driver/reservedRecord.vue
+++ b/h5/pages/driver/reservedRecord.vue
@@ -10,7 +10,7 @@
>
<view class="box_list_item_head">
<text>{{item.driverName}}鐨勫叆鍥绾�</text>
- <text class="loading">{{ statusMap[item.status] }}</text>
+ <text class="loading" :class="{red: item.status == 3}">{{ statusMap[item.status] }}</text>
</view>
<view class="box_list_item_nr">
<view class="box_list_item_nr_item">
@@ -23,7 +23,7 @@
</view>
<view class="box_list_item_nr_item">
<text>鍙告満濮撳悕锛�</text>
- <text>{{item.driverName}}</text>
+ <text>{{item.driverName}} {{item.driverPhone}}</text>
</view>
<view class="box_list_item_nr_item">
<text>杞﹁締淇℃伅锛�</text>
@@ -47,20 +47,30 @@
isShowDate: false,
param: {},
page: 1,
- capacity: 10,
+ capacity: 20,
total: 0,
datalist: [],
statusMap: {
0: '寰呭鎵�',
1: '瀹℃壒涓�',
- 2: '瀹℃壒閫氳繃',
- 3: '瀹℃壒涓嶉�氳繃',
+ 2: '宸查�氳繃',
+ 3: '宸叉嫆缁�',
4: '宸插彇娑�',
}
}
},
- 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