|
|
|
@ -607,7 +607,6 @@ async function refreshHandler(filtersearchId?: any) {
|
|
|
|
|
useInfiniteScroll(
|
|
|
|
|
el as any,
|
|
|
|
|
() => {
|
|
|
|
|
console.log('加载了333333333333333333333333---------------------------')
|
|
|
|
|
loadMore()
|
|
|
|
|
},
|
|
|
|
|
{ distance: 10, canLoadMore: () => canloadMore },
|
|
|
|
@ -621,25 +620,9 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
pagination.pageNo = 1
|
|
|
|
|
const list = await featchList()
|
|
|
|
|
listData.value = list
|
|
|
|
|
console.log('加载了1111111111111---------------------------', listData.value)
|
|
|
|
|
layout()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
watch(() => pagination.pageNo, (newVal, oldVal) => {
|
|
|
|
|
console.log('加载了22222222222222222---------------------------', newVal, oldVal, canloadMore)
|
|
|
|
|
if (newVal == oldVal)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if ((newVal == 1 || newVal == 2) && canloadMore) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
loading = false
|
|
|
|
|
loadMore()
|
|
|
|
|
})
|
|
|
|
|
}, 500)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
@ -723,7 +706,7 @@ watch(() => pagination.pageNo, (newVal, oldVal) => {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ref="el" class="scroll" :style="{ height: maxHeight,marginTop:'16px' }">
|
|
|
|
|
<div ref="el" class="scroll" :style="{ height: maxHeight, marginTop: '16px' }">
|
|
|
|
|
<!-- <n-scrollbar :on-scroll="scrollHandler"> -->
|
|
|
|
|
<div ref="masonryRef" class="grid">
|
|
|
|
|
<div
|
|
|
|
|