From c4b2cfbdc4b31a6e37a9b51c5f69620bd5e7841f Mon Sep 17 00:00:00 2001
From: pjb <pjb123456>
Date: 星期六, 23 八月 2025 08:38:58 +0800
Subject: [PATCH] wcs功能完善
---
src/main/webapp/views/login.html | 32 +++++++++++++++++++++-----------
1 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html
index 37fa7c5..aca907d 100644
--- a/src/main/webapp/views/login.html
+++ b/src/main/webapp/views/login.html
@@ -4,6 +4,8 @@
<meta charset="UTF-8">
<title>绯荤粺鐧诲綍</title>
<link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
+ <link rel="icon" type="image/x-icon" href="../static/images/wcs_logo.png" />
+ <link rel="stylesheet" href="../static/css/animate.min.css">
<script type="text/javascript" src="../static/layui/layui.js"></script>
<script type="text/javascript" src="../static/js/common.js"></script>
<style>
@@ -13,8 +15,9 @@
body.login-bg {
color: #777;
height: 100%;
- background-image: linear-gradient(to right, #ff9569 0%, #e92758 100%);
- /*background-image: linear-gradient(-90deg, #29bdd9 0%, #276ace 100%);*/
+ /*background-image: linear-gradient(to right, #ff9569 0%, #e92758 100%);*/
+ /*background-image: linear-gradient(-90deg, #a2e7f3 0%, #98baee 100%);*/
+ background-image: url("../static/images/login.png");
/*background: -webkit-linear-gradient(red, blue); !* Safari 5.1 - 6.0 *!;*/
/*background-image: url("../static/image/login_bg.jpg");*/
/*background-repeat: no-repeat;*/
@@ -30,19 +33,21 @@
left: 50%;
margin-top: -210px;
margin-left: -220px;
- width: 440px;
- min-height: 420px;
+ width: 400px;
+ min-height: 380px;
padding: 50px;
text-align: center;
border-radius: 5px;
-
+ box-shadow: 0px 0px 10px rgb(168, 165, 165);
transform-origin: 50% 50%;
- animation: loading 1s 0s forwards;
+ /*animation: loading 1s 0s forwards;*/
transform: rotateX(0deg);
}
#login-wrapper h2 {
+ color: rgba(64,158,255,0.9);
font-size: 26px;
+ font-weight: bold;
margin-bottom: 30px;
}
@@ -71,7 +76,7 @@
font-size: 18px;
}
.layui-btn-normal {
- background-color: #0767aa;
+ background-color: rgba(64,158,255,0.9);
font-size: 20px;
border-radius: 4px;
height: 52px;
@@ -100,9 +105,9 @@
}
</style>
</head>
-<body class="login-bg">
+<body class="login-bg animsition">
-<div id="login-wrapper">
+<div id="login-wrapper" class="animate__animated animate__bounceInDown">
<header>
<h2>WCS 绯荤粺鐧诲綍</h2>
</header>
@@ -126,7 +131,7 @@
<!--</div>-->
</div>
<div class="layui-form-item login-submit">
- <button id="login-button" class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit="" lay-filter="login">鐧� 褰�</button>
+ <button id="login-button" class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit="" lay-filter="login">鐧�     褰�</button>
</div>
</div>
@@ -207,7 +212,11 @@
if (res.code === 200){
localStorage.setItem("token", res.data.token);
localStorage.setItem("username", res.data.username);
- window.location.href = "index.html";
+ if (res.data.username==="dsj1"){
+ window.location.href = "indexTV.html";
+ }else {
+ window.location.href = "index.html";
+ }
} else {
layer.msg(res.msg, {offset: '150px'});
}
@@ -224,4 +233,5 @@
});
</script>
+<script type></script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1