Commit 0e6f5b52 by 刘海龙

no message

parent 0244f306
...@@ -247,8 +247,6 @@ ...@@ -247,8 +247,6 @@
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight); // console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部 if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部 //滚动条到达底部
console.log("tab:" + that.tab)
console.log("page:" + that.page)
if(that.tab==0){ if(that.tab==0){
that.loadZhenti() that.loadZhenti()
}else if(that.tab == 1) { }else if(that.tab == 1) {
...@@ -377,11 +375,14 @@ ...@@ -377,11 +375,14 @@
this.page=1 this.page=1
this.zhenti = [] this.zhenti = []
this.loadZhenti() this.loadZhenti()
$(html,body).animate({scrollTop:0},1000);//回到顶端
} else if(this.tab == 1) { } else if(this.tab == 1) {
this.page=1 this.page=1
this.loadDownload() this.loadDownload()
$(html,body).animate({scrollTop:0},1000);//回到顶端
} else { } else {
this.onMyTab(this.myTab) this.onMyTab(this.myTab)
$(html,body).animate({scrollTop:0},1000);//回到顶端
} }
}, },
...@@ -393,10 +394,12 @@ ...@@ -393,10 +394,12 @@
this.page=1 this.page=1
this.myYiZuo=[] this.myYiZuo=[]
this.loadMy() this.loadMy()
$(html,body).animate({scrollTop:0},1000);//回到顶端
} else { } else {
this.page=1 this.page=1
this.myCollect=[] this.myCollect=[]
this.loadMyTi() this.loadMyTi()
$(html,body).animate({scrollTop:0},1000);//回到顶端
} }
}, },
// 筛选条件 // 筛选条件
......
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