You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

105 lines
3.1 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录页面</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.login-container {
background-color: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
width: 100%;
max-width: 400px;
}
h2 {
text-align: center;
margin-bottom: 30px;
color: #3498db;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
.button {
width: 100%;
padding: 12px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.button:hover {
background-color: #2980b9;
}
.error-message {
color: red;
margin-top: 10px;
text-align: center;
}
.back-link {
display: block;
text-align: center;
margin-top: 20px;
color: #3498db;
text-decoration: none;
}
.back-link:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="login-container">
<h2>用户登录</h2>
<form id="login-form">
<div class="form-group">
<label for="mobile">手机号</label>
<input type="text" id="mobile" name="mobile" placeholder="请输入手机号" required>
</div>
<div class="form-group">
<label for="pwd">密码</label>
<input type="password" id="pwd" name="pwd" placeholder="请输入密码" required>
</div>
<button type="submit" class="button">登录</button>
<div id="error-message" class="error-message"></div>
<a href="../index.html" class="back-link">返回首页</a>
<a href="register.html" class="back-link" style="margin-top: 10px;">没有账号?点击注册</a>
</form>
</div>
<script src="../models/employee.js"></script>
<script src="../framework.js"></script>
<script src="../api/api.js"></script>
<script src="login.js"></script>
</body>
</html>