Commit 562b830f by 陈超

A

parent d0ded03c
...@@ -230,8 +230,22 @@ ...@@ -230,8 +230,22 @@
}, },
onPay: function(item) { onPay: function(item) {
let url = "{:U('exams/Index/pay')}" $.ajax({
window.location.href = url.replace(/\[.*?\]/g, item.id) 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)
}
}
})
}, },
onTopTab: function(tab) { onTopTab: function(tab) {
......
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