Commit bdce2982 by 刘海龙

111

parent 52ba5ac9
...@@ -217,13 +217,14 @@ ...@@ -217,13 +217,14 @@
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight); // console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部 if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部 //滚动条到达底部
if(this.tab==0){ console.log(this.tab)
this.loadZhenti() // if(this.tab==0){
}else if(this.tab == 1) { // this.loadZhenti()
this.loadDownload() // }else if(this.tab == 1) {
} else { // this.loadDownload()
this.onMyTab(this.myTab) // } else {
} // this.onMyTab(this.myTab)
// }
}else if(scrollTop<=0){ }else if(scrollTop<=0){
//滚动条到达顶部 //滚动条到达顶部
// alert(4) // alert(4)
......
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