综述: 优化内容管理模块UI样式和菜单结构

- 在商家端web/index.html中完善内容管理菜单项,增加公告管理、购物须知管理和轮播图管理三个子菜单
- 优化轮播图管理页面的样式设计,统一颜色方案和布局间距
- 调整页面结构,设置深绿色主题背景和白色文字以提高可读性
- 完善响应式布局和按钮样式,增强用户交互体验
This commit is contained in:
linbin 2025-09-25 01:11:55 +08:00
parent bad1727fad
commit e0d9bfb3a6
2 changed files with 74 additions and 40 deletions

View File

@ -435,6 +435,32 @@
</a> </a>
</div> </div>
</li> </li>
<li class="menu-item">
<div class="menu-link" onclick="toggleSubmenu(this)">
<span class="menu-icon">
<i class="fas fa-file-alt"></i>
</span>
<span class="menu-text">内容管理</span>
<span class="menu-arrow">
<i class="fas fa-chevron-right"></i>
</span>
</div>
<div class="submenu">
<a href="#" class="submenu-link" onclick="loadContent('./内容管理/公告管理.html', this)">
<span class="submenu-icon"></span>
公告管理
</a>
<a href="#" class="submenu-link" onclick="loadContent('./内容管理/购物须知管理.html', this)">
<span class="submenu-icon"></span>
购物须知管理
</a>
<a href="#" class="submenu-link" onclick="loadContent('./内容管理/轮播图管理.html', this)">
<span class="submenu-icon"></span>
轮播图管理
</a>
</div>
</li>
</ul> </ul>
</aside> </aside>

View File

@ -16,18 +16,23 @@
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
background-color: #f5f5f5; background-color: #f5f5f5;
color: #333; color: #333;
width: 100%;
height: 100vh;
margin: 0;
} }
.container { .container {
max-width: 1400px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
padding: 20px; padding: 30px;
height: 100vh;
overflow-y: auto;
} }
.page-header { .page-header {
background: white; background: rgb(9, 84, 43);
padding: 16px 24px; padding: 16px 24px;
margin-bottom: 16px; margin-bottom: 30px;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} }
@ -35,21 +40,21 @@
.page-title { .page-title {
font-size: 24px; font-size: 24px;
font-weight: 600; font-weight: 600;
color: #262626; color: #fff;
} }
/* 主要内容区域 */ /* 主要内容区域 */
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; gap: 30px;
} }
/* 搜索过滤区域 */ /* 搜索过滤区域 */
.filter-section { .filter-section {
background: white; background: #fafafa;
padding: 24px; padding: 24px;
margin-bottom: 16px; margin-bottom: 30px;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} }
@ -57,8 +62,8 @@
.search-form { .search-form {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px; gap: 20px;
margin-bottom: 16px; margin-bottom: 20px;
} }
.form-item { .form-item {
@ -69,15 +74,15 @@
.form-label { .form-label {
font-size: 14px; font-size: 14px;
color: #666; color: #333;
font-weight: 500; font-weight: 500;
} }
.form-input { .form-input {
height: 40px; height: 40px;
padding: 0 12px; padding: 0 12px;
border: 1px solid #ddd; border: 1px solid #d9d9d9;
border-radius: 6px; border-radius: 4px;
font-size: 14px; font-size: 14px;
} }
@ -89,21 +94,22 @@
.button-group { .button-group {
display: flex; display: flex;
gap: 12px; gap: 10px;
} }
/* 按钮样式 */ /* 按钮样式 */
.btn { .btn {
height: 40px; padding: 10px 20px;
padding: 0 16px;
border: none; border: none;
border-radius: 6px; border-radius: 5px;
font-size: 14px; font-size: 14px;
font-weight: 500;
cursor: pointer; cursor: pointer;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transition: all 0.3s; transition: all 0.3s ease;
gap: 5px;
} }
.btn:disabled { .btn:disabled {
@ -118,17 +124,19 @@
.btn-primary:hover:not(:disabled) { .btn-primary:hover:not(:disabled) {
background: #40a9ff; background: #40a9ff;
transform: translateY(-2px);
} }
.btn-secondary { .btn-secondary {
background: white; background: white;
color: #666; color: #666;
border: 1px solid #ddd; border: 1px solid #d9d9d9;
} }
.btn-secondary:hover:not(:disabled) { .btn-secondary:hover:not(:disabled) {
border-color: #1890ff; border-color: #1890ff;
color: #1890ff; color: #1890ff;
transform: translateY(-2px);
} }
.btn-link { .btn-link {
@ -147,16 +155,16 @@
/* 操作按钮区域 */ /* 操作按钮区域 */
.action-section { .action-section {
display: flex; display: flex;
gap: 8px; gap: 10px;
} }
/* 表格区域 */ /* 表格区域 */
.table-section { .table-section {
background: white; background: #fff;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden; overflow: hidden;
margin-bottom: 16px; margin-bottom: 30px;
} }
.table-wrapper { .table-wrapper {
@ -174,19 +182,19 @@
padding: 12px 8px; padding: 12px 8px;
text-align: left; text-align: left;
font-weight: 600; font-weight: 600;
color: #666; color: #333;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #e8e8e8;
white-space: nowrap; white-space: nowrap;
} }
.data-table td { .data-table td {
padding: 12px 8px; padding: 12px 8px;
border-bottom: 1px solid #f9f9f9; border-bottom: 1px solid #e8e8e8;
vertical-align: middle; vertical-align: middle;
} }
.data-table tbody tr:hover { .data-table tbody tr:hover {
background: #f8f9fa; background: #e6f7ff;
} }
.banner-preview { .banner-preview {
@ -207,7 +215,7 @@
.status-enabled { .status-enabled {
background: #f6ffed; background: #f6ffed;
color: #52c41a; color: #52c41a;
border: 1px solid #b7eb8f; border: 1px solid #73d13d;
} }
.status-disabled { .status-disabled {
@ -218,7 +226,7 @@
.actions { .actions {
display: flex; display: flex;
gap: 8px; gap: 10px;
} }
/* 分页区域 */ /* 分页区域 */
@ -227,8 +235,8 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background: white; background: #fff;
border-top: 1px solid #f0f0f0; border-top: 1px solid #e8e8e8;
} }
.pagination-info { .pagination-info {
@ -239,7 +247,7 @@
.pagination-controls { .pagination-controls {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16px; gap: 20px;
} }
.page-size-selector { .page-size-selector {
@ -253,10 +261,10 @@
.page-size-select { .page-size-select {
height: 32px; height: 32px;
padding: 0 8px; padding: 0 8px;
border: 1px solid #ddd; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
background: white; background: #fff;
} }
.page-list { .page-list {
@ -273,12 +281,12 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border: 1px solid #ddd; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
transition: all 0.3s; transition: all 0.3s ease;
background: white; background: #fff;
color: #666; color: #666;
} }
@ -290,7 +298,7 @@
.page-item.active { .page-item.active {
background: #1890ff; background: #1890ff;
border-color: #1890ff; border-color: #1890ff;
color: white; color: #fff;
} }
.page-item.disabled { .page-item.disabled {
@ -322,7 +330,7 @@
width: 50px; width: 50px;
height: 32px; height: 32px;
padding: 0 8px; padding: 0 8px;
border: 1px solid #ddd; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
@ -399,7 +407,7 @@
padding: 16px 24px; padding: 16px 24px;
border-top: 1px solid #e8e8e8; border-top: 1px solid #e8e8e8;
display: flex; display: flex;
gap: 8px; gap: 10px;
justify-content: flex-end; justify-content: flex-end;
} }
@ -567,7 +575,7 @@
.form-row { .form-row {
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
gap: 12px; gap: 10px;
} }
.form-actions { .form-actions {
@ -576,7 +584,7 @@
.pagination-section { .pagination-section {
flex-direction: column; flex-direction: column;
gap: 12px; gap: 10px;
} }
.pagination-info { .pagination-info {