修改登录和基础功能样式,目前已经支持钉钉登录和自定义登录注册

This commit is contained in:
zsc
2026-05-16 14:21:32 +08:00
parent 7ba21d6413
commit de0d0cc6be
17 changed files with 588 additions and 50 deletions

View File

@@ -433,6 +433,217 @@ h2 {
color: #856404;
}
.login-container {
max-width: 400px;
margin: 40px auto;
padding: 30px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-container h2 {
text-align: center;
margin-bottom: 30px;
color: #4a90d9;
}
.login-container .form-group {
margin-bottom: 20px;
}
.login-container .form-control {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.login-container .form-control:focus {
outline: none;
border-color: #4a90d9;
}
.login-container .btn-primary {
width: 100%;
padding: 12px;
background-color: #4a90d9;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}
.login-container .btn-primary:hover {
background-color: #3a80c9;
}
.login-link {
text-align: center;
margin-top: 20px;
color: #666;
}
.login-link a {
color: #4a90d9;
text-decoration: none;
}
.login-link a:hover {
text-decoration: underline;
}
.dingtalk-login {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
text-align: center;
}
.dingtalk-login p {
color: #999;
margin-bottom: 15px;
font-size: 14px;
}
.btn-dingtalk {
background-color: #1677ff;
color: white;
padding: 10px 20px;
border-radius: 4px;
text-decoration: none;
display: inline-block;
}
.btn-dingtalk:hover {
background-color: #0958d9;
}
.login-options {
display: flex;
flex-direction: column;
gap: 15px;
align-items: center;
margin-top: 30px;
}
.login-options .btn {
min-width: 200px;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #5c636a;
}
.error {
color: #dc3545;
font-size: 14px;
margin-top: 5px;
}
.form-group .error {
color: #dc3545;
font-size: 14px;
margin-top: 5px;
}
/* Toast 弹出提示 - Element UI 风格 */
.toast-container {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
pointer-events: none;
}
.toast {
background: white;
padding: 12px 20px;
border-radius: 4px;
box-shadow: 0 2px 12px rgba(0,0,0,0.15);
font-size: 14px;
min-width: 300px;
max-width: 500px;
text-align: center;
opacity: 0;
transform: translateY(-20px);
transition: all 0.3s ease;
pointer-events: auto;
}
.toast.show {
opacity: 1;
transform: translateY(0);
}
.toast-success {
background: #f0f9eb;
border: 1px solid #e1f3d8;
color: #67c23a;
}
.toast-warning {
background: #fdf6ec;
border: 1px solid #faecd8;
color: #e6a23c;
}
.toast-error {
background: #fef0f0;
border: 1px solid #fde2e2;
color: #f56c6c;
}
.toast-info {
background: #edf2fc;
border: 1px solid #d3d4d6;
color: #909399;
}
.toast .toast-icon {
margin-right: 8px;
}
/* 分页样式 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
margin-top: 30px;
padding: 20px 0;
}
.btn-page {
background-color: #4a90d9;
color: white;
padding: 8px 16px;
border-radius: 4px;
text-decoration: none;
font-size: 14px;
}
.btn-page:hover {
background-color: #3a80c9;
}
.page-info {
color: #666;
font-size: 14px;
}
.question-preview {
background: #f8f9fa;
padding: 20px;