Commit fd4faf86 authored by xiabin's avatar xiabin

修改支付后的弹窗问题

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