From 7b7823822f3daabd07ff239e45afa6bef55e1458 Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 19 Oct 2019 12:54:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Login.php | 12 ++++++------ view/admin/common/_require.html | 17 ++++++++++++++++- view/admin/login/index.html | 6 +++--- view/admin/user/index.html | 2 +- view/index/index/index.html | 10 ++++++++++ 5 files changed, 36 insertions(+), 11 deletions(-) diff --git a/app/admin/controller/Login.php b/app/admin/controller/Login.php index 730f301..1d7bed2 100644 --- a/app/admin/controller/Login.php +++ b/app/admin/controller/Login.php @@ -36,22 +36,22 @@ class Login extends Common }); if(!$validate->check($post_data)){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message($validate->getError()); } $model_admin = Admin::where('account',$post_data['account'])->find(); if(empty($model_admin)){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message('帐号不存在'); } if($model_admin->getData('password') !== md5($post_data['password'].$model_admin->getData('salt'))){ - // Session::set('admin_id',1); - // return json_message(); + Session::set('admin_id',1); + return json_message(); return json_message('密码错误'); } diff --git a/view/admin/common/_require.html b/view/admin/common/_require.html index a60a34d..c6188dc 100644 --- a/view/admin/common/_require.html +++ b/view/admin/common/_require.html @@ -9,6 +9,10 @@ .main-container{ margin-top: 10px; } + .layui-table img{ + max-width: 60px; + max-height: 60px;;; + } -{:get_system_config('site_tongji')} \ No newline at end of file +{:get_system_config('site_tongji')} + + + \ No newline at end of file diff --git a/view/admin/login/index.html b/view/admin/login/index.html index 4915f0c..d022d27 100644 --- a/view/admin/login/index.html +++ b/view/admin/login/index.html @@ -39,21 +39,21 @@
+ placeholder="请输入用户名" value="test(直接登陆即可)" autocomplete="off" class="layui-input">
+ placeholder="请输入密码" value="test(直接登陆即可)" autocomplete="off" class="layui-input">
+ placeholder="请输入验证码" autocomplete="off" value="test(直接登陆即可)" class="layui-input">
diff --git a/view/admin/user/index.html b/view/admin/user/index.html index 36ebd03..465f5d0 100644 --- a/view/admin/user/index.html +++ b/view/admin/user/index.html @@ -35,7 +35,7 @@ 添加用户
- +
diff --git a/view/index/index/index.html b/view/index/index/index.html index eaba9f2..96adf9d 100644 --- a/view/index/index/index.html +++ b/view/index/index/index.html @@ -7,6 +7,16 @@ {:get_system_config('site_name')} {:get_system_config('site_tongji')} + +
ID