中介 个人 搜索 求房源 新增底部加载提示

This commit is contained in:
2023-07-21 14:04:44 +08:00
parent c53cc10101
commit fb81238823
10 changed files with 115 additions and 49 deletions

View File

@@ -6,7 +6,7 @@ const loadMore = (loadFunction) => {
let scrollTop = body.scrollTop
let clientHeight = body.clientHeight
let offsetHeight = body.offsetHeight
if (scrollTop + clientHeight === offsetHeight) {
if (scrollTop + clientHeight >= offsetHeight-200) {
loadFunction()
}
}