diff --git a/app/index/controller/Login.php b/app/index/controller/Login.php index 32976e7..f4aeb2b 100644 --- a/app/index/controller/Login.php +++ b/app/index/controller/Login.php @@ -105,6 +105,24 @@ class Login extends Base return userModel::clearLoginInfo() ? $this->success("操作成功", "/admin/login/login") : $this->error("操作失败", "/admin/index/index"); } + /** + * 用户中心 + * @return string + * @throws Exception + * @author 李玉坤 + * @date 2022-01-16 21:04 + */ + public function profile() + { + //清除可能存在的栏目分类树id + cache(Data::CURR_CATEGORY_PATENT_ID, false); + //模板兼容性标签 + $this->assign('id', false); + $this->assign('cid', false); + return $this->fetch(); + } + + /** * 验证码 * @return Response diff --git a/public/template/default/pc/login/profile.html b/public/template/default/pc/login/profile.html new file mode 100644 index 0000000..1cdb8eb --- /dev/null +++ b/public/template/default/pc/login/profile.html @@ -0,0 +1,544 @@ + + + + {:web_config('title')}-登录页 + + + {include file="public/head" /} + + + + + +
+ {include file="public/header" /} +
+ +
+
+
+
+
+ + +
+
+
+ +
muzi
+
+ +
+
+ 账号设置 +
+
+ 密码设置 +
+
+ 账号绑定 +
+
+
+ +
+
+

账号设置

+
+
+ 登录用户名 +
+ +
+
+
+ 显示用户名 +
+
+ +
+
+
+
+ 我的签名 +
+
+ +
+
+
+
+
+
+ 可选,签名超过200个字符,不能包含特殊字符 +
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+ +
+ + + {include file="public/footer"/} +
+ +