详情页下拉
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user