From 3927c227380501096275c796175dbbf9d8879477 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Sun, 26 May 2019 13:33:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 11 ++- .../admin/view/index/edit_password.html | 98 ++++++++----------- application/index/view/index/index.html | 2 +- route/admin.php | 2 +- 4 files changed, 49 insertions(+), 64 deletions(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 1889f643..01ebd1d6 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -317,9 +317,15 @@ class Index extends Base // 修改自己的密码 - public function editPassword($id) + public function editPassword() { - $list['id'] = $id; + // 设置页面标题 + $list['set'] = array( + 'webtitle'=>'修改密码', + 'butname'=>'修改', + 'formpost'=>'PUT', + 'url'=>'/editpassword/'.session('userid'), + ); // 模板赋值 $this->assign('list',$list); @@ -335,7 +341,6 @@ class Index extends Base // 获取表单数据 $list = request()->post(); - // 验证表单数据 // 实例化验证模型 $validate = new \app\admin\validate\SetPassword; diff --git a/application/admin/view/index/edit_password.html b/application/admin/view/index/edit_password.html index 982aa222..4a348e8c 100644 --- a/application/admin/view/index/edit_password.html +++ b/application/admin/view/index/edit_password.html @@ -1,63 +1,43 @@ {extend name="common@create" /} -{block name="formaa"} -
- - - - - - - - - - - - - - - - - - - - - - - - -
修改密码
旧密码: -
新密码: -
再次输入新密码: -
- -
-
+ +{block name="form"} +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
{/block} -{block name="yanzheng"} - -{/block} \ No newline at end of file diff --git a/application/index/view/index/index.html b/application/index/view/index/index.html index e7188292..4d5112df 100644 --- a/application/index/view/index/index.html +++ b/application/index/view/index/index.html @@ -44,7 +44,7 @@ {$list.username}
个人信息
- +
个人信息
切换帐号
diff --git a/route/admin.php b/route/admin.php index 9c50b461..697dbb22 100644 --- a/route/admin.php +++ b/route/admin.php @@ -15,6 +15,6 @@ Route::resource('authgroup','admin/AuthGroup'); Route::resource('authrule','admin/AuthRule'); Route::resource('authgroup','admin/AuthGroup'); Route::get('resetpassword/:id','admin/Index/resetpassword'); -Route::get('editpassword/:id/edit','admin/Index/editPassword'); +Route::get('editpassword/edit','admin/Index/editPassword'); Route::put('editpassword/:id','admin/Index/updatePassword'); Route::get('myinfo','admin/Index/myinfo'); \ No newline at end of file