diff --git a/pagesA/kfPage/list.vue b/pagesA/kfPage/list.vue index 1683596..cab9adb 100644 --- a/pagesA/kfPage/list.vue +++ b/pagesA/kfPage/list.vue @@ -19,14 +19,18 @@ - - 加载中... 没有更多了 - { + this.isScrolling = false; + }, 100); + }, + // 上拉加载更多 handleLoadMore() { - if (this.loading || this.loadingMore || !this.hasMore) return; + if (this.loading || this.loadingMore || !this.hasMore || this.isScrolling) return; this.loadingMore = true; this.loadAppointmentList(); }, @@ -458,6 +476,8 @@ export default { } .appointment-list { + height: calc(100vh - 100rpx); /* 减去搜索框和padding的高度,给滚动留更多空间 */ + overflow: hidden; .appointment-card { background-color: #fff; border-radius: 16rpx;