Commit 52ba5ac9 by 刘海龙

111

parent aedcff58
......@@ -217,10 +217,16 @@
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部
alert(3)
if(this.tab==0){
this.loadZhenti()
}else if(this.tab == 1) {
this.loadDownload()
} else {
this.onMyTab(this.myTab)
}
}else if(scrollTop<=0){
//滚动条到达顶部
alert(4)
// alert(4)
//滚动条距离顶部的高度小于等于0 TODO
}
......@@ -320,10 +326,13 @@
onTopTab: function(tab) {
if(this.tab == 0) {
this.page=1
this.loadZhenti()
} else if(this.tab == 1) {
this.page=1
this.loadDownload()
} else {
this.page=1
this.onMyTab(this.myTab)
}
},
......@@ -350,7 +359,7 @@
let that = this
$.ajax({
type: "GET",
url: "{:U('exams/Index/paper')}" + "&api=1&c=" + that.conditionId,
url: "{:U('exams/Index/paper')}" + "&api=1&c=" + that.conditionId +"&page=" + this.page,
dataType: "json",
success: function(res) {
if(res.status == 1) {
......
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