Commit 6f90d52c by 陈超

T

parent eaaa3980
......@@ -153,17 +153,7 @@
onToBuy: function() {
$.post(U("course/PayVideo/checkPay"), { vid: this.info.id }, function (data) {
if (data.status == 1) {
var url = ''
var pay_url = "{$pay_url}"
if(asb == 0){
url = "{:U('course/PayVideo/index',['vst'=>$pay_url, 'asb'=>$jmasb['one']])}"
}else if(asb == 1){
url = "{:U('course/PayVideo/index',['vst'=>$pay_url, 'asb'=>$jmasb['ep']])}"
}else if(asb == 2){
url = SITE_URL + '/pay/' + pay_url + '.html?asb=' + asb_user
}else{
url = "{:U('course/PayVideo/index',['vst'=>$pay_url])}"
}
url = "{:U('course/PayVideo/index',['vst'=>$pay_url])}"
window.location.href = url
} else if (data.status == 9) {
ui.error(data.info)
......
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