refactor: 清理废弃模块并重构管理端与全端代码

- 移除所有废弃的旧首页配置模块,包括destinationHero、demand相关、HomeExperience、vehicleService等表结构与代码,新增数据库迁移删除遗留表
- 重构管理端后台布局为标准RuoYi风格,新增Sidebar、Navbar、SettingsDrawer等组件,替换旧的过渡菜单实现
- 调整移动端响应断点为768px,更新布局相关测试用例,新增布局组件测试
- 删除OperationsTools发布/重置页面,移除/tools菜单入口,清理对应的API调用与测试代码
- 重构玩法模块编辑器:替换旧的图片手动输入框为图片上传组件,移除冗余的取消按钮
- 新增线索查询offset参数支持,完善查询参数处理逻辑
- 优化rbac菜单构建逻辑,新增可见性控制参数
- 修正管家编辑器提示文案,优化系统资源编辑器表单初始化逻辑
- 清理小程序端废弃的体验推荐组件与相关测试代码
- 更新文档与种子脚本,匹配新的API契约与使用说明
This commit is contained in:
duanshuwen committed 2026-08-26 23:24:28 +08:00
1 parent f6c5ad589f
commit fbf2c772a8
63 files changed
+2272 -1991

No files matched your search

+176 -17
View File
@@ -13,22 +13,9 @@
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7fb; }
button, input { font: inherit; }
.admin-shell { min-height: 100vh; }
.admin-aside { position: relative; display: flex; flex-direction: column; border-right: 1px solid #e9edf3; background: #fff; }
.brand { display: flex; align-items: center; gap: 11px; padding: 25px 22px 23px; border-bottom: 1px solid #f0f2f6; }
.brand strong { display: block; letter-spacing: .02em; font-size: 16px; }
.brand span { display: block; color: #94a3b8; font-size: 11px; margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #fff; background: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.sidebar-menu { border-right: 0; padding: 14px 10px; }
.sidebar-menu .el-menu-item, .sidebar-menu .el-sub-menu__title { border-radius: 8px; margin: 3px 0; color: #64748b; }
.sidebar-menu .el-menu-item.is-active { color: #1d4ed8; background: #eff6ff; font-weight: 650; }
.aside-note { padding: 16px 22px 20px; color: #94a3b8; font-size: 11px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; height: 88px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.eyebrow { margin: 0 0 7px; color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.admin-header h1, .page-intro h2 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.2; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.user-name { color: #475569; font-size: 13px; }
.admin-main { padding: 34px 40px 54px; }
.page-intro h2 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.2; }
.page-stack { max-width: 1220px; margin: 0 auto; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.page-intro-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@@ -73,6 +60,8 @@ button, input { font: inherit; }
.single-media-preview { width: 100%; height: 150px; border-radius: 8px; background: #f1f5f9; }
.lead-filter-card { margin-bottom: 16px; }
.lead-filters { display: grid; grid-template-columns: 170px 170px minmax(180px, 1fr) auto; gap: 10px; }
.lead-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 16px; color: var(--muted); font-size: 12px; }
.lead-detail-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 18px; }
.lead-summary { display: grid; gap: 4px; min-width: 0; }
.lead-summary span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lead-detail-card { margin-top: 16px; }
@@ -124,6 +113,7 @@ button, input { font: inherit; }
.detail-fields-heading span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.route-editor .el-alert { margin-top: 18px; }
.gallery-editor { display: grid; gap: 12px; margin-bottom: 18px; padding-top: 4px; }
.detail-fields .gallery-editor { width: 100%; margin-top: 20px; }
.gallery-editor-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.gallery-editor-heading > div { display: grid; gap: 4px; }
.gallery-editor-heading span { color: var(--muted); font-size: 12px; }
@@ -140,11 +130,180 @@ button, input { font: inherit; }
.field-hint { margin: 6px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }
.site-image-preview { display: block; width: 100%; max-width: 260px; height: 132px; margin-top: 12px; border-radius: 9px; background: #f1f5f9; }
.editor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }
.editor-sort-item { margin-top: 20px; }
.editor-actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding: 14px 0 4px; border-top: 1px solid var(--line); background: var(--surface); }
.home-content-panel .panel-heading { margin-bottom: 18px; }
.home-content-panel .panel-heading > div { display: flex; align-items: baseline; gap: 10px; }
.home-content-panel .panel-heading span { color: var(--muted); font-size: 12px; font-weight: 400; }
.home-content-options { margin-top: 20px; }
.system-action-bar .el-button:hover { color: #fff; }
@media (max-width: 880px) { .wanfa-workspace { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lead-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .concierge-row { align-items: flex-start; flex-direction: column; } .concierge-actions { justify-content: flex-start; } .lead-filters { grid-template-columns: 1fr 1fr; } .lead-filters .el-input { grid-column: 1 / -1; } .operations-grid { grid-template-columns: 1fr; } .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .site-config-intro { align-items: flex-start; } .site-config-intro .el-button, .page-intro-actions { width: 100%; } .page-intro-actions { justify-content: stretch; } .page-intro-actions .el-button { flex: 1; } .editor-options { grid-template-columns: 1fr; gap: 0; } .site-config-panel .panel-heading { align-items: flex-start; flex-direction: column; } .site-config-panel .panel-heading .el-button { width: 100%; } .concierge-detail-row { grid-template-columns: 1fr; } .lead-filters { grid-template-columns: 1fr; } .lead-filters .el-input { grid-column: auto; } .lead-detail-grid { grid-template-columns: 1fr; } .media-toolbar { align-items: stretch; flex-direction: column; width: 100%; } .media-toolbar .el-input { width: 100%; } .media-grid { grid-template-columns: 1fr; } }
/* RuoYi-compatible shell: fixed sidebar, compact navbar, tags view and responsive content. */
.admin-layout {
--sidebar-width: 200px;
--sidebar-collapsed-width: 64px;
--navbar-height: 50px;
--primary-color: #409eff;
display: flex;
min-height: 100vh;
color: #303133;
background: #f2f3f5;
}
.admin-main-container {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-width: 0;
min-height: 100vh;
}
.sidebar-shell {
position: sticky;
top: 0;
z-index: 1001;
flex: 0 0 auto;
height: 100vh;
}
.sidebar-drawer {
display: flex;
height: 100vh;
flex-direction: column;
overflow: hidden;
border-right: 0;
box-shadow: 2px 0 6px rgba(0, 21, 41, .12);
transition: width 200ms ease, background-color 200ms ease;
}
.sidebar-drawer--dark { color: #bfcbd9; }
.sidebar-drawer--light { color: #303133; border-right: 1px solid #e6e6e6; box-shadow: none; }
.sidebar-drawer--collapsed { width: var(--sidebar-collapsed-width) !important; min-width: var(--sidebar-collapsed-width) !important; }
.sidebar-logo {
display: flex;
height: 50px;
flex: 0 0 50px;
align-items: center;
gap: 10px;
padding: 0 16px;
overflow: hidden;
white-space: nowrap;
}
.sidebar-logo--collapsed { justify-content: center; padding: 0; }
.sidebar-logo__mark, .brand-mark {
display: grid;
width: 32px;
height: 32px;
flex: 0 0 32px;
place-items: center;
border-radius: 6px;
color: #fff;
background: #409eff;
font-size: 11px;
font-weight: 800;
letter-spacing: .08em;
}
.sidebar-logo__copy { display: grid; gap: 2px; min-width: 0; }
.sidebar-logo__copy strong { color: #fff; font-size: 15px; font-weight: 600; }
.sidebar-logo__copy span { color: rgba(255,255,255,.6); font-size: 10px; }
.sidebar-drawer--light .sidebar-logo__copy strong { color: #303133; }
.sidebar-drawer--light .sidebar-logo__copy span { color: #909399; }
.sidebar-scrollbar { flex: 1 1 auto; min-height: 0; }
.sidebar-menu { width: 100%; padding: 6px 0; border-right: 0; }
.sidebar-menu .el-menu-item, .sidebar-menu .el-sub-menu__title { height: 46px; line-height: 46px; margin: 0; border-radius: 0; }
.sidebar-menu .el-menu-item.is-active { color: #fff !important; background: var(--primary-color); }
.sidebar-drawer--light .sidebar-menu .el-menu-item.is-active { color: var(--primary-color) !important; background: #ecf5ff; }
.sidebar-menu .el-menu-item:hover, .sidebar-menu .el-sub-menu__title:hover { background: rgba(64,158,255,.16); }
.sidebar-menu .el-sub-menu.is-active > .el-sub-menu__title { color: #fff; }
.sidebar-drawer--light .sidebar-menu .el-sub-menu.is-active > .el-sub-menu__title { color: var(--primary-color); }
.sidebar-menu .el-menu--inline { background: transparent !important; }
.sidebar-item__content { display: inline-flex; width: 100%; align-items: center; gap: 12px; }
.sidebar-item__content svg { flex: 0 0 auto; }
.sidebar-item__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-menu--collapse .sidebar-item__content { justify-content: center; }
.admin-navbar {
position: relative;
z-index: 900;
display: flex;
height: var(--navbar-height);
flex: 0 0 var(--navbar-height);
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-bottom: 1px solid #e6e6e6;
background: #fff;
}
.fixed-header .admin-navbar { position: sticky; top: 0; }
.navbar-left, .navbar-right, .breadcrumb, .user-menu { display: flex; align-items: center; }
.navbar-left, .navbar-right { min-width: 0; }
.navbar-right { gap: 4px; }
.navbar-icon-button { width: 34px; height: 34px; padding: 0; color: #606266; }
.navbar-icon-button:hover, .navbar-icon-button:focus-visible { color: var(--primary-color); background: #ecf5ff; }
.breadcrumb { gap: 8px; margin-left: 8px; color: #606266; font-size: 13px; white-space: nowrap; }
.breadcrumb-separator { color: #c0c4cc; }
.breadcrumb-current { color: #303133; }
.user-menu { gap: 7px; padding: 4px 2px 4px 8px; border: 0; color: #606266; background: transparent; cursor: pointer; }
.user-menu:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.user-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: #c0c4cc; font-size: 13px; }
.user-name { max-width: 120px; overflow: hidden; color: #606266; text-overflow: ellipsis; white-space: nowrap; }
.top-menu { flex: 0 0 50px; border-bottom: 1px solid #e6e6e6; background: #fff; }
.top-menu__bar { height: 50px; border-bottom: 0; }
.top-menu__bar .el-menu-item, .top-menu__bar .el-sub-menu__title { height: 50px; line-height: 50px; }
.tags-view-container { position: relative; z-index: 800; display: flex; height: 34px; flex: 0 0 34px; align-items: center; border-bottom: 1px solid #d8dce5; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.tags-view-list { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 5px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tags-view-list::-webkit-scrollbar { display: none; }
.tags-view-item { display: inline-flex; height: 26px; flex: 0 0 auto; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; color: #606266; background: transparent; font-size: 12px; cursor: pointer; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.tags-view-item:hover { color: var(--primary-color); background: #f5f7fa; }
.tags-view-item.is-active { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
.tag-close { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; border-radius: 50%; }
.tag-close:hover { color: #fff; background: rgba(255,255,255,.3); }
.tags-view-toolbar { display: flex; height: 100%; flex: 0 0 auto; align-items: center; border-left: 1px solid #e6e6e6; }
.tags-toolbar-button { display: grid; width: 34px; height: 100%; place-items: center; border: 0; border-left: 1px solid transparent; color: #606266; background: #fff; cursor: pointer; }
.tags-view-toolbar .tags-toolbar-button + .el-dropdown,
.tags-view-toolbar .el-dropdown + .tags-toolbar-button { border-left: 1px solid #e6e6e6; }
.tags-toolbar-button:hover, .tags-toolbar-button:focus-visible { color: var(--primary-color); background: #f5f7fa; }
.tags-context-menu { position: fixed; z-index: 3000; display: grid; min-width: 150px; padding: 5px 0; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.tags-context-menu button { padding: 8px 14px; border: 0; color: #606266; background: #fff; text-align: left; font-size: 12px; cursor: pointer; }
.tags-context-menu button:hover:not(:disabled) { color: var(--primary-color); background: #f5f7fa; }
.tags-context-menu button:disabled { color: #c0c4cc; cursor: not-allowed; }
.admin-main { flex: 1 1 auto; min-width: 0; padding: 24px 30px 40px; }
.admin-footer { padding: 10px 24px 14px; color: #909399; font-size: 12px; text-align: center; }
.settings-form .el-radio-group { display: flex; width: 100%; }
.settings-form .el-radio-button { flex: 1; }
.settings-form .el-radio-button__inner { width: 100%; padding-right: 8px; padding-left: 8px; }
.settings-switches { display: grid; width: 100%; gap: 14px; }
.settings-switches > div { display: flex; align-items: center; justify-content: space-between; color: #606266; font-size: 13px; }
@media (max-width: 767px) {
.sidebar-shell { position: fixed; inset: 0 auto 0 0; }
.sidebar-shell:not(.sidebar-shell--mobile) { display: block; }
.admin-main { padding: 20px 22px 32px; }
}
@media (max-width: 640px) {
.admin-navbar { padding: 0 8px; }
.breadcrumb { margin-left: 4px; }
.breadcrumb span:not(.breadcrumb-current), .navbar-right .navbar-icon-button:nth-child(-n+2), .navbar-right .el-divider { display: none; }
.user-name { display: none; }
.admin-main { padding: 18px 14px 28px; }
.tags-view-item { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 100vh; padding: 5vw 9vw; gap: 8vw; align-items: center; background: #f8fafc; }
.login-art { max-width: 560px; }
.login-art h1 { margin: 18px 0; color: #172554; font-size: clamp(34px, 4vw, 61px); letter-spacing: -.05em; line-height: 1.07; }
@@ -156,5 +315,5 @@ button, input { font: inherit; }
.login-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.login-error { margin: 4px 0 17px; }
.login-button { width: 100%; height: 42px; }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; padding: 48px 24px; gap: 24px; } .login-art { max-width: none; } .login-art h1 { font-size: 38px; } .login-card { max-width: 520px; width: 100%; } .admin-header { padding: 0 22px; } .admin-main { padding: 26px 22px 40px; } .advisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .admin-aside { width: 0 !important; display: none; } .admin-header { height: 76px; } .admin-header h1 { font-size: 19px; } .header-actions .el-tag, .user-name { display: none; } .metric-grid, .module-grid, .loading-grid, .advisor-grid { grid-template-columns: 1fr; } .page-intro { align-items: flex-start; flex-direction: column; } .admin-main { padding: 22px 14px 32px; } }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; padding: 48px 24px; gap: 24px; } .login-art { max-width: none; } .login-art h1 { font-size: 38px; } .login-card { max-width: 520px; width: 100%; } .advisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .user-name { display: none; } .metric-grid, .module-grid, .loading-grid, .advisor-grid { grid-template-columns: 1fr; } .page-intro { align-items: flex-start; flex-direction: column; } }