Commit cdeaa3c3 by 刘海龙

no message

parent 1b778b3a
......@@ -358,22 +358,22 @@
onPay: function() {
var item = this.download[this.index]
console.log(item)
// $.ajax({
// type: "POST",
// url: "{:U('exams/index/getPayUrl')}",
// data:{
// paper_id: item.id,
// },
// dataType:"json",
// success:function(res){
// var res = getResponseData(res)
// if(res.status == 1){
// window.location.href = res.data
// }else{
// ui.error(res.message)
// }
// }
// })
$.ajax({
type: "POST",
url: "{:U('exams/index/getPayUrl')}",
data:{
paper_id: item.id,
},
dataType:"json",
success:function(res){
var res = getResponseData(res)
if(res.status == 1){
window.location.href = res.data
}else{
ui.error(res.message)
}
}
})
},
onDownload: function(){
......
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