修改下拉

This commit is contained in:
Zy
2026-08-20 10:22:55 +08:00
parent c5036ca09d
commit de0f8b711a
7 changed files with 42 additions and 9 deletions

View File

@@ -113,7 +113,13 @@ const total = ref(0)
function getlist() {
// 1. 如果正在加载或没有更多数据,直接返回
if (isLoading.value || !hasMore.value) return
if (isLoading.value || !hasMore.value) {
if (isRefresh) {
uni.stopPullDownRefresh()
isRefresh = false
}
return
}
// 2. 开启锁
isLoading.value = true
const { pageNum, pageSize, date, status } = queryParmas.value

View File

@@ -99,7 +99,13 @@ const hasMore = ref(true) // 是否还有更多数据
const total = ref(0)
function getlist() {
if (isLoading.value || !hasMore.value) return
if (isLoading.value || !hasMore.value) {
if (isRefresh) {
uni.stopPullDownRefresh()
isRefresh = false
}
return
}
isLoading.value = true
const { pageNum, pageSize, date, status } = queryParmas.value