Commit fd4faf86 authored by xiabin's avatar xiabin

修改支付后的弹窗问题

parent 9e34a849
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
}, },
methods: { methods: {
payClick(){ payClick(){
if(this.coursewareInfo.isShop){
if(this.isMobile == false && this.isWeixin == false){ if(this.isMobile == false && this.isWeixin == false){
$('#web-pay').trigger('click'); $('#web-pay').trigger('click');
}else if(this.isMobile == true && this.isWeixin == false){ }else if(this.isMobile == true && this.isWeixin == false){
...@@ -196,6 +197,10 @@ ...@@ -196,6 +197,10 @@
}else if(this.isWeixin === true){ }else if(this.isWeixin === true){
this.weixinJsPay(this.coursewareInfo.course_id); this.weixinJsPay(this.coursewareInfo.course_id);
} }
}else{
this.login();
}
}, },
alipay(courseId){ alipay(courseId){
var url = __BASE_URL__ + 'home/pay?courseId=' + courseId; var url = __BASE_URL__ + 'home/pay?courseId=' + courseId;
......
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