Commit 5208d25eefa05fca9af536dda3474334039c1222

Authored by pengye
1 parent 63cba24a

no message

@@ -102,8 +102,7 @@ window.callback = function(res){ @@ -102,8 +102,7 @@ window.callback = function(res){
102 loading =layer.load(1, {shade: [0.1,'#fff'] });//0.1透明度的白色背景 102 loading =layer.load(1, {shade: [0.1,'#fff'] });//0.1透明度的白色背景
103 $.post('{:url("login/index")}',data.field,function(res){ 103 $.post('{:url("login/index")}',data.field,function(res){
104 layer.close(loading); 104 layer.close(loading);
105 - alert(res.code);  
106 - /*if(res.code == 1){ 105 + if(res.code == 1){
107 layer.msg(res.msg, {icon: 1, time: 1000}, function(){ 106 layer.msg(res.msg, {icon: 1, time: 1000}, function(){
108 location.href = "{:url('admin/index/index')}"; 107 location.href = "{:url('admin/index/index')}";
109 }); 108 });
@@ -111,7 +110,7 @@ window.callback = function(res){ @@ -111,7 +110,7 @@ window.callback = function(res){
111 $('#captcha').val(''); 110 $('#captcha').val('');
112 layer.msg(res.msg, {icon: 2, anim: 6, time: 1000}); 111 layer.msg(res.msg, {icon: 2, anim: 6, time: 1000});
113 $('.captcha img').attr('src','{:url("verify")}?id='+Math.random()); 112 $('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
114 - }*/ 113 + }
115 }); 114 });
116 return false; 115 return false;
117 }); 116 });