个人/中介房源 求房源页面

This commit is contained in:
2023-07-18 16:30:48 +08:00
parent eb1bed2973
commit d1d1bf3e18
14 changed files with 561 additions and 157 deletions

View File

@@ -0,0 +1,18 @@
//监听滚动条
const loadMore = (loadFunction) => {
let body = document.documentElement ? document.documentElement : document.body ?
document.body :
document.querySelector('.element');
let scrollTop = body.scrollTop
let clientHeight = body.clientHeight
let offsetHeight = body.offsetHeight
if (scrollTop + clientHeight === offsetHeight) {
loadFunction()
}
}
const tool={
loadMore
}
export default tool