Showing
1 changed file
with
2 additions
and
3 deletions
| @@ -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 | }); |
-
Please register or login to post a comment