Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
smileNicky
taoshop
提交
71695df4
T
taoshop
项目概览
smileNicky
/
taoshop
通知
4
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
2
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
T
taoshop
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
71695df4
编写于
9月 22, 2018
作者:
U
u014427391
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加上Thymeleaf配置文件&修缮一下用户中心功能
上级
de8f68ea
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
74 addition
and
20 deletion
+74
-20
src/taoshop-manager/taoshop-manager-service/src/main/resources/mybatis/SysUserMapper.xml
...ager-service/src/main/resources/mybatis/SysUserMapper.xml
+2
-0
src/taoshop-manager/taoshop-manager-web/src/main/java/com/muses/taoshop/manager/config/ThymeleafConfig.java
...ava/com/muses/taoshop/manager/config/ThymeleafConfig.java
+56
-0
src/taoshop-manager/taoshop-manager-web/src/main/java/com/muses/taoshop/manager/web/controller/LoginController.java
...muses/taoshop/manager/web/controller/LoginController.java
+2
-2
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/frame/common.html
...-web/src/main/resources/templates/admin/frame/common.html
+1
-6
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/frame/index.html
...r-web/src/main/resources/templates/admin/frame/index.html
+2
-1
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/user/user_content_wrap.html
...ain/resources/templates/admin/user/user_content_wrap.html
+11
-11
未找到文件。
src/taoshop-manager/taoshop-manager-service/src/main/resources/mybatis/SysUserMapper.xml
浏览文件 @
71695df4
...
...
@@ -31,4 +31,6 @@
and password = #{password}
</select>
</mapper>
\ No newline at end of file
src/taoshop-manager/taoshop-manager-web/src/main/java/com/muses/taoshop/manager/config/ThymeleafConfig.java
0 → 100644
浏览文件 @
71695df4
package
com.muses.taoshop.manager.config
;
import
org.springframework.beans.BeansException
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.format.FormatterRegistrar
;
import
org.springframework.format.FormatterRegistry
;
import
org.springframework.format.datetime.DateFormatter
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Locale
;
/**
* <pre>
* Thymeleaf模板引擎配置
* </pre>
*
* @author nicky
* @version 1.00.00
* <pre>
* 修改记录
* 修改后版本: 修改人: 修改日期: 2018.09.22 10:50 修改内容:
* </pre>
*/
@Configuration
public
class
ThymeleafConfig
extends
WebMvcConfigurerAdapter
implements
ApplicationContextAware
{
@Override
public
void
setApplicationContext
(
ApplicationContext
applicationContext
)
throws
BeansException
{
}
@Override
public
void
addFormatters
(
final
FormatterRegistry
registry
){
super
.
addFormatters
(
registry
);
registry
.
addFormatter
(
dateFormatter
());
}
@Bean
public
DateFormatter
dateFormatter
(){
return
new
MyDateFormatter
();
}
class
MyDateFormatter
extends
DateFormatter
{
@Override
public
String
print
(
Date
date
,
Locale
locale
)
{
//return super.print(date, locale);
return
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
date
);
}
}
}
src/taoshop-manager/taoshop-manager-web/src/main/java/com/muses/taoshop/manager/web/controller/LoginController.java
浏览文件 @
71695df4
...
...
@@ -159,12 +159,12 @@ public class LoginController extends BaseController {
// replaceAll("menuName","name").replaceAll("hasSubMenu","checked");
// mv.addObject("menus",json);
mv
.
setViewName
(
"admin/frame/index"
);
}
else
{
//会话失效,返回登录界面
mv
.
setViewName
(
"login"
);
}
mv
.
setViewName
(
"admin/frame/index"
);
return
mv
;
}
...
...
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/frame/common.html
浏览文件 @
71695df4
...
...
@@ -6,15 +6,10 @@
<title>
电商运营平台
</title>
<link
th:href=
"@{../static/css/style.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../static/css/backend.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../static/css/page/backend/
order_manage
.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../static/css/page/backend/
account_center
.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../plugins/datepicker/css/bootstrap.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../plugins/datepicker/css/bootstrap-datepicker.css}"
rel=
"stylesheet"
/>
<link
th:href=
"@{../plugins/select2/css/select2.min.css}"
rel=
"stylesheet"
/>
<script
type=
"text/javascript"
th:src=
"@{../static/js/jquery.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{../static/js/common.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{../plugins/datepicker/js/bootstrap-datepicker.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{../plugins/datepicker/locales/bootstrap-datepicker.zh-CN.min.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{../static/js/jquery.pagination.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{../plugins/select2/js/select2.min.js}"
></script>
</head>
</html>
\ No newline at end of file
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/frame/index.html
浏览文件 @
71695df4
...
...
@@ -13,7 +13,8 @@
<div
class=
"main-wrap-bk clearfix"
>
<!-- 左边菜单栏 -->
<div
class=
""
th:replace=
"admin/frame/sider_bar_bk :: .sider-bar-bk"
></div>
<div
class=
"bd-content-wrap"
th:replace=
"admin/orders/order_content_wrap :: .bd-content-wrap"
></div>
<!-- 用户中心 -->
<div
class=
"bd-content-wrap"
th:replace=
"admin/user/user_content_wrap :: .bd-content-wrap"
></div>
</div>
</div>
...
...
src/taoshop-manager/taoshop-manager-web/src/main/resources/templates/admin/user/user_content_wrap.html
浏览文件 @
71695df4
<div
class=
"bd-content-wrap"
>
<div
class=
"bd-content-wrap"
xmlns:th=
"http://www.w3.org/1999/xhtml"
>
<div
class=
"bd-content"
>
<div
class=
"title-left-line"
>
账户中心
</div>
<div
class=
"basic-info"
>
...
...
@@ -7,7 +7,7 @@
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
单位账号:
</div>
<div
class=
"form-content"
>
<span>
kie*****@163.com
</span>
<span
th:text=
"${session.sessionUser.username}"
>
kie*****@163.com
</span>
</div>
</div>
<div
class=
"form-kv clearfix"
>
...
...
@@ -21,21 +21,15 @@
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
单位管理员:
</div>
<div
class=
"form-content"
>
<span>
管理员
</span>
<span
th:text=
"${session.sessionUser.mark}"
>
管理员
</span>
<i
class=
"iconfont"
>

</i>
<span
class=
"status"
>
已认证
</span>
</div>
</div>
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
联系电话:
</div>
<div
class=
"form-content"
>
<span>
0755-****5678
</span>
</div>
</div>
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
手机号码:
</div>
<div
class=
"form-content"
>
<span>
137****8564
</span>
<span
th:text=
"${session.sessionUser.phone}"
>
137****8564
</span>
<i
class=
"iconfont"
>

</i>
<span
class=
"status"
>
已认证
</span>
</div>
...
...
@@ -43,11 +37,17 @@
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
邮箱地址:
</div>
<div
class=
"form-content"
>
<span>
kie*****@163.com
</span>
<span
th:text=
"${session.sessionUser.email}"
>
kie*****@163.com
</span>
<i
class=
"iconfont"
>

</i>
<span
class=
"status"
>
已认证
</span>
</div>
</div>
<div
class=
"form-kv clearfix"
>
<div
class=
"form-kv-label"
>
上次登录:
</div>
<div
class=
"form-content"
>
<span
th:text=
"${{session.sessionUser.lastLogin}}"
>
2018-08-08
</span>
</div>
</div>
</div>
</div>
<div
class=
"safe-setting"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录