Browse Source

new 新增 页面展示图片

bzd_lxf 5 months ago
parent
commit
c2d9fd22e3

+ 4 - 4
health-admin/src/main/resources/static/css/login.css

@@ -3,7 +3,7 @@ html {
 }
 body.signin {
 	height:auto;
-	background:url(../img/login-background.jpg) no-repeat center fixed;
+	background:url(../img/login-background.png) no-repeat center fixed;
 	-webkit-background-size:cover;
 	-moz-background-size:cover;
 	-o-background-size:cover;
@@ -163,13 +163,13 @@ body.signin {
 body .layer-ext-moon-msg[type="dialog"]{
     min-width: 100px !important;
 }
-body .layer-ext-moon-msg { 
+body .layer-ext-moon-msg {
     background-color: rgba(0,0,0,0.6);
     color: #fff;
     border: none;
 }
 
-body .layer-ext-moon-msg .layui-layer-content{ 
+body .layer-ext-moon-msg .layui-layer-content{
     padding: 12px 25px;
     text-align: center;
-}
+}

File diff suppressed because it is too large
+ 0 - 0
health-admin/src/main/resources/static/css/login.min.css


+ 31 - 0
health-admin/src/main/resources/static/health/js/input-styles.js

@@ -0,0 +1,31 @@
+// disable-autocomplete.js
+document.addEventListener("DOMContentLoaded", function() {
+    const inputs = document.querySelectorAll('.styled-input');
+
+    // 遍历所有输入框并添加事件监听器
+    inputs.forEach(function(input) {
+        // 输入框数据数据提交后浏览器会记录信息 不进行提示已输入过的数据信息
+        input.setAttribute('autocomplete', 'off');
+        // 当鼠标进入输入框时改变背景色
+        input.addEventListener('mouseover', function() {
+            this.style.backgroundColor = '#f0f0f0'; // 浅灰色背景
+        });
+
+        // 当鼠标离开输入框时调用公共函数
+        input.addEventListener('mouseout', function() {
+            this.style.backgroundColor = ''; // 清空背景色属性,使用默认值
+        });
+        var initialValue = input.getAttribute('data-default-value') || ''; // 获取默认值,默认为空字符串
+        input.addEventListener('change', function() {
+            var currentValue = this.value;
+            if (currentValue !== '' && currentValue !== initialValue) {
+                // 当值改变时,添加一个类来标识
+                this.classList.add('changed');
+                initialValue = currentValue; // 更新初始值
+            } else {
+                // 如果值回到初始值,则移除标识类
+                this.classList.remove('changed');
+            }
+        });
+    });
+});

+ 0 - 2
health-admin/src/main/resources/static/health/login.js

@@ -18,8 +18,6 @@ function login() {
         return false;
     }
 
-    console.log("----------==");
-    console.log("----------=="+ctx);
     $.ajax({
         type: "post",
         url: ctx + "login",

BIN
health-admin/src/main/resources/static/img/log.png


BIN
health-admin/src/main/resources/static/img/login-background.png


BIN
health-admin/src/main/resources/static/img/logo1.png


+ 2 - 2
health-admin/src/main/resources/templates/index-topnav.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="renderer" content="webkit">
-    <title>英招在康后台管理系统</title>
+    <title>杭州英招在康后台管理系统</title>
     <!-- 避免IE使用兼容模式 -->
  	<meta http-equiv="X-UA-Compatible" content="IE=edge">
     <link th:href="@{favicon.ico}" rel="shortcut icon"/>
@@ -28,7 +28,7 @@
         </div>
         <a th:href="@{/index}">
             <li class="logo hidden-xs">
-				<img th:src="@{/img/logo.jpg}" class="logo-lg" width="100%" height="100%" style="padding-left:0px;">
+				<img th:src="@{/img/log.png}" class="logo-lg" width="100%" height="100%" style="padding-left:0px;">
                 <!--<span class="logo-lg">Aa</span>-->
             </li>
          </a>

+ 1 - 1
health-admin/src/main/resources/templates/index.html

@@ -27,7 +27,7 @@
         </div>
         <a th:href="@{/index}">
             <li class="logo hidden-xs">
-				<img th:src="@{/img/logo.jpg}" class="logo-lg" width="100%" height="100%" style="padding-left:0px;">
+				<img th:src="@{/img/log.png}" class="logo-lg" width="100%" height="100%" style="padding-left:0px;">
                 <!--&lt;!&ndash;<span class="logo-lg">英招在康</span>&ndash;&gt;-->
             </li>
          </a>

+ 15 - 7
health-admin/src/main/resources/templates/login.html

@@ -3,8 +3,8 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
-    <title>登录健康管理后台系统</title>
-    <meta name="description" content="健康管理后台系统">
+    <title>杭州英招在康健康管理后台系统</title>
+    <meta name="description" content="杭州英招在康健康管理后台系统">
     <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
     <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
     <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
@@ -28,11 +28,15 @@
             <div class="col-sm-7">
                 <div class="signin-info">
                     <div class="logopanel m-b">
-                        <h1><img alt="[ 健康管理 ]" src="../static/aa.png" th:src="@{/aa.png}"></h1>
+                        <h1><img alt="[ 健康管理 ]" src="../static/img/logo1.png" th:src="@{/img/logo1.png}" width="90%" height="30%"></h1>
                     </div>
                     <div class="m-b"></div>
-                    <h4>欢迎使用 <strong>健康管理 后台管理系统</strong></h4>
                     <ul class="m-b">
+                        <li><br></li>
+                        <li><br></li>
+                    </ul>
+                    <h1><strong style="color: #1a7bb9">&nbsp;&nbsp;&nbsp;&nbsp;数字化药店-患者管理平台</strong></h1>
+                    <ul class="m-b" hidden>
                         <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li>
                         <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li>
                         <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Shiro</li>
@@ -44,8 +48,9 @@
             </div>
             <div class="col-sm-5">
                 <form id="signupForm" autocomplete="off">
-                    <h4 class="no-margins">登录:</h4>
-                    <p class="m-t-md">你若不离不弃,我必生死相依</p>
+                    <br>
+                    <br>
+                    <h4 class="no-margins" style="color: #1a7bb9">登录:</h4>
                     <input type="text"     name="username" class="form-control uname"     placeholder="用户名"    />
                     <input type="password" name="password" class="form-control pword"     placeholder="密码"    />
 					<div class="row m-t" th:if="${captchaEnabled==true}">
@@ -59,9 +64,12 @@
 						</div>
 					</div>
                     <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">
-				        <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>
+				        <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme" style="color: #1a7bb9">记住我</label>
 				    </div>
                     <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
+
+                    <br>
+                    <br>
                 </form>
             </div>
         </div>

+ 8 - 7
health-admin/src/main/resources/templates/main.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <!--360浏览器优先以webkit内核解析-->
-    <title>若依介绍</title>
+    <title>首页</title>
     <link rel="shortcut icon" href="favicon.ico">
     <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
     <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
@@ -12,23 +12,23 @@
 </head>
 
 <body class="gray-bg">
-    <div class="row border-bottom white-bg dashboard-header">
-        <!--<div class="col-sm-12">
+    <!--<div class="row border-bottom white-bg dashboard-header">
+        &lt;!&ndash;<div class="col-sm-12">
             <blockquote class="text-warning" style="font-size:14px">
 
             </blockquote>
 
             <hr>
-        </div>-->
+        </div>&ndash;&gt;
         <div class="col-sm-3">
             <h2>Hello</h2>
             <br>
-            <img th:src="@{/img/log.jpg}" width="100%" style="max-width:264px;">
+            <img th:src="@{/img/login-background.png}" width="100%" style="max-width:264px;">
             <br>
         </div>
         <div class="col-sm-5">
         </div>
-        <div class="col-sm-4">
+        <div class="col-sm-4" hidden>
             <h4>技术选型:</h4>
             <ol>
                 <li>核心框架:Spring Boot。</li>
@@ -42,7 +42,7 @@
             </ol>
         </div>
 
-    </div>
+    </div>-->
     <!--<div class="wrapper wrapper-content">
         <div class="row">
             <div class="col-sm-4">
@@ -66,6 +66,7 @@
             </div>
         </div>
     </div>-->
+    <img th:src="@{/img/login-background.png}" width="100%" height="100%" >
     <script th:src="@{/js/jquery.min.js}"></script>
     <script th:src="@{/js/bootstrap.min.js}"></script>
     <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>

Some files were not shown because too many files changed in this diff