详情页下拉

This commit is contained in:
luJianJun 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 clientHeight = body.clientHeight
let offsetHeight = body.offsetHeight
if (scrollTop + clientHeight === offsetHeight) {
if (scrollTop + clientHeight >= offsetHeight-200) {
if (loadMore.value) {
loadMore.value = false
pages.value += 1