懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
提交 | 用户 | 时间
71e81e 1 @/* 框架顶部 */
2 <div class="layui-header">
3     <div class="layui-logo">
4         <!--<img src="${ctxPath}/assets/common/images/logo.png"/>-->
5         <i class="layui-icon layui-icon-component"></i>
6         <cite>&nbsp;${constants.getSystemName()}&emsp;</cite>
7     </div>
8     <ul class="layui-nav layui-layout-left">
9         <li class="layui-nav-item" lay-unselect>
10             <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
11         </li>
12         <li class="layui-nav-item" lay-unselect>
13             <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
14         </li>
15
16         @var types = shiro.getUser().systemTypes;
17         @if(tool.isNotEmpty(types)){
18             @for(type in types) {
19                 @if(typeLP.index == 1){
20                 <li class="layui-nav-item layui-hide-xs layui-this" lay-unselect><a nav-bind="${type.code}">${type.name}</a></li>
21                 @}else{
22                 <!--<li class="layui-nav-item layui-hide-xs" lay-unselect><a nav-bind="${type.code}">${type.name}</a></li>-->
23                 @}
24             @}
25         @}
26
27         @if(constants.getDefaultAdvert()){
28         <li class="layui-nav-item" lay-unselect>
29             <a href="" target="_blank"></a>
30         </li>
31         <li class="layui-nav-item" lay-unselect>
32             <a style="color: #5FB878;" href="" target="_blank"></a>
33         </li>
34         <li class="layui-nav-item" lay-unselect>
35             <a style="color: #fe7300;" href="" target="_blank"></a>
36         </li>
37         @}
38
39     </ul>
40     <ul class="layui-nav layui-layout-right">
41         <li class="layui-nav-item layui-hide-xs" lay-unselect>
42             <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
43         </li>
44         <li class="layui-nav-item layui-hide-xs" lay-unselect>
45             <a ew-event="lockScreen" title="锁屏" data-url="${ctxPath}/system/lock"><i class="layui-icon layui-icon-password"></i></a>
46         </li>
47         <li class="layui-nav-item" lay-unselect>
48             <a>
49                 <img src="${avatar!}" class="layui-nav-img">
50                 <cite>${name!"用户"}</cite>
51             </a>
52             <dl class="layui-nav-child">
53                 <dd lay-unselect>
54                     <a ew-href="${ctxPath}/system/user_info">${lang.get("MENU_PERSONAL_INFO","个人中心")}</a>
55                 </dd>
56                 <dd lay-unselect>
57                     <a id="setPsw">${lang.get("MENU_CHANGE_PASSWORD","修改密码")}</a>
58                 </dd>
59                 <hr>
60                 <div id="languageDiv"></div>
61                 <hr>
62                 <dd lay-unselect>
63                     <a id="btnLogout">${lang.get("MENU_LOGOUT","退出")}</a>
64                 </dd>
65             </dl>
66         </li>
67         <li class="layui-nav-item" lay-unselect>
68             <a ew-event="theme" title="主题" data-url="${ctxPath}/system/theme"><i class="layui-icon layui-icon-more-vertical"></i></a>
69         </li>
70     </ul>
71 </div>