Commit 49a16b50 by 陈超

A

parent 7455416c
......@@ -219,7 +219,30 @@
}
})
} else if(that.tab == 1) {
$.ajax({
type: "GET",
url: "{:U('exams/Index/paper')}" + "&api=1",
dataType: "json",
success: function(res) {
that.loading = false
let res = data
let opt = that.options[1]
if(res.status == 1) {
let result = res.data
let array = result.data.length > 0 ? result.data : []
opt.items = array.map( r => {
return {
id: r.exams_paper_id,
title: r.exams_paper_title,
price: r.price
}
})
opt.page = res.nowPage
opt.finished = res.nowPage >= res.totalPages
that.finished = res.nowPage >= res.totalPages
}
}
})
} else {
let on = "{$marketConf['order_switch']}" == 1
$.ajax({
......
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