feat(admin): 后台登录页品牌化 + 26 个业务模块与前端对齐 + 数据同步打通
一、登录页重构(暖色调品牌版)
- 左右分栏卡片: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
这个提交包含在:
@@ -1,9 +1,24 @@
|
||||
<!-- Logo -->
|
||||
<!-- Logo(花期品牌) -->
|
||||
<style>
|
||||
.hq-logo-lg { display: inline-flex; align-items: center; gap: 8px; }
|
||||
.hq-logo-lg svg { flex-shrink: 0; }
|
||||
.hq-logo-mini { letter-spacing: 1px; }
|
||||
</style>
|
||||
<a href="javascript:;" class="logo">
|
||||
<!-- 迷你模式下Logo的大小为50X50 -->
|
||||
<span class="logo-mini">{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'|htmlentities}</span>
|
||||
<span class="logo-mini hq-logo-mini">花期</span>
|
||||
<!-- 普通模式下Logo -->
|
||||
<span class="logo-lg">{$site.name|htmlentities}</span>
|
||||
<span class="logo-lg hq-logo-lg">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"
|
||||
stroke="#FFD8C9" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="2.6"/>
|
||||
<circle cx="12" cy="5.4" r="2.9"/>
|
||||
<circle cx="18.6" cy="12" r="2.9"/>
|
||||
<circle cx="12" cy="18.6" r="2.9"/>
|
||||
<circle cx="5.4" cy="12" r="2.9"/>
|
||||
</svg>
|
||||
<span>{$site.name|htmlentities}</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<!-- 顶部通栏样式 -->
|
||||
|
||||
@@ -1,142 +1,376 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
{include file="common/meta" /}
|
||||
|
||||
<style type="text/css">
|
||||
:root {
|
||||
--brand: #E8604C;
|
||||
--brand-light: #F58C7C;
|
||||
--brand-peach: #F5A65B;
|
||||
--brand-brown: #C79A7B;
|
||||
--text: #3E2C27;
|
||||
--text-2: #8C7367;
|
||||
--text-3: #B9A79E;
|
||||
--line: #F5E7DF;
|
||||
--cream: #FFF9F5;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #999;
|
||||
background-color: #f1f4fd;
|
||||
background-size: cover;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at 12% 18%, rgba(245, 166, 91, 0.28), transparent 42%),
|
||||
radial-gradient(circle at 88% 8%, rgba(232, 96, 76, 0.20), transparent 40%),
|
||||
radial-gradient(circle at 78% 92%, rgba(199, 154, 123, 0.22), transparent 46%),
|
||||
linear-gradient(160deg, #FFF6EF 0%, #FFFBF7 45%, #FFF3EC 100%);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #444;
|
||||
a { color: var(--brand); }
|
||||
a:hover { color: #C9482F; }
|
||||
|
||||
.hq-login {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
|
||||
.login-screen {
|
||||
max-width: 430px;
|
||||
padding: 0;
|
||||
margin: 100px auto 0 auto;
|
||||
|
||||
.hq-login-wrap {
|
||||
width: 100%;
|
||||
max-width: 940px;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
background: #FFFFFF;
|
||||
border-radius: 28px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 30px 80px rgba(232, 96, 76, 0.16), 0 2px 6px rgba(62, 44, 39, 0.04);
|
||||
}
|
||||
|
||||
.login-screen .well {
|
||||
border-radius: 3px;
|
||||
-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
|
||||
background: rgba(255, 255, 255, 1);
|
||||
border: none;
|
||||
/*overflow: hidden;*/
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.login-screen {
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-img-card {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
-moz-border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
margin: -93px auto 30px;
|
||||
border: 5px solid #fff;
|
||||
}
|
||||
|
||||
.profile-name-card {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login-head {
|
||||
background: #899fe1;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
padding: 40px 30px;
|
||||
/* ---------- 左侧品牌区 ---------- */
|
||||
.hq-brand-panel {
|
||||
width: 44%;
|
||||
padding: 56px 44px;
|
||||
color: #FFFFFF;
|
||||
background: linear-gradient(150deg, #F58C7C 0%, #E8604C 58%, #D9503C 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
z-index: 99;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#login-form {
|
||||
margin-top: 20px;
|
||||
.hq-brand-panel::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -80px;
|
||||
bottom: -90px;
|
||||
width: 260px;
|
||||
height: 260px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
}
|
||||
|
||||
#login-form .input-group {
|
||||
margin-bottom: 15px;
|
||||
.hq-brand-panel::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
top: 38px;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
#login-form .form-control {
|
||||
.hq-logo {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.hq-brand-name {
|
||||
margin: 26px 0 6px;
|
||||
font-size: 34px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 8px;
|
||||
}
|
||||
|
||||
.hq-brand-slogan {
|
||||
font-size: 13px;
|
||||
letter-spacing: 3px;
|
||||
opacity: 0.86;
|
||||
}
|
||||
|
||||
.hq-brand-desc {
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
line-height: 2;
|
||||
opacity: 0.9;
|
||||
margin: 0;
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.hq-brand-desc::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 8px;
|
||||
width: 3px;
|
||||
height: calc(100% - 16px);
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
/* ---------- 右侧表单区 ---------- */
|
||||
.hq-form-panel {
|
||||
width: 56%;
|
||||
padding: 56px 56px 44px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hq-form-title {
|
||||
margin: 0 0 6px;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.hq-form-sub {
|
||||
margin: 0 0 30px;
|
||||
font-size: 13px;
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.hq-field {
|
||||
position: relative;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.hq-field-icon {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
opacity: 0.55;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hq-field .form-control {
|
||||
height: 52px;
|
||||
padding: 6px 16px 6px 48px;
|
||||
font-size: 14px;
|
||||
color: var(--text);
|
||||
background-color: var(--cream);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
box-shadow: none;
|
||||
transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
|
||||
}
|
||||
|
||||
.hq-field .form-control::placeholder { color: var(--text-3); }
|
||||
|
||||
.hq-field .form-control:focus {
|
||||
background-color: #FFFFFF;
|
||||
border-color: var(--brand-light);
|
||||
box-shadow: 0 0 0 4px rgba(232, 96, 76, 0.10);
|
||||
}
|
||||
|
||||
.hq-field-captcha { display: flex; align-items: center; }
|
||||
.hq-field-captcha .form-control { padding-right: 130px; }
|
||||
|
||||
.hq-captcha {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--line);
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.hq-captcha img { display: block; height: 38px; width: 110px; }
|
||||
|
||||
.hq-keep {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 4px 0 22px;
|
||||
font-size: 13px;
|
||||
color: var(--text-2);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.hq-keep input { margin: 0 8px 0 0; accent-color: var(--brand); }
|
||||
|
||||
.hq-submit {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
border: none;
|
||||
border-radius: 14px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 4px;
|
||||
color: #FFFFFF;
|
||||
background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%);
|
||||
box-shadow: 0 14px 28px rgba(232, 96, 76, 0.26);
|
||||
transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
|
||||
}
|
||||
|
||||
.hq-submit:hover, .hq-submit:focus {
|
||||
filter: brightness(1.03);
|
||||
box-shadow: 0 18px 32px rgba(232, 96, 76, 0.30);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.hq-submit:active { transform: translateY(1px) scale(0.998); }
|
||||
|
||||
.hq-foot {
|
||||
margin-top: 26px;
|
||||
font-size: 12px;
|
||||
color: var(--text-3);
|
||||
text-align: center;
|
||||
line-height: 1.9;
|
||||
}
|
||||
|
||||
.hq-foot a { color: var(--text-2); }
|
||||
|
||||
#errtips {
|
||||
margin-bottom: 14px;
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
color: #C9482F;
|
||||
background: #FFF2EE;
|
||||
border: 1px solid #F8D7CF;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* 头像/名称占位(兼容后台登录脚本读取) */
|
||||
.hq-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
||||
|
||||
/* ---------- 响应式 ---------- */
|
||||
@media (max-width: 860px) {
|
||||
.hq-login-wrap { max-width: 460px; }
|
||||
.hq-brand-panel { display: none; }
|
||||
.hq-form-panel { width: 100%; padding: 44px 32px 32px; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.hq-login { padding: 0; }
|
||||
.hq-login-wrap { border-radius: 0; min-height: 100vh; }
|
||||
.hq-form-panel { padding: 56px 26px 32px; }
|
||||
}
|
||||
</style>
|
||||
<!--@formatter:off-->
|
||||
{if $background}
|
||||
<style type="text/css">
|
||||
body{
|
||||
background-image: url('{$background|htmlentities}');
|
||||
}
|
||||
</style>
|
||||
{/if}
|
||||
<!--@formatter:on-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="login-wrapper">
|
||||
<div class="login-screen">
|
||||
<div class="well">
|
||||
<div class="login-head">
|
||||
<img src="__CDN__/assets/img/login-head.png" style="width:100%;"/>
|
||||
<div class="hq-login">
|
||||
<div class="hq-login-wrap">
|
||||
<!-- 品牌区 -->
|
||||
<div class="hq-brand-panel">
|
||||
<div>
|
||||
<div class="hq-logo">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" viewBox="0 0 24 24"
|
||||
fill="none" stroke="#FFFFFF" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="2.6"/>
|
||||
<circle cx="12" cy="5.4" r="2.9"/>
|
||||
<circle cx="18.6" cy="12" r="2.9"/>
|
||||
<circle cx="12" cy="18.6" r="2.9"/>
|
||||
<circle cx="5.4" cy="12" r="2.9"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="login-form">
|
||||
<img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png"/>
|
||||
<p id="profile-name" class="profile-name-card"></p>
|
||||
<div class="hq-brand-name">花期</div>
|
||||
<div class="hq-brand-slogan">温柔记录 · 静待花开</div>
|
||||
</div>
|
||||
<p class="hq-brand-desc">
|
||||
运营管理后台<br>
|
||||
内容审核 · 用户运营 · 数据看板
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<form action="" method="post" id="login-form">
|
||||
<!--@AdminLoginFormBegin-->
|
||||
<div id="errtips" class="hide"></div>
|
||||
{:token()}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
|
||||
<input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
|
||||
</div>
|
||||
<!-- 表单区 -->
|
||||
<div class="hq-form-panel">
|
||||
<h1 class="hq-form-title">登录运营后台</h1>
|
||||
<p class="hq-form-sub">请使用管理员账号登录,所有操作将被记录</p>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
|
||||
<input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
|
||||
</div>
|
||||
<!--@CaptchaBegin-->
|
||||
{if $Think.config.fastadmin.login_captcha}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
|
||||
<input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})" autocomplete="off"/>
|
||||
<span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
|
||||
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
<!--@CaptchaEnd-->
|
||||
{if $keeyloginhours>0}
|
||||
<div class="form-group checkbox">
|
||||
<label class="inline" for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
|
||||
<input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
|
||||
{:__('Keep login')}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success btn-lg btn-block" style="background:#708eea;">{:__('Sign in')}</button>
|
||||
</div>
|
||||
<!--@AdminLoginFormEnd-->
|
||||
</form>
|
||||
<img id="profile-img" src="__CDN__/assets/img/avatar.png" class="hq-hidden" alt=""/>
|
||||
<input type="text" id="profile-name" class="hq-hidden" value=""/>
|
||||
|
||||
<form action="" method="post" id="login-form" autocomplete="off">
|
||||
<div id="errtips" class="hide"></div>
|
||||
{:token()}
|
||||
|
||||
<div class="hq-field">
|
||||
<svg class="hq-field-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||
fill="none" stroke="#8C7367" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="8" r="3.6"/>
|
||||
<path d="M4.8 20.4a7.4 7.4 0 0 1 14.4 0"/>
|
||||
</svg>
|
||||
<input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}"
|
||||
name="username" value="" data-rule="{:__('Username')}:required;username"/>
|
||||
</div>
|
||||
|
||||
<div class="hq-field">
|
||||
<svg class="hq-field-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||
fill="none" stroke="#8C7367" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="4.6" y="10.4" width="14.8" height="9.6" rx="2.4"/>
|
||||
<path d="M8.2 10.4V8a3.8 3.8 0 0 1 7.6 0v2.4M12 14.4v2"/>
|
||||
</svg>
|
||||
<input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}"
|
||||
name="password" value="" data-rule="{:__('Password')}:required;password"/>
|
||||
</div>
|
||||
|
||||
{if $Think.config.fastadmin.login_captcha}
|
||||
<div class="hq-field hq-field-captcha">
|
||||
<svg class="hq-field-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||
fill="none" stroke="#8C7367" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3.4" y="5" width="17.2" height="15.6" rx="2.6"/>
|
||||
<path d="M7.6 11h8.8M7.6 15h5.4"/>
|
||||
</svg>
|
||||
<input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}"
|
||||
data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})"
|
||||
autocomplete="off"/>
|
||||
<span class="hq-captcha">
|
||||
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="110" height="38"
|
||||
onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $keeyloginhours>0}
|
||||
<label class="hq-keep" for="keeplogin"
|
||||
data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
|
||||
<input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
|
||||
{:__('Keep login')}
|
||||
</label>
|
||||
{/if}
|
||||
|
||||
<button type="submit" class="hq-submit">{:__('Sign in')}</button>
|
||||
</form>
|
||||
|
||||
<div class="hq-foot">
|
||||
花期运营中心 · 内容仅供参考,不能替代医疗诊断<br>
|
||||
<a href="__PUBLIC__" target="_blank">查看前台站点</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<div class="panel panel-default panel-intro hq-admin">
|
||||
{include file="manage/style" /}
|
||||
<div class="panel-heading">
|
||||
<div class="panel-lead">
|
||||
<em>{$tableGroup}</em>
|
||||
<span style="margin-left:6px;">新增{$tableTitle}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form id="add-form" class="form-horizontal hq-admin-form" role="form" data-toggle="validator" method="post" action="">
|
||||
{$formHtml}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn hq-btn-primary">{:__('Submit')}</button>
|
||||
<button type="button" class="btn btn-default btn-return">{:__('Back')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
<div class="panel panel-default panel-intro hq-admin">
|
||||
{include file="manage/style" /}
|
||||
<div class="panel-heading">
|
||||
<div class="panel-lead">
|
||||
<em>{$tableGroup}</em>
|
||||
<span style="margin-left:6px;">编辑{$tableTitle}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form id="edit-form" class="form-horizontal hq-admin-form" role="form" data-toggle="validator" method="post" action="">
|
||||
{$formHtml}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn hq-btn-primary">{:__('Submit')}</button>
|
||||
<button type="button" class="btn btn-default btn-return">{:__('Back')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
<div class="panel panel-default panel-intro hq-admin">
|
||||
<style>
|
||||
.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 .toolbar { padding: 12px 0; }
|
||||
.hq-admin .toolbar .btn-primary { background: linear-gradient(135deg, #F58C7C 0%, #E8604C 100%); border-color: #E8604C; }
|
||||
.hq-admin .toolbar .btn-primary:hover, .hq-admin .toolbar .btn-primary:focus { filter: brightness(1.04); border-color: #E8604C; }
|
||||
.hq-admin .hq-tip { line-height: 34px; }
|
||||
.hq-admin .hq-tip b { color: #E8604C; }
|
||||
.hq-admin .hq-table thead th { background: #FFF9F5; color: #8C7367; font-weight: 600; border-bottom: 1px solid #F5E7DF; }
|
||||
.hq-admin .hq-table > tbody > tr > td { vertical-align: middle; color: #3E2C27; }
|
||||
.hq-admin .hq-table > tbody > tr:hover > td { background: #FFFBF8; }
|
||||
.hq-admin .fixed-table-container { border: 1px solid #F5E7DF; border-radius: 10px; }
|
||||
.hq-admin .btn-success { background: #7FB77E; border-color: #7FB77E; }
|
||||
.hq-admin .pagination > .active > a, .hq-admin .pagination > .active > span { background: #E8604C; border-color: #E8604C; }
|
||||
.hq-admin .search-input { border-radius: 8px; }
|
||||
</style>
|
||||
|
||||
<div class="panel-heading">
|
||||
<div class="panel-lead">
|
||||
<em>{$tableGroup}</em>
|
||||
<span style="margin-left:6px;">{$tableTitle}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="toolbar" class="toolbar">
|
||||
{if $readonlyTable}
|
||||
{:build_toolbar('refresh')}
|
||||
{else /}
|
||||
{:build_toolbar('refresh,add,edit,del')}
|
||||
<div class="dropdown btn-group">
|
||||
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown">
|
||||
<i class="fa fa-cog"></i> 批量
|
||||
</a>
|
||||
<ul class="dropdown-menu text-left" role="menu">
|
||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-check"></i> 设为正常</a></li>
|
||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> 设为隐藏</a></li>
|
||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="verify=passed"><i class="fa fa-check-circle"></i> 审核通过</a></li>
|
||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="verify=rejected"><i class="fa fa-times-circle"></i> 驳回</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="pull-right">
|
||||
<span class="text-muted hq-tip">{$tableGroup} / {$tableTitle} · 共 <b id="hq-total">0</b> 条</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table id="table" class="table table-hover hq-table" data-table="{$table}"
|
||||
data-operate-edit="{:$auth->check('manage/edit')}"
|
||||
data-operate-del="{:$auth->check('manage/del')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
<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>
|
||||
在新工单中引用
屏蔽一个用户