Commit a6fec128 by 刘海龙

111

parent b0993422
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
success: function(res) { success: function(res) {
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 : []
that.zhenti = [].concat(array.map( r => { let zhenti = [].concat(array.map( r => {
return { return {
id: r.exams_paper_id, id: r.exams_paper_id,
title: r.exams_paper_title, title: r.exams_paper_title,
...@@ -415,6 +415,7 @@ ...@@ -415,6 +415,7 @@
is_buy: r.is_buy is_buy: r.is_buy
} }
})) }))
that.zhenti = that.zhenti.concat(zhenti)
that.page ++ that.page ++
if(that.condition.length == 0) { if(that.condition.length == 0) {
that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => { that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => {
......
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