Commit 14eb39a1 by 陈超

T

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