From 431c5495ba8160dc1af96572807ec4f19598d8ee Mon Sep 17 00:00:00 2001 From: lixin Date: Fri, 14 Aug 2020 17:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E9=A1=B5=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/views/gatewayDir/gatewayIndex.jsp | 64 +++++++++++++------ .../webapp/WEB-INF/views/loginDir/index.jsp | 9 +-- .../src/main/webapp/static/js/getewayIndex.js | 50 ++++++--------- 3 files changed, 70 insertions(+), 53 deletions(-) diff --git a/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp b/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp index 262ce4e..2690de2 100644 --- a/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp +++ b/power-admin/src/main/webapp/WEB-INF/views/gatewayDir/gatewayIndex.jsp @@ -48,13 +48,24 @@ text-overflow: ellipsis; white-space: nowrap; } + .home-sidebar-menu>li{ + padding: 22px 0; + } + .skin-blue .sidebar-menu>li:hover,.skin-blue .sidebar-menu>li.active{ + background: #1e282c; + } + .skin-blue .sidebar-menu>li:hover>.aClass,.skin-blue .sidebar-menu>li.active>.aClass{ + color: white; + } .aClass{ - display: grid!important; + display: grid; justify-content: center; align-items: center; font-size: 16px; font-weight: 700; - color: white!important; + text-align: center; + color: #b8c7ce; + cursor: pointer; } .aClass i{ display: flex; @@ -62,6 +73,23 @@ margin: 0 auto; font-size: 54px; } + .aClass span{ + margin-top: 5px; + } + .sidebar-mini.sidebar-collapse .aClass{ + font-size: 12px; + } + .sidebar-mini.sidebar-collapse .aClass>i{ + font-size: 25px; + } + .home-menu:hover .dropdown-menu {display: block;} + .sidebar-mini.sidebar-collapse .img { + width: 25px; + } + .home-menu:hover .dropdown-menu {display: block;} + .sidebar-mini.sidebar-collapse .titleDiv{ + font-size: 12px; + } @@ -116,8 +144,8 @@ -
  • + @@ -128,42 +156,42 @@ -
    diff --git a/power-admin/src/main/webapp/WEB-INF/views/loginDir/index.jsp b/power-admin/src/main/webapp/WEB-INF/views/loginDir/index.jsp index 250f0aa..c22f3da 100644 --- a/power-admin/src/main/webapp/WEB-INF/views/loginDir/index.jsp +++ b/power-admin/src/main/webapp/WEB-INF/views/loginDir/index.jsp @@ -41,6 +41,7 @@ .sidebar-mini.sidebar-collapse #indexTreeMenu .modleSelected .pull-right-container{ margin-top: -6px; } + .home-menu:hover .dropdown-menu {display: block;} @@ -97,13 +98,9 @@
  • -
  • +
  • diff --git a/power-admin/src/main/webapp/static/js/getewayIndex.js b/power-admin/src/main/webapp/static/js/getewayIndex.js index 0c3f30e..a427dc1 100644 --- a/power-admin/src/main/webapp/static/js/getewayIndex.js +++ b/power-admin/src/main/webapp/static/js/getewayIndex.js @@ -15,33 +15,25 @@ $(function(){ noticeManage(); } }) - -//跳转到主页 -function mainManage(){ - $("#iframeDiv").hide(); - $("#sectionDiv").show(); -} -//跳转到通知 -function noticeManage(){ - $("#iframeDiv").show(); - $("#sectionDiv").hide(); - $("#iframe").prop("src",path+"/notice/pageUI"); -} -//跳转到帮助文档 -function helpDocumentManage(){ - $("#iframeDiv").show(); - $("#sectionDiv").hide(); - $("#iframe").prop("src",path+"/main"); -} -//跳转到修改密码 -function updatePassword(){ - $("#iframeDiv").show(); - $("#sectionDiv").hide(); - $("#iframe").prop("src",path+"/user/toUpdatePassword"); -} -//跳转到联系我们 -function callMeManage(){ - $("#iframeDiv").show(); - $("#sectionDiv").hide(); - $("#iframe").prop("src",path+"/main"); +function menuClick(el,type){ + $(".home-sidebar-menu li").removeClass('active'); + $(el).parent().addClass("active"); + switch (type){ + case 'notice': + $("#iframe").prop("src",path+"/notice/pageUI"); + break; + case 'pwd': + $("#iframe").prop("src",path+"/user/toUpdatePassword"); + break; + case 'help': + case 'contact': + $("#iframe").prop("src",path+"/main"); + } + if(type==='home'){ + $("#iframeDiv").hide(); + $("#sectionDiv").show(); + }else { + $("#iframeDiv").show(); + $("#sectionDiv").hide(); + } } \ No newline at end of file