Commit 6b6b780d by 刘海龙

1111

parent 684d103e
...@@ -197,7 +197,8 @@ ...@@ -197,7 +197,8 @@
zhenti: [], zhenti: [],
download: [], download: [],
myYiZuo: [], myYiZuo: [],
myCollect: [] myCollect: [],
page: 1
} }
}, },
created:function() { created:function() {
...@@ -364,7 +365,7 @@ ...@@ -364,7 +365,7 @@
let that = this let that = this
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "{:U('exams/Index/paper')}" + "&api=2&c=" + that.conditionId, url: "{:U('exams/Index/paper')}" + "&api=2&c=" + that.conditionId +"&page=" + this.page,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
if(res.status == 1) { if(res.status == 1) {
...@@ -390,6 +391,7 @@ ...@@ -390,6 +391,7 @@
} }
})) }))
} }
this.page ++
} }
} }
}) })
...@@ -399,7 +401,7 @@ ...@@ -399,7 +401,7 @@
let that = this let that = this
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "{:U('home/Home/exams')}" + "?api=1", url: "{:U('home/Home/exams')}" + "?api=1" +"&page=" + this.page,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
if(res.status == 1) { if(res.status == 1) {
...@@ -413,6 +415,7 @@ ...@@ -413,6 +415,7 @@
score: r.score score: r.score
} }
})) }))
this.page ++
} }
} }
}) })
......
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