Commit 620721df by 冷斌

fix bug

parent ca2ec454
...@@ -216,21 +216,20 @@ ...@@ -216,21 +216,20 @@
}, },
onPay: function (item) { onPay: function (item) {
var uid = '{$uid}'; var uid = '{$uid}';
if(MID<=0){
ui.confirm('请先登录', { ui.confirm('请先登录', {
yes: function () { yes: function () {
window.location.href = "{:U('basic/Passport/login')}"; window.location.href = "{:U('basic/Passport/login')}";
} }
}); });
return false; return false;
if(MID<=0){
ui.confirm('请先登录', {
yes: function () {
window.location.href = "{:U('basic/Passport/login')}";
} }
});
if(item['money'] <= 0){
ui.error('此课程不需要您购买');
return false; return false;
} }
let url = "/pay/exams_"+item['order']+".html"; let url = "/pay/exams_"+item['order']+".html";
console.log(item, url, "{$check_type}"); console.log(item, url, "{$check_type}");
} }
......
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