Commit 484339d7 authored by xiabin's avatar xiabin

修改微信支付的错误

parent c2b2faad
......@@ -226,12 +226,21 @@
});
},
mobileAliPay(courseId){
var url = __BASE_URL__ + 'home/pay?courseId=' + courseId;
window.location.href = url;
if(!this.coursewareInfo.isGuest){
var url = __BASE_URL__ + 'home/pay?courseId=' + courseId;
window.location.href = url;
}else{
this.login();
}
},
weixinJsPay(courseId){
var url = __BASE_URL__ + 'weixin-js-pay/index?courseId=' + courseId;
window.location.href = url;
if(!this.coursewareInfo.isGuest){
var url = __BASE_URL__ + 'weixin-js-pay/index?courseId=' + courseId;
window.location.href = url;
}else{
this.login();
}
},
login(){
var returnUrl = __BASE_URL__ + 'home/video?pay=1&courseId=' + this.coursewareInfo.course_id;
......
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