Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -102,7 +102,8 @@ window.callback = function(res){ | @@ -102,7 +102,8 @@ 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 | - if(res.code == 1){ | 105 | + alert(res.code); |
| 106 | + /*if(res.code == 1){ | ||
| 106 | layer.msg(res.msg, {icon: 1, time: 1000}, function(){ | 107 | layer.msg(res.msg, {icon: 1, time: 1000}, function(){ |
| 107 | location.href = "{:url('admin/index/index')}"; | 108 | location.href = "{:url('admin/index/index')}"; |
| 108 | }); | 109 | }); |
| @@ -110,7 +111,7 @@ window.callback = function(res){ | @@ -110,7 +111,7 @@ window.callback = function(res){ | ||
| 110 | $('#captcha').val(''); | 111 | $('#captcha').val(''); |
| 111 | layer.msg(res.msg, {icon: 2, anim: 6, time: 1000}); | 112 | layer.msg(res.msg, {icon: 2, anim: 6, time: 1000}); |
| 112 | $('.captcha img').attr('src','{:url("verify")}?id='+Math.random()); | 113 | $('.captcha img').attr('src','{:url("verify")}?id='+Math.random()); |
| 113 | - } | 114 | + }*/ |
| 114 | }); | 115 | }); |
| 115 | return false; | 116 | return false; |
| 116 | }); | 117 | }); |
-
Please register or login to post a comment