详情页下拉

This commit is contained in:
2023-08-09 15:51:32 +08:00
parent bb4e5c0bf9
commit f672a7fc6e

View File

@@ -1346,7 +1346,7 @@ const onPageSrcoll = (e) => {
let scrollTop = body.scrollTop let scrollTop = body.scrollTop
let clientHeight = body.clientHeight let clientHeight = body.clientHeight
let offsetHeight = body.offsetHeight let offsetHeight = body.offsetHeight
if (scrollTop + clientHeight === offsetHeight) { if (scrollTop + clientHeight >= offsetHeight-200) {
if (loadMore.value) { if (loadMore.value) {
loadMore.value = false loadMore.value = false
pages.value += 1 pages.value += 1