Commit ca2ec454 by 冷斌

fix bug

parent fa26d395
...@@ -215,10 +215,20 @@ ...@@ -215,10 +215,20 @@
return 0; return 0;
}, },
onPay: function (item) { onPay: function (item) {
reg_login();
var uid = '{$uid}'; var uid = '{$uid}';
if(uid<=0){ ui.confirm('请先登录', {
reg_login(); yes: function () {
window.location.href = "{:U('basic/Passport/login')}";
}
});
return false;
if(MID<=0){
ui.confirm('请先登录', {
yes: function () {
window.location.href = "{:U('basic/Passport/login')}";
}
});
return false; return false;
} }
let url = "/pay/exams_"+item['order']+".html"; let url = "/pay/exams_"+item['order']+".html";
......
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