|
@@ -26,7 +26,7 @@ function isReachBottom() {
|
|
|
const winHeight = getWinHeight() // 一屏的高度
|
|
|
const scrollHeight = getScrollHeight() // 获取文档总高度
|
|
|
console.log('scrollTop:' + scrollTop + '/scrollHeight:' + scrollHeight + '/winHeight:' + winHeight)
|
|
|
- return scrollTop >= parseInt(scrollHeight) - 10 - winHeight
|
|
|
+ return scrollTop >= parseInt(scrollHeight) - 20 - winHeight
|
|
|
}
|
|
|
|
|
|
export default isReachBottom
|