Commit b0cac933 by 冷斌

fix bug

parent 6cab4756
......@@ -214,8 +214,7 @@
}
return 0;
},
onPay: function (item, type) {
var uid = '{$uid}';
isLogin: function () {
if(MID<=0){
ui.confirm('请先登录', {
yes: function () {
......@@ -224,6 +223,12 @@
});
return false;
}
return true;
},
onPay: function (item, type) {
if (!this.isLogin()) {
return false;
}
if(item['price'] <= 0){
ui.error('不需要您购买');
......@@ -254,7 +259,6 @@
return false;
}
$.post(U("course/PayVideo/checkPay"), formData2,function(data){
if(data.status == 1){
window.location.href = url;
......@@ -267,6 +271,8 @@
}
},'json');
}
},
created: function () {
this.tab = this.getQueryVariable('status');
......
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