Commit 99461fca7be2bb7e3bb5e0f52d1d459d071eabe2

Authored by pengye
1 parent 90c4aaa5

no message

@@ -102,6 +102,7 @@ window.callback = function(res){ @@ -102,6 +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);
105 if(res.code == 1){ 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')}";