135 行
7.2 KiB
HTML
135 行
7.2 KiB
HTML
<style>
|
|
/* ===== 分类管理列表 · 轻氧薄荷主题 ===== */
|
|
.panel-intro > .panel-heading { border-bottom: none; }
|
|
/* 提示条:更轻更薄 */
|
|
.fc-cat-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
padding: 10px 14px;
|
|
background: linear-gradient(90deg, #f2fef7, #ffffff);
|
|
border: 1px solid #d9f5e6;
|
|
border-left: 4px solid #00d26a;
|
|
border-radius: 10px;
|
|
color: #334155;
|
|
font-size: 12.5px;
|
|
line-height: 1.6;
|
|
}
|
|
.fc-cat-notice .fa { color: #00a854; font-size: 15px; }
|
|
.fc-cat-notice strong { color: #1e293b; }
|
|
|
|
/* 工具栏按钮:图标 + 主题化 */
|
|
.toolbar .btn { border-radius: 8px; font-weight: 600; padding: 6px 14px; }
|
|
.toolbar .btn-refresh { background: #fff; border: 1px solid #dbe6ee; color: #475569; }
|
|
.toolbar .btn-refresh:hover { border-color: #00d26a; color: #00a854; }
|
|
.toolbar .btn-success { background: linear-gradient(135deg, #00e070, #00c860); border: none; color: #04301e; box-shadow: 0 3px 8px rgba(0, 210, 106, 0.28); }
|
|
.toolbar .btn-success:hover { background: linear-gradient(135deg, #00d26a, #00b856); }
|
|
.toolbar .btn-danger { border-radius: 8px; }
|
|
|
|
/* 表格:去重边框,柔和横线 + 薄荷表头 */
|
|
.fc-cat-table { border-collapse: separate !important; border-spacing: 0 !important; }
|
|
.fc-cat-table thead th {
|
|
background: #f2fef7 !important;
|
|
color: #1e293b !important;
|
|
font-weight: 700 !important;
|
|
border-bottom: 2px solid #d9f5e6 !important;
|
|
border-top: none !important;
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
padding: 11px 12px !important;
|
|
white-space: nowrap;
|
|
}
|
|
.fc-cat-table tbody td {
|
|
border: none !important;
|
|
border-bottom: 1px solid #f1f7f3 !important;
|
|
padding: 10px 12px !important;
|
|
vertical-align: middle !important;
|
|
}
|
|
.fc-cat-table tbody tr:hover td { background: #f7fdfa !important; }
|
|
.fc-cat-table tbody tr:last-child td { border-bottom: none !important; }
|
|
|
|
/* 树形层级缩进:子分类带弧形引导线 */
|
|
.fc-tree-sub { position: relative; padding-left: 26px; }
|
|
.fc-tree-sub::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 50%;
|
|
width: 12px;
|
|
height: 14px;
|
|
margin-top: -8px;
|
|
border-left: 2px solid #bcead1;
|
|
border-bottom: 2px solid #bcead1;
|
|
border-bottom-left-radius: 8px;
|
|
}
|
|
|
|
/* 实拍图悬浮放大预览 */
|
|
.fc-img-wrap { position: relative; display: inline-block; }
|
|
.fc-img-wrap .fc-img-zoom {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
transform: translateX(-50%) scale(0.85);
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
border: 3px solid #ffffff;
|
|
box-shadow: 0 12px 32px rgba(4, 48, 30, 0.22);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
z-index: 500;
|
|
}
|
|
.fc-img-wrap .fc-img-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.fc-img-wrap:hover .fc-img-zoom { opacity: 1; transform: translateX(-50%) scale(1); }
|
|
|
|
/* 快捷筛选按钮组 */
|
|
.fc-quick-filters { display: inline-flex; vertical-align: middle; margin-left: 8px; border-radius: 8px; overflow: hidden; border: 1px solid #d9f5e6; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
|
|
.fc-quick-filters .btn { border: none !important; border-radius: 0 !important; margin: 0 !important; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #475569; background: #ffffff; transition: all 0.15s ease; }
|
|
.fc-quick-filters .btn + .btn { border-left: 1px solid #eef7f2 !important; }
|
|
.fc-quick-filters .btn:hover { background: #f2fef7; color: #00a854; }
|
|
.fc-quick-filters .btn.active { background: linear-gradient(135deg, #00e070, #00c860) !important; color: #04301e !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.08); }
|
|
|
|
/* 分页与信息区 */
|
|
.fixed-table-pagination .pagination-detail, .fixed-table-pagination .page-list { color: #64748b; }
|
|
.fixed-table-pagination .pagination > li > a { border-radius: 8px !important; margin: 0 2px; border: 1px solid #e2e8f0; }
|
|
.fixed-table-pagination .pagination > li.active > a { background: #00d26a; border-color: #00d26a; color: #fff; }
|
|
</style>
|
|
|
|
<div class="panel panel-default panel-intro">
|
|
{:build_heading()}
|
|
|
|
<div class="panel-body">
|
|
<div class="fc-cat-notice">
|
|
<i class="fa fa-info-circle"></i>
|
|
<div>分类直接联动小程序<strong>首页金刚区</strong>与<strong>分类频道</strong>,按排序权重升序展示。点击开关可<strong>一键上架/下架</strong>,<strong>首页金刚区推荐上限为 8 个</strong>(仅限二级品类,超限自动拦截并提示),鼠标悬停分类图标可<strong>放大预览</strong>。</div>
|
|
</div>
|
|
|
|
<div id="myTabContent" class="tab-content">
|
|
<div class="tab-pane fade active in" id="one">
|
|
<div class="widget-body no-padding">
|
|
<div id="toolbar" class="toolbar">
|
|
<a href="javascript:;" class="btn btn-refresh btn-refresh"><i class="fa fa-refresh"></i> 刷新</a>
|
|
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('fc/category/add')?'':'hide'}" title="{:__('Add')}"><i class="fa fa-plus"></i> 添加分类</a>
|
|
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('fc/category/edit')?'':'hide'}" title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
|
|
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('fc/category/del')?'':'hide'}" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
|
<div class="btn-group fc-quick-filters" role="group" aria-label="分类层级快捷筛选">
|
|
<a href="javascript:;" class="btn btn-filter-all active" title="显示全部一级与二级分类"><i class="fa fa-list"></i> 全部</a>
|
|
<a href="javascript:;" class="btn btn-filter-top" title="仅查看顶级一级大类"><i class="fa fa-folder-open-o"></i> 一级大类</a>
|
|
<a href="javascript:;" class="btn btn-filter-sub" title="仅查看二级细分品类"><i class="fa fa-tags"></i> 二级品类</a>
|
|
<a href="javascript:;" class="btn btn-filter-home" title="只查看已推荐至首页金刚区的二级品类"><i class="fa fa-star text-warning"></i> 首页金刚区 (<b id="fc-home-count">{$homeCount|default='8'}</b>/8)</a>
|
|
</div>
|
|
</div>
|
|
<table id="table" class="table table-hover table-nowrap fc-cat-table"
|
|
data-operate-edit="{:$auth->check('fc/category/edit')}"
|
|
data-operate-del="{:$auth->check('fc/category/del')}"
|
|
width="100%">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|