Commit 59a254c5 authored by lixy's avatar lixy

列表加载

parent acef5b64
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
if(scrollObj){ if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度 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) { if (this.touchend) {
return; return;
} }
......
...@@ -134,8 +134,7 @@ ...@@ -134,8 +134,7 @@
if(scrollObj) { if(scrollObj) {
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度 let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度
//滚动条到底部的条件 //滚动条到底部的条件
console.log(scrollHeight - scrollTop); if (this.totalCount>(this.listQuery.pageNo-1)*this.listQuery.pageSize) {
if (document.documentElement.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight-100) {
if (this.touchend) { if (this.touchend) {
return; return;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
if(scrollObj){ if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度 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) { if (this.touchend) {
return; return;
} }
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
if (scrollObj) { if (scrollObj) {
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度 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) { if (this.touchend) {
return; return;
} }
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
if(scrollObj){ if(scrollObj){
let scrollHeight = scrollObj.scrollHeight; // 滚动条的总高度 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) { if (this.touchend) {
return; 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