Commit 945e9a50 by 刘海龙

111

parent 27c7fdd8
......@@ -244,13 +244,12 @@
var scrollTop = $(this).scrollTop(); //滚动条距离顶部的高度
var scrollHeight = $(document).height(); //当前页面的总高度
var clientHeight = $(this).height(); //当前可视的页面高度
console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部
console.log("tab:" + that.tab)
console.log("page:" + that.page)
if(that.tab==0){
console.log("1111111111")
that.loadZhenti()
}else if(that.tab == 1) {
that.loadDownload()
......@@ -367,7 +366,6 @@
this.page=1
this.zhenti = []
this.loadZhenti()
console.log("222222222222")
} else if(this.tab == 1) {
this.page=1
this.loadDownload()
......@@ -378,6 +376,7 @@
},
onMyTab: function(tab) {
this.myTab = tab
console.log(this.myTab)
if(tab == 0) {
this.page=1
this.loadMy()
......@@ -392,7 +391,6 @@
this.$refs.item.toggle()
if(this.tab == 0) {
this.loadZhenti()
console.log("33333333333")
} else if(this.tab == 1) {
this.loadDownload()
}
......
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