能力广场

This commit is contained in:
851673013@qq.com 2022-08-09 18:15:16 +08:00
parent cdc3b9c215
commit c4155bb364
2 changed files with 8 additions and 2 deletions

View File

@ -75,7 +75,10 @@
var windowHeight = e.currentTarget.clientHeight var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123') console.log(scrollTop, windowHeight, scrollHeight, '123')
if (scrollTop + windowHeight == scrollHeight) { if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
// //
isNoMore.value = true isNoMore.value = true
params.pageNum++ params.pageNum++

View File

@ -75,7 +75,10 @@
var windowHeight = e.currentTarget.clientHeight var windowHeight = e.currentTarget.clientHeight
var scrollHeight = e.currentTarget.scrollHeight var scrollHeight = e.currentTarget.scrollHeight
console.log(scrollTop, windowHeight, scrollHeight, '123') console.log(scrollTop, windowHeight, scrollHeight, '123')
if (scrollTop + windowHeight == scrollHeight) { if (
scrollTop + windowHeight <= scrollHeight + 1 &&
scrollTop + windowHeight >= scrollHeight - 1
) {
// //
isNoMore.value = true isNoMore.value = true
params.pageNum++ params.pageNum++