UI、logo

This commit is contained in:
吉浩茹
2026-02-02 14:44:36 +08:00
parent 9ec5552307
commit b2973c6d28
30 changed files with 819 additions and 77 deletions

View File

@ -4,33 +4,203 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<style type="text/css">
.select2-container .select2-selection--single {
height: 34px;
line-height: 34px;
/* 覆盖Bootstrap Modal样式以匹配APP风格 */
.modal-dialog {
width: 46%;
margin: 30px auto;
}
@media (max-width: 768px) {
.modal-dialog {
width: 94%;
margin: 10px auto;
}
}
.select2-selection__arrow {
margin-top: 3px;
.modal-content {
border-radius: 16px;
border: none;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
overflow: hidden;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
/*.layout{*/
/* display: flex;*/
/* padding-left: 15px;*/
/*}*/
.modal-header {
/* 截图中的蓝绿渐变背景 */
background: linear-gradient(135deg, #4CD964 0%, #20E2D7 50%, #12B7F5 100%);
color: white;
padding: 20px 25px;
border-bottom: none;
}
.modal-title {
font-weight: 600;
font-size: 18px;
letter-spacing: 1px;
}
.close {
color: white;
opacity: 0.8;
text-shadow: none;
font-size: 28px;
margin-top: -5px;
}
.close:hover {
color: #fff;
opacity: 1;
}
.modal-body {
padding: 25px 30px;
background-color: #f9fbfd; /* 极淡的背景色 */
}
/* 表单样式优化 */
.form-horizontal {
padding-top: 20px;
padding-top: 10px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
font-weight: 500;
color: #555;
font-size: 14px;
padding-top: 10px !important; /* 垂直居中 */
}
.form-control {
border-radius: 8px;
border: 1px solid #e0e0e0;
box-shadow: none;
height: 40px;
background-color: #fff;
transition: all 0.3s;
}
.form-control:focus {
border-color: #20E2D7;
box-shadow: 0 0 0 3px rgba(32, 226, 215, 0.1);
background-color: #fff;
}
/* 只读输入框样式 */
.form-control[readonly] {
background-color: #f5f7fa;
color: #777;
cursor: pointer; /* 如果有点击事件 */
}
/* Select2 样式覆盖 */
.select2-container .select2-selection--single {
height: 40px !important;
border: 1px solid #e0e0e0 !important;
border-radius: 8px !important;
line-height: 40px !important;
outline: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height: 40px !important;
color: #555;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height: 38px !important;
right: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: white;
background-color: #e3f2fd;
border: 1px solid #bbdefb;
color: #1e88e5;
border-radius: 4px;
margin-top: 7px;
}
.select2-container .select2-selection--multiple {
min-height: 40px !important;
border: 1px solid #e0e0e0 !important;
border-radius: 8px !important;
}
/* 底部按钮区 */
.modal-footer {
border-top: none;
padding: 20px 30px 30px;
background-color: #f9fbfd;
text-align: right;
}
.btn {
border-radius: 25px; /* 圆角胶囊按钮 */
padding: 8px 30px;
font-size: 14px;
border: none;
font-weight: 500;
letter-spacing: 1px;
transition: transform 0.2s, box-shadow 0.2s;
}
.btn:active {
transform: scale(0.98);
}
.btn-default {
background-color: #edf2f7;
color: #666;
}
.btn-default:hover {
background-color: #e2e8f0;
}
.btn-primary {
/* 按钮也使用渐变 */
background: linear-gradient(90deg, #20E2D7 0%, #12B7F5 100%);
color: white;
box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
}
.btn-primary:hover {
background: linear-gradient(90deg, #1CD1C7 0%, #10A6DF 100%);
box-shadow: 0 6px 15px rgba(18, 183, 245, 0.4);
color: white;
}
/* 日期选择器图标 */
.input-group-addon {
background-color: #fff;
border: 1px solid #e0e0e0;
border-left: none;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
color: #12B7F5;
}
.input-group .form-control {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
/* 其他 */
.right {
margin-left: 50px;
}
/* 必填项星号颜色 */
.control-label:before {
/*content: "*";*/
/*color: #f56c6c;*/
/*margin-right: 4px;*/
}
/* 针对现有HTML中写在label里的*号进行颜色处理,如果有的话 */
.control-label {
position: relative;
}
</style>
<script type="text/javascript">
@ -71,7 +241,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
return repo.text;
} // 函数用于呈现当前的选择
});
$(".select2-selection--single").css({'height': '30px', 'paddingTop': '4px'});
/* $(".select2-selection--single").css({'height': '30px', 'paddingTop': '4px'}); */
select_3.val('${bean.jobType}'.split(",")).trigger("change");
}
@ -305,7 +475,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
</script>
<div class="modal fade" id="subModal">
<div class="modal-dialog" style="width: 46%">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
@ -314,7 +484,7 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12 col-xs-13">
<div class="col-md-12 col-xs-12">
<!-- 新增界面formid强制为editForm -->
<form class="form-horizontal" id="editForm" enctype="multipart/form-data">
<div id="alertDiv"></div>