Commit 65272668 by 刘海龙

11

parent d760f978
......@@ -342,22 +342,22 @@
onPay: function(item) {
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(index){
......
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