Commit d8d05a26 by 刘海龙

111

parent d7997742
...@@ -418,6 +418,7 @@ ...@@ -418,6 +418,7 @@
url: "{:U('exams/Index/paper')}" + "&api=1&c=" + that.conditionId +"&p=" + this.page, url: "{:U('exams/Index/paper')}" + "&api=1&c=" + that.conditionId +"&p=" + this.page,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
if(res.data.totalPages>=res.data.nowPage){
if(res.status == 1) { if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : [] let array = res.data.data.length > 0 ? res.data.data : []
let zhenti = [].concat(array.map( r => { let zhenti = [].concat(array.map( r => {
...@@ -443,6 +444,9 @@ ...@@ -443,6 +444,9 @@
})) }))
} }
} }
}else{
console.log(数据已加载完)
}
} }
}) })
}, },
......
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