Commit e35372bf by 陈超

T

parent d74ba5d2
...@@ -80,9 +80,8 @@ ...@@ -80,9 +80,8 @@
}, },
function(data) { function(data) {
let res = JSON.parse(data) let res = JSON.parse(data)
console.log(res)
if(res.status == 1) { if(res.status == 1) {
that.startWxPay() that.startWxPay(id)
} else { } else {
ui.error(res.info) ui.error(res.info)
} }
...@@ -91,7 +90,7 @@ ...@@ -91,7 +90,7 @@
ui.error('请阅读并同意购买协议') ui.error('请阅读并同意购买协议')
} }
}, },
startWxPay: function() { startWxPay: function(id) {
$.ajax({ $.ajax({
url: "{:U('course/PayVideo/payLibrary')}", url: "{:U('course/PayVideo/payLibrary')}",
data:{ data:{
......
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