From 1590b582336bb701ec2dee24cc9465b819bca2b1 Mon Sep 17 00:00:00 2001
From: chenhuan <czj123456>
Date: 星期二, 28 五月 2024 17:41:16 +0800
Subject: [PATCH] logo收缩
---
javaweb-plus/javaweb-admin/src/main/resources/static/css/style.css | 1 -
javaweb-plus/javaweb-admin/src/main/resources/templates/index.html | 11 ++++++++---
javaweb-plus/javaweb-admin/src/main/resources/static/images/minilogo.png | 0
javaweb-plus/javaweb-admin/src/main/resources/static/ruoyi/index.js | 4 ++++
javaweb-plus/javaweb-admin/src/main/resources/templates/main.html | 1 +
5 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/static/css/style.css b/javaweb-plus/javaweb-admin/src/main/resources/static/css/style.css
index 7150c80..c492ed5 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/static/css/style.css
+++ b/javaweb-plus/javaweb-admin/src/main/resources/static/css/style.css
@@ -400,7 +400,6 @@
body.mini-navbar .navbar-static-side {
width: 70px;
}
-
body.mini-navbar .profile-element, body.mini-navbar .nav-label, body.mini-navbar .navbar-default .nav li a span {
display: none;
}
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/static/images/minilogo.png b/javaweb-plus/javaweb-admin/src/main/resources/static/images/minilogo.png
new file mode 100644
index 0000000..a0dde6a
--- /dev/null
+++ b/javaweb-plus/javaweb-admin/src/main/resources/static/images/minilogo.png
Binary files differ
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/static/ruoyi/index.js b/javaweb-plus/javaweb-admin/src/main/resources/static/ruoyi/index.js
index f0a79f9..b69245b 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/static/ruoyi/index.js
+++ b/javaweb-plus/javaweb-admin/src/main/resources/static/ruoyi/index.js
@@ -62,6 +62,8 @@
function SmoothlyMenu() {
if (!$('body').hasClass('mini-navbar')) {
+ $("#minilogo").css({"display":"none"});
+ $("#logo").css({"display":"block"});
$('#side-menu').hide();
$(".sidebar-collapse .logo").removeClass("hide");
setTimeout(function() {
@@ -69,6 +71,8 @@
},
100);
} else if ($('body').hasClass('fixed-sidebar')) {
+ $("#minilogo").css({"display":"block"});
+ $("#logo").css({"display":"none"});
$('#side-menu').hide();
$(".sidebar-collapse .logo").addClass("hide");
setTimeout(function() {
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html b/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
index 6b0a52d..567de64 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
+++ b/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
@@ -31,11 +31,16 @@
<!-- <li class="logo">-->
<!-- <span class="logo-lg" >閽绘帰宸ョ▼骞冲彴</span>-->
<!-- </li>-->
- <li style="margin: 36px auto;text-align: center">
+ <li id="logo" style="margin: 36px auto;text-align: center">
<img th:src="@{/images/logo.png}">
</li>
</a>
- <li>
+ <li id="minilogo" style="display: none;height: 100px;align-content: center;">
+ <a style="text-align: center;padding: 0;" th:href="@{/index}">
+ <img th:src="@{/images/minilogo.png}">
+ </a>
+ </li>
+<!-- <li>-->
<!-- <div class="user-panel">-->
<!-- <a class="menuItem" title="涓汉涓績" th:href="@{/system/user/profile}"> -->
<!-- <div class="hide" th:text="涓汉涓績"></div>-->
@@ -173,7 +178,7 @@
<div class="row border-bottom">
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
- <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="#" title="鏀惰捣鑿滃崟">
+ <a class="navbar-minimalize minimalize-styl-2" style="color:#565656;" href="#" title="鏀惰捣鑿滃崟">
<i class="fa fa-bars"></i>
</a>
</div>
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/templates/main.html b/javaweb-plus/javaweb-admin/src/main/resources/templates/main.html
index 2ab0029..ae6e881 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/templates/main.html
+++ b/javaweb-plus/javaweb-admin/src/main/resources/templates/main.html
@@ -538,6 +538,7 @@
map.openInfoWindow(markerInfoWin, point); //寮�鍚俊鎭獥鍙�
}
+
//鎬昏繘搴︿华琛ㄧ洏
function totalProcess() {
var Chart1 = echarts.init(document.getElementById('Chart1'));
--
Gitblit v1.9.1