Commit 484339d7 authored by xiabin's avatar xiabin

修改微信支付的错误

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