Commit 14eb39a1 by 陈超

T

parent f4fa59d4
...@@ -67,18 +67,22 @@ ...@@ -67,18 +67,22 @@
}, },
methods: { methods: {
onBuy: function(id, type) { onBuy: function(id, type) {
$.post( if(this.agree) {
U("course/PayVideo/checkPayOperat"), $.post(
{ U("course/PayVideo/checkPayOperat"),
check_type: '{$pay_video_type}', {
mid: MID, check_type: '{$pay_video_type}',
vid: id, mid: MID,
pay: "wxpay", vid: id,
money: "{$moner_data['oriPrice']}", pay: "wxpay",
}, money: "{$moner_data['oriPrice']}",
function(data) { },
console.log(data) function(data) {
}) console.log(data)
})
} else {
ui.error('请阅读并同意购买协议')
}
} }
} }
}) })
......
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