Commit 21a62e99 by 陈超

A

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