Commit d0f54ab9 by 冷斌

fix bug

parent 17d3fd21
......@@ -272,7 +272,7 @@
if(tab == 0) {
this.loadMy()
} else {
this.loadMyTi()
}
},
onCondition: function(condition) {
......@@ -379,7 +379,26 @@
},
//加载我收藏的题
loadMyTi: function() {
let that = this
$.ajax({
type: "GET",
url: "{:U('home/Home/exams')}" + "?api=1&tab=4",
dataType: "json",
success: function(res) {
if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : []
that.download = [].concat(array.map( r => {
return {
id: r.exams_paper_id,
title: r.exams_paper_title,
price: r.price,
time: new Date(r.start_time).format('yyyy-mm-dd HH:MM:ss'),
score: r.score
}
}))
}
}
})
}
}
})
......
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