|
|
@ -48,14 +48,18 @@ $(function(){
|
|
|
|
submitHandler : function(form) {
|
|
|
|
submitHandler : function(form) {
|
|
|
|
$.post(base_url + "/login", $("#loginForm").serialize(), function(data, status) {
|
|
|
|
$.post(base_url + "/login", $("#loginForm").serialize(), function(data, status) {
|
|
|
|
if (data.code == "200") {
|
|
|
|
if (data.code == "200") {
|
|
|
|
layer.open({
|
|
|
|
layer.msg('登录成功');
|
|
|
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
|
|
|
window.location.href = base_url;
|
|
|
|
|
|
|
|
}, 500);
|
|
|
|
|
|
|
|
/*layer.open({
|
|
|
|
title: '系统提示',
|
|
|
|
title: '系统提示',
|
|
|
|
content: '登录成功',
|
|
|
|
content: '登录成功',
|
|
|
|
icon: '1',
|
|
|
|
icon: '1',
|
|
|
|
end: function(layero, index){
|
|
|
|
end: function(layero, index){
|
|
|
|
window.location.href = base_url;
|
|
|
|
window.location.href = base_url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});*/
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
layer.open({
|
|
|
|
layer.open({
|
|
|
|
title: '系统提示',
|
|
|
|
title: '系统提示',
|
|
|
|