From a98cba96f50f07716f55ad72557cb6fa643298da Mon Sep 17 00:00:00 2001 From: wangyx <2838268875@qq.com> Date: Wed, 23 Jul 2025 09:09:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E4=B8=8A=E6=8B=89=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesA/xjPage/xjRecord.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pagesA/xjPage/xjRecord.vue b/pagesA/xjPage/xjRecord.vue index cd069f6..8009fc4 100644 --- a/pagesA/xjPage/xjRecord.vue +++ b/pagesA/xjPage/xjRecord.vue @@ -63,6 +63,7 @@ 加载中... + 没有更多了 暂无数据~ @@ -122,7 +123,7 @@ export default { }, // 加载更多数据(分页) loadMore() { - console.log("上拉加载"); + console.log("上拉加载",this.isLoading,this.noMore); if (this.isLoading || this.noMore) return; // 新增 noMore 判断 this.isLoading = true; this.form.pageNum++; @@ -142,12 +143,17 @@ export default { } } // 判断是否还有更多 - if (tempList.length < this.form.pageSize) { + console.log(res.total,this.form.pageSize,res.total <= this.form.pageSize * this.form.pageNum,'tempList.total'); + + if (res.total <= this.form.pageSize * this.form.pageNum) { this.noMore = true; + console.log(this.noMore,'noM'); + if (page !== 1) { - uni.showToast({ - content: "已经加载全部", - }); + // uni.showToast({ + // title: "已经加载全部", + // icon: "none", + // }); } } this.isLoading = false;