Commit fd4faf86 authored by xiabin's avatar xiabin

修改支付后的弹窗问题

parent 9e34a849
...@@ -189,13 +189,18 @@ ...@@ -189,13 +189,18 @@
}, },
methods: { methods: {
payClick(){ payClick(){
if(this.isMobile == false && this.isWeixin == false){ if(this.coursewareInfo.isShop){
$('#web-pay').trigger('click'); if(this.isMobile == false && this.isWeixin == false){
}else if(this.isMobile == true && this.isWeixin == false){ $('#web-pay').trigger('click');
this.mobileAliPay(this.coursewareInfo.course_id); }else if(this.isMobile == true && this.isWeixin == false){
}else if(this.isWeixin === true){ this.mobileAliPay(this.coursewareInfo.course_id);
this.weixinJsPay(this.coursewareInfo.course_id); }else if(this.isWeixin === true){
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