一、登录页重构(暖色调品牌版)
- 左右分栏卡片:44% 品牌面板(花红渐变 + 光斑 + 内联 SVG 花瓣 Logo + 花期字标/口号)
+ 56% 表单面板(52px 输入框、内嵌矢量图标、聚焦暖色光晕、渐变主按钮)
- 与前台同一套设计令牌(#E8604C / #F58C7C / #FFF9F5 / #3E2C27),响应式适配
- 完整保留 #login-form/#pd-form-username/#profile-img/#errtips/token/验证码/保持登录等结构,后台登录 JS 零改动
二、后台业务模块(26 个,与前端 M1–M9 一一对应)
- 新增通用 Manage 控制器(列表/搜索/排序/新增/编辑/软删除/批量/列元数据)
- 新增 ManageConfig(26 张表的字段标签/类型/枚举/搜索配置)与 FormBuilder(表单控件渲染)
- 新增通用视图 manage/{index,add,edit,style}.html + public/assets/js/backend/manage.js
- 新增 26 个薄控制器(各 8 行,仅声明 )
- db/05_admin_menu.sql:花期运营菜单树 + 6 个通用操作权限,含站点名品牌化
三、品牌一致性
- site.php 站点名改为「花期运营中心」,顶栏 Logo 增加矢量花瓣
- 业务页暖色表头、渐变按钮、圆角输入、品牌色开关
四、验证(全绿)
- 后台自检 31 项:登录页品牌、框架菜单、26 模块页面 200 + 列表数据、后台编辑写库、
后台改动 → 前台 API 同步读取、数据还原
- 前台接口 82 项断言、契约 84 接口、Vue 20/20、SCSS 19/19、无 emoji 均通过
- 修复 5 个真实问题:方法签名不兼容致 500、菜单缓存、SQL 字符集乱码、
snake_case URL 与权限规则命名、会话文件属主导致的自检 500
50 行
2.2 KiB
HTML
50 行
2.2 KiB
HTML
<style>
|
|
.hq-admin { --brand: #E8604C; }
|
|
.hq-admin .panel-heading { background: #fff; border-bottom: 1px solid #F5E7DF; }
|
|
.hq-admin .panel-lead em { color: #E8604C; font-style: normal; font-weight: 600; }
|
|
.hq-admin-form { padding: 10px 0 0; }
|
|
.hq-admin-form .hq-form-group { margin-bottom: 18px; }
|
|
.hq-admin-form .control-label { color: #8C7367; font-weight: 500; padding-top: 9px; }
|
|
.hq-admin-form .hq-input {
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
border: 1px solid #F5E7DF;
|
|
background: #FFF9F5;
|
|
box-shadow: none;
|
|
color: #3E2C27;
|
|
font-size: 13px;
|
|
transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
|
|
}
|
|
.hq-admin-form textarea.hq-input { height: auto; min-height: 96px; line-height: 1.7; }
|
|
.hq-admin-form .hq-input:focus {
|
|
border-color: #F58C7C;
|
|
background: #fff;
|
|
box-shadow: 0 0 0 4px rgba(232, 96, 76, .10);
|
|
}
|
|
.hq-admin-form .hq-btn-primary {
|
|
height: 40px;
|
|
padding: 0 26px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
letter-spacing: 2px;
|
|
background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%);
|
|
box-shadow: 0 10px 20px rgba(232, 96, 76, .20);
|
|
}
|
|
.hq-admin-form .hq-btn-primary:hover, .hq-admin-form .hq-btn-primary:focus { color: #fff; filter: brightness(1.04); }
|
|
.hq-admin-form .hq-hint { color: #B9A79E; font-size: 12px; }
|
|
.hq-switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 7px 0 0; }
|
|
.hq-switch input { opacity: 0; width: 0; height: 0; }
|
|
.hq-switch span {
|
|
position: absolute; cursor: pointer; inset: 0;
|
|
background-color: #EFE2DA; border-radius: 26px; transition: background .18s ease;
|
|
}
|
|
.hq-switch span::before {
|
|
content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
|
|
background: #fff; border-radius: 50%; transition: transform .18s ease;
|
|
box-shadow: 0 2px 6px rgba(62, 44, 39, .18);
|
|
}
|
|
.hq-switch input:checked + span { background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%); }
|
|
.hq-switch input:checked + span::before { transform: translateX(20px); }
|
|
</style>
|