Commit 83335715 by 陈超

T

parent 94e6634b
...@@ -359,8 +359,9 @@ ...@@ -359,8 +359,9 @@
url: "{:U('exams/Index/paper')}" + "&api=1&search=" + that.keyword, url: "{:U('exams/Index/paper')}" + "&api=1&search=" + that.keyword,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
let array = res.data.length > 0 ? res.data : [] if(res.status == 1) {
console.log(res) let result = res.data
let array = result.data.length > 0 ? result.data : []
that.options[1].items = array.map( r => { that.options[1].items = array.map( r => {
return { return {
id: r.exams_paper_id, id: r.exams_paper_id,
...@@ -368,7 +369,7 @@ ...@@ -368,7 +369,7 @@
price: r.price price: r.price
} }
}) })
console.log(that.options[1].items) }
} }
}) })
}, },
......
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