From b94daf4ea357eafce26f37a1f0a799d55cbfa1a4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 24 二月 2025 16:38:21 +0800
Subject: [PATCH] ll
---
h5/pages/applicationRecord/applicationRecord.vue | 33 ++++++++++++++++++++++-----------
1 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/h5/pages/applicationRecord/applicationRecord.vue b/h5/pages/applicationRecord/applicationRecord.vue
index a390d45..c7b2b4e 100644
--- a/h5/pages/applicationRecord/applicationRecord.vue
+++ b/h5/pages/applicationRecord/applicationRecord.vue
@@ -36,8 +36,8 @@
:key="index"
>
<view class="box_list_item_head">
- <text>{{ item.name }}鐨勫姵鍔″叆鍥敵璇�</text>
- <text class="loading">{{ statusMap[item.status] }}</text>
+ <text>{{ item.name }}鎻愪氦鐨勮瀹㈢敵璇�</text>
+ <text class="loading" :class="{error: item.status == 3}">{{ statusMap[item.status] }}</text>
</view>
<view class="box_list_item_nr">
<view class="box_list_item_nr_item">
@@ -90,28 +90,39 @@
status: '',
statusMap: {
- 0: '寰呭鏍�',
- 1: '宸叉彁浜�',
+ 0: '寰呭鎵�',
+ 1: '瀹℃壒涓�',
2: '瀹℃牳閫氳繃',
- 3: '瀹℃牳涓嶉�氳繃',
+ 3: '瀹℃牳椹冲洖',
4: '鍙栨秷',
5: '涓嬪彂鎴愬姛',
6: '涓嬪彂澶辫触',
+ 7: '鎷滆涓�',
+ 8: '宸茬绂�',
+ 9: '宸插け鏁�',
}
}
},
- onLoad() {
- this.getList()
+ onShow() {
+ this.pagination.page = 0
+ this.list = []
+ this.getList()
},
onReachBottom() {
- if (this.total > 10) {
- this.getList()
- }
+ const {
+ total,
+ list
+ } = this
+ if (list.length < total) {
+ this.getList()
+ } else {
+ this.showToast('鏆傛棤鏇村鏁版嵁')
+ }
},
methods: {
handleDetail(id) {
uni.navigateTo({
- url: "/pages/appointmentDetails/appointmentDetails?id=" + id
+ url: "/pages/appointmentDetails/appointmentDetails?detail=1&id=" + id
})
},
tabsClick(val) {
--
Gitblit v1.9.3