Commit 83335715 by 陈超

T

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