修改系统名称

This commit is contained in:
BianLzhaoMin 2025-05-26 09:14:59 +08:00
parent a4ea65f432
commit d8bb6ec57e
2 changed files with 128 additions and 122 deletions

View File

@ -2,39 +2,42 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<title>后台管理系统</title> <!-- <title>后台管理系统</title> -->
<title>项目一体化作战动态管控平台</title>
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.css" media="all" /> <link rel="stylesheet" href="css/font-awesome/css/font-awesome.css" media="all" />
<link rel="stylesheet" href="css/index2.css" media="all" /> <link rel="stylesheet" href="css/index2.css" media="all" />
<link rel="stylesheet" href="css/global.css" media="all" /> <link rel="stylesheet" href="css/global.css" media="all" />
<link rel="stylesheet" href="js/layui-v2.6.8/css/layui.css" media="all"> <link rel="stylesheet" href="js/layui-v2.6.8/css/layui.css" media="all">
<!-- <link rel="stylesheet" href="layui/css/layui.css" media="all" />--> <!-- <link rel="stylesheet" href="layui/css/layui.css" media="all" />-->
</head> </head>
<style> <style>
.layui-nav-itemed>.layui-nav-child { .layui-nav-itemed>.layui-nav-child {
background-color: rgba(0, 0, 0, 0.01) !important; background-color: rgba(0, 0, 0, 0.01) !important;
} }
.layui-nav-tree .layui-nav-child dd { .layui-nav-tree .layui-nav-child dd {
margin: 0; margin: 0;
margin-left: 15px; margin-left: 15px;
} }
</style> </style>
<body>
<body>
<div class="layui-layout layui-layout-admin" style="border-bottom: solid 5px #eeecec;height: 65px;"> <div class="layui-layout layui-layout-admin" style="border-bottom: solid 5px #eeecec;height: 65px;">
<!-- 标题栏 --> <!-- 标题栏 -->
<div class="layui-header header header-demo" style="background-color: #00377A;height: 65px;"> <div class="layui-header header header-demo" style="background-color: #00377A;height: 65px;">
<div class="layui-main"> <div class="layui-main">
<div class="admin-login-box"> <div class="admin-login-box">
<a class="logo" style="left: 0;" href="javascript:void(0)"> <a class="logo" style="left: 0;" href="javascript:void(0)">
<span style="font-size: 22px;color: #fff;letter-spacing: 2px;">后台管理系统</span> <span style="font-size: 22px;color: #fff;letter-spacing: 2px;">项目一体化作战动态管控平台</span>
</a> </a>
<div class="admin-side-toggle" style="display: none;"> <div class="admin-side-toggle" style="display: none;">
<i class="fa fa-bars" aria-hidden="true"></i> <i class="fa fa-bars" aria-hidden="true"></i>
@ -42,7 +45,7 @@
</div> </div>
<ul class="layui-nav" pc style="background-color: transparent !important;"> <ul class="layui-nav" pc style="background-color: transparent !important;">
<li class="layui-nav-item"> <li class="layui-nav-item">
<!-- <a href='javascript:;' lay-id="-997" data-url="pages/notice/noticePubList.html"><i class="fa fa-envelope-o" aria-hidden="true" title="公告" unreadNotice></i></a>--> <!-- <a href='javascript:;' lay-id="-997" data-url="pages/notice/noticePubList.html"><i class="fa fa-envelope-o" aria-hidden="true" title="公告" unreadNotice></i></a>-->
</li> </li>
<li class="layui-nav-item" pc> <li class="layui-nav-item" pc>
<a href="javascript:;" style="color: #fff !important;" class="admin-header-user"> <a href="javascript:;" style="color: #fff !important;" class="admin-header-user">
@ -50,14 +53,16 @@
<span style="color: #fff !important;"></span> <span style="color: #fff !important;"></span>
</a> </a>
<dl class="layui-nav-child"> <dl class="layui-nav-child">
<!-- <dd>--> <!-- <dd>-->
<!-- <a href='javascript:;' lay-id="-999" data-url="pages/user/updateMyself.html"><i class="fa fa-user-circle" aria-hidden="true"></i> 个人信息</a>--> <!-- <a href='javascript:;' lay-id="-999" data-url="pages/user/updateMyself.html"><i class="fa fa-user-circle" aria-hidden="true"></i> 个人信息</a>-->
<!-- </dd>--> <!-- </dd>-->
<dd> <dd>
<a href='javascript:;' lay-id="-998" onclick="changeUserPwd()"><i class="fa fa-drupal" aria-hidden="true"></i> 修改密码</a> <a href='javascript:;' lay-id="-998" onclick="changeUserPwd()"><i class="fa fa-drupal"
aria-hidden="true"></i> 修改密码</a>
</dd> </dd>
<dd> <dd>
<a href="javascript:;" onclick="logout()"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出</a> <a href="javascript:;" onclick="logout()"><i class="fa fa-sign-out"
aria-hidden="true"></i> 退出</a>
</dd> </dd>
</dl> </dl>
</li> </li>

View File

@ -1,28 +1,28 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0"> <meta http-equiv="Expires" content="0">
<title>登录</title> <title>登录</title>
<link href="css/login.css" type="text/css" rel="stylesheet"> <link href="css/login.css" type="text/css" rel="stylesheet">
</head> </head>
<body> <body>
<div class="login"> <div class="login">
<div class="message">后台管理系统</div> <!-- <div class="message">后台管理系统</div> -->
<div class="message">项目一体化作战动态管控平台</div>
<div id="darkbannerwrap"></div> <div id="darkbannerwrap"></div>
<form id="login-form" method="post" onsubmit="return false;"> <form id="login-form" method="post" onsubmit="return false;">
<input id="username" name="username" placeholder="用户名" type="text" <input id="username" name="username" placeholder="用户名" type="text" autocomplete="off">
autocomplete="off">
<hr class="hr15"> <hr class="hr15">
<input id="password" name="password" placeholder="密码" type="password" <input id="password" name="password" placeholder="密码" type="password" autocomplete="off">
autocomplete="off">
<hr class="hr15"> <hr class="hr15">
<button style="width: 100%;" type="submit" <button style="width: 100%;" type="submit" onclick="login(this)">登录</button>
onclick="login(this)">登录</button>
<hr class="hr20"> <hr class="hr20">
<span id="info" style="color: red"></span> <span id="info" style="color: red"></span>
</form> </form>
@ -41,12 +41,12 @@
var token = localStorage.getItem("token"); var token = localStorage.getItem("token");
if (token != null && token.trim().length != 0) { if (token != null && token.trim().length != 0) {
$.ajax({ $.ajax({
type : 'get', type: 'get',
url : ctxPath + '/users/current?token=' + token, url: ctxPath + '/users/current?token=' + token,
success : function(data) { success: function (data) {
location.href = ctxPath +'/index.html'; location.href = ctxPath + '/index.html';
}, },
error : function(xhr, textStatus, errorThrown) { error: function (xhr, textStatus, errorThrown) {
console.log(xhr); console.log(xhr);
var msg = xhr.responseText; var msg = xhr.responseText;
var response = JSON.parse(msg); var response = JSON.parse(msg);
@ -69,17 +69,17 @@
$(obj).attr("disabled", false); $(obj).attr("disabled", false);
} else { } else {
$.ajax({ $.ajax({
type : 'post', type: 'post',
url : ctxPath + '/login', url: ctxPath + '/login',
data : { data: {
username:encryptCBC(username), username: encryptCBC(username),
password:encryptCBC(password) password: encryptCBC(password)
}, },
success : function(data) { success: function (data) {
localStorage.setItem("token", data.token); localStorage.setItem("token", data.token);
location.href = ctxPath + '/index.html'; location.href = ctxPath + '/index.html';
}, },
error : function(xhr, textStatus, errorThrown) { error: function (xhr, textStatus, errorThrown) {
var msg = xhr.responseText; var msg = xhr.responseText;
var response = JSON.parse(msg); var response = JSON.parse(msg);
$("#info").html(response.message); $("#info").html(response.message);
@ -90,4 +90,5 @@
} }
} }
</script> </script>
</html> </html>