Explorar el Código

伊宁项目更改相关

1037015548@qq.com hace 1 año
padre
commit
b37b07b98d

+ 15 - 0
ruoyi-admin/src/main/resources/static/ruoyi/index.js

@@ -333,6 +333,21 @@ $(function() {
 
     $('.menuBlank').on('click', menuBlank);
 
+    var menuShou = false;
+    $("#shouqiMenu").on('click',function(){
+        if(!menuShou){
+            $("#comDiv").css("width","95.5%");
+            $("#headMenuDiv").css("width","95.5%");
+            $("#navMenuIndex").removeClass("navMenuIndexMeClass");
+            menuShou =true;
+        }else{
+            $("#comDiv").css("width","87%");
+            $("#headMenuDiv").css("width","87%");
+            $("#navMenuIndex").addClass("navMenuIndexMeClass");
+            menuShou =false;
+        }
+    });
+
     // 关闭选项卡菜单
     function closeTab() {
         var closeTabId = $(this).parents('.menuTab').data('id');

+ 7 - 4
ruoyi-admin/src/main/resources/templates/index.html

@@ -37,18 +37,21 @@
 		.contentPositClass{
 			position: relative!important;top: 100px!important;
 		}
+		.navMenuIndexMeClass{
+			width: 13%!important;
+		}
 	</style>
 </head>
 <body class="fixed-sidebar full-height-layout gray-bg" th:classappend="${isMobile} ? 'canvas-menu'" style="overflow: hidden">
 <div id="wrapper">
 
     <!--左侧导航开始-->
-    <nav id="navMenuIndex" class="navbar-default navbar-static-side" role="navigation">
+    <nav id="navMenuIndex" class="navbar-default navbar-static-side navMenuIndexMeClass" role="navigation">
         <div class="nav-close">
             <i class="fa fa-times-circle"></i>
         </div>
-        <a th:href="@{/index}" >
-            <li class="logo hidden-xs" style="height: 60px!important;background-color: rgb(4,35,61)!important;padding-top: 3%">
+        <a th:href="@{/index}">
+            <li class="logo hidden-xs" style="width: 100%!important;height: 60px!important;background-color: rgb(4,35,61)!important;padding-top: 3%">
 				<img th:src="@{favicon.ico}" style="height: 60%;display: inline-block"/>
                 <span class="" style="font-weight: bold">统一认证平台</span>
             </li>
@@ -213,7 +216,7 @@
         <div class="row border-bottom" id="comDiv" style="position: fixed!important;top: 0!important;right: 1%!important;width:87%!important;z-index: 99999999!important;">
             <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;height: 60px;background-color: rgb(4,35,61)!important;">
                 <div class="navbar-header" style="margin-top: 5px!important;">
-                    <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="#" title="收起菜单">
+                    <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" id="shouqiMenu" href="#" title="收起菜单">
                     	<i class="fa fa-bars"></i>
                     </a>
                 </div>