新增主页,优化评查点结果一致性的显示效果

This commit is contained in:
2025-05-28 17:37:23 +08:00
parent 690d369f57
commit 08fb737cbf
10 changed files with 2596 additions and 458 deletions
+186
View File
@@ -0,0 +1,186 @@
/* 合同搜索页面样式 */
:root {
--primary-color: #00684a;
--primary-hover: #005a40;
--primary-light: rgba(0, 104, 74, 0.1);
--success-color: #52c41a;
--warning-color: #faad14;
--error-color: #ff4d4f;
--text-color: rgba(0, 0, 0, 0.85);
--text-secondary: rgba(0, 0, 0, 0.45);
--border-color: #f0f0f0;
--bg-gray: #f5f5f5;
--gradient-bg: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 100%);
}
.content-area {
@apply flex-1 p-6 overflow-y-auto;
}
.search-hero {
@apply text-center py-16 bg-gradient-to-r from-green-50 to-blue-50 rounded-2xl mb-8;
}
.search-title {
@apply text-3xl font-semibold text-gray-800 mb-3;
}
.search-subtitle {
@apply text-base text-gray-600 mb-10;
}
.search-container {
@apply max-w-xl mx-auto relative;
}
.search-box {
@apply bg-white border-2 border-gray-200 rounded-xl p-4 shadow-md transition-all;
}
.search-box:focus-within {
@apply border-green-600 shadow-lg;
}
.search-textarea {
@apply w-full min-h-[80px] border-none outline-none resize-vertical text-base leading-relaxed;
}
.search-actions {
@apply flex justify-between items-center mt-3 pt-3 border-t border-gray-100;
}
.search-tips {
@apply text-xs text-gray-500;
}
.search-btn {
@apply bg-green-700 text-white border-none rounded-lg py-2.5 px-6 text-sm font-medium cursor-pointer transition-all flex items-center gap-1.5;
}
.search-btn:hover {
@apply bg-green-800 transform -translate-y-0.5;
}
.quick-categories {
@apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4 mt-10;
}
.category-card {
@apply bg-white rounded-xl p-5 text-center cursor-pointer transition-all border border-gray-100 shadow-sm;
}
.category-card:hover {
@apply transform -translate-y-0.5 shadow-md border-green-700;
}
.category-icon {
@apply w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center mx-auto mb-3 text-green-700;
}
.category-title {
@apply text-base font-medium mb-1;
}
.category-count {
@apply text-xs text-gray-500;
}
.contract-search-container {
@apply w-full p-6 bg-white rounded-lg shadow-sm;
}
.search-header {
@apply mb-6;
}
.search-description {
@apply text-gray-600 text-sm;
}
.search-form {
@apply mb-6;
}
.search-form-row {
@apply flex flex-wrap items-center gap-4 mb-4;
}
.search-form-item {
@apply flex-grow min-w-[200px];
}
.search-form-label {
@apply block text-sm font-medium text-gray-700 mb-1;
}
.search-form-input {
@apply w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}
.search-form-select {
@apply w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}
.search-form-date {
@apply w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}
.search-buttons {
@apply flex justify-end gap-4 mt-6;
}
.search-button {
@apply px-4 py-2 rounded-md font-medium;
}
.search-button-primary {
@apply bg-blue-600 text-white hover:bg-blue-700;
}
.search-button-secondary {
@apply bg-gray-200 text-gray-700 hover:bg-gray-300;
}
.search-results {
@apply mt-8;
}
.search-results-header {
@apply flex justify-between items-center mb-4;
}
.search-results-title {
@apply text-lg font-medium text-gray-800;
}
.search-results-count {
@apply text-gray-600;
}
.search-results-table {
@apply w-full border-collapse;
}
.search-results-table th {
@apply px-4 py-3 bg-gray-100 text-left text-xs font-medium text-gray-600 uppercase tracking-wider;
}
.search-results-table td {
@apply px-4 py-3 border-t border-gray-200 text-sm;
}
.search-results-actions {
@apply flex gap-2;
}
.search-results-action {
@apply text-blue-600 hover:text-blue-800 cursor-pointer;
}
.no-results {
@apply py-12 text-center text-gray-500;
}
.pagination-container {
@apply mt-6 flex justify-center;
}
+27 -25
View File
@@ -2,8 +2,9 @@
.home-page {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f0f7f4;
height: 100vh;
/* height: 100%; */
background-color: #ffffff;
}
/* 头部样式 */
@@ -11,7 +12,7 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 2rem;
padding: 0.75rem 1rem;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
@@ -22,19 +23,19 @@
}
.logo {
height: 36px;
margin-right: 0.75rem;
height: 60px;
margin-right: 0.15rem;
}
.logo-text {
font-size: 1.125rem;
font-weight: 600;
font-size: 1.8rem;
font-weight: 800;
color: #333;
margin-right: 0.5rem;
}
.logo-text-en {
font-size: 0.75rem;
margin-top: -0.2rem;
font-size: 0.85rem;
color: #666;
font-weight: 500;
text-transform: uppercase;
@@ -48,7 +49,7 @@
}
.datetime {
font-size: 0.875rem;
font-size:1rem;
color: #666;
}
@@ -72,13 +73,18 @@
}
/* 主要内容区域 */
.main-content {
.index-main-content {
border-radius: 0.5rem 0.5rem 0 0;
height: 100%;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 3rem 1.5rem;
justify-content: center;
margin: 1rem;
padding-bottom: 0;
margin-bottom: 0;
background-color: #f0f7f4;
}
.welcome-text {
@@ -98,11 +104,10 @@
.module-card {
display: flex;
flex-direction: column;
align-items: center;
width: 250px;
padding: 2rem 1.5rem;
background-color: white;
background: linear-gradient(to bottom, #ebebeb, #ffffff);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
@@ -111,19 +116,11 @@
.module-card:hover {
transform: translateY(-5px);
border: 1px solid #269b6c;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.module-icon {
width: 64px;
height: 64px;
margin-bottom: 1.5rem;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.contract-icon {
/* .contract-icon {
background-image: url('/images/contract-icon.svg');
}
@@ -133,9 +130,10 @@
.ai-icon {
background-image: url('/images/ai-icon.svg');
}
} */
.module-name {
margin-left: 1rem;
font-size: 1.125rem;
font-weight: 500;
color: #333;
@@ -144,8 +142,12 @@
/* 底部山水背景 */
.footer {
height: 200px;
margin: 1rem;
margin-top: 0;
overflow: hidden;
position: relative;
background-color: #f0f7f4;
border-radius: 0 0 0.5rem 0.5rem;
}
.mountains-bg {