|
@@ -14,7 +14,6 @@
|
|
|
<div class="bottom_text" style="margin-top: 40px;">数据为空!</div>
|
|
|
</template>
|
|
|
</van-pull-refresh>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -70,9 +69,9 @@ export default {
|
|
|
},
|
|
|
getScroll(event) {
|
|
|
let scrollBottom =
|
|
|
- event.target.scrollHeight -
|
|
|
- event.target.scrollTop -
|
|
|
- event.target.clientHeight;
|
|
|
+ event.target.scrollHeight - //容器的内容高度
|
|
|
+ event.target.scrollTop - //容器顶部被隐藏的内容的高度
|
|
|
+ event.target.clientHeight; //可见区域的高度
|
|
|
// 距离底部20px以内 && 还有数据 && 没有正在加载中
|
|
|
if (scrollBottom <= 20 && !this.noData && !this.loading) {
|
|
|
this.pagination.page += 1;
|