Commit 65272668 by 刘海龙

11

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