Commit 59a254c5 authored by lixy's avatar lixy

列表加载

parent acef5b64
......@@ -119,7 +119,7 @@
if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件
if(document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight){
if (this.totalCount>(this.listQuery.page-1)*this.listQuery.limit) {
if (this.touchend) {
return;
}
......
......@@ -134,8 +134,7 @@
if(scrollObj) {
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件
console.log(scrollHeight - scrollTop);
if (document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight-100) {
if (this.totalCount>(this.listQuery.pageNo-1)*this.listQuery.pageSize) {
if (this.touchend) {
return;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -115,7 +115,7 @@
if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件
if(document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight-100) {
if (this.totalCount>(this.listQuery.page-1)*this.listQuery.limit) {
if (this.touchend) {
return;
}
......
......@@ -137,7 +137,7 @@
if (scrollObj) {
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件
if (document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight-100) {
if (this.totalCount>(this.listQuery.page-1)*this.listQuery.limit) {
if (this.touchend) {
return;
}
......
......@@ -129,7 +129,7 @@
if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件
if(document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight-100){
if (this.totalCount>(this.listQuery.page-1)*this.listQuery.limit) {
if (this.touchend) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment