From e6acb39a2475e211f2c1decc45a95c868239c25f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 18 十月 2024 14:28:32 +0800
Subject: [PATCH] ll

---
 h5/pages/staff/task/index.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/h5/pages/staff/task/index.vue b/h5/pages/staff/task/index.vue
index 8ee559c..56ed2e0 100644
--- a/h5/pages/staff/task/index.vue
+++ b/h5/pages/staff/task/index.vue
@@ -242,6 +242,7 @@
       },
       headData: {},
       dataList: [],
+			total: 0,
       cateList: [
         { name: '璁垮鐢宠', id: 0 },
         { name: '璁垮鎶ュ', id: 1 },
@@ -258,9 +259,12 @@
   //   this.getList()
   // },
   onReachBottom() {
-    // this.pagination.page = 0
-    // this.dataList = []
-    this.getList()
+		const { total,  dataList} = this
+    if(dataList.length < total){
+			this.getList()
+		} else {
+			this.showToast('鏆傛棤鏇村鏁版嵁')
+		}
   },
   onBackPress(options) {
     setTimeout(()=>{
@@ -316,6 +320,7 @@
         }
       }).then(res => {
         this.dataList = [...this.dataList, ...res.data.records]
+				this.total = res.data.total
         this.dataList.forEach(i => {
           if (i.param1) {
             i.param1 = JSON.parse(i.param1)

--
Gitblit v1.9.3