feat(ui): 交付第11个收官页面【Logo授权管理】UI重构与全链路真实交互 (11/11 全量完工)
- 页面交付清单 (🎉 设置页面全部 11/11 已 100% 完工交付):
1. 语言设置 (已完工)
2. 版型切换 (已完工)
3. 心率区间设置 (已完工)
4. 自动连接配置 (已完工)
5. 手环配置 (已完工)
6. DFU固件升级 (已完工)
7. 用户管理 (已完工)
8. 设备数据库管理 (已完工)
9. 数据上传 (已完工)
10. 版本信息 (已完工)
11. Logo授权管理 (本次交付·已完工·全量大圆满)
- 核心重构亮点:
1. 采纳 Master-Detail Inset Studio 经典双栏比例 (360px 1fr);
2. 左侧 360px 品牌控制面板集成【文本Logo / 图片Logo】分段器与当前模式说明;
3. 右侧 1fr 建立所见即所得的【顶部栏实时效果预览】真实模拟舱;
4. 文本模式支持 0 延迟实时打字同步回显与 10/15 字数超长校验;
5. 图片模式支持真实选择本地 PNG/SVG 透明背景图片与预设 Logo 一键切换;
6. 集齐 6 件套交付物 (baseline_ui.html, image.png, DESIGN_SPEC.md, implementation_plan.md, CARD 任务卡, README 更新)。
@@ -0,0 +1,354 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:Master-Detail Inset Studio 经典双栏 (360px 1fr·推荐·家族风)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
全局统一色彩与 Design Tokens (严格对齐 #2563EB 体系)
|
||||
========================================================================= */
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
--border-card: #E2E8F0;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-success-border: #A7F3D0;
|
||||
|
||||
--color-warning: #D97706;
|
||||
--color-warning-bg: #FFFBEB;
|
||||
--color-warning-border: #FDE68A;
|
||||
|
||||
--color-danger: #E11D48;
|
||||
--color-danger-bg: #FFF1F2;
|
||||
--color-danger-border: #FFE4E6;
|
||||
|
||||
--corner-card: 16px;
|
||||
--corner-item: 10px;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* 1. AppBar */
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none; transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover, .appbar-more:hover { background: rgba(15, 23, 42, 0.06); transform: scale(0.96); }
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
/* 2. 经典 360px 1fr 双栏布局 */
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-height: calc(100vh - 120px);
|
||||
}
|
||||
|
||||
/* 左侧 360px 品牌控制面板 */
|
||||
.left-brand-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.panel-header-title { font-size: 17.5px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
|
||||
.panel-header-desc { font-size: 12.5px; color: var(--text-sub); margin-top: 4px; }
|
||||
|
||||
/* 分段选择器 */
|
||||
.segmented-control-box {
|
||||
background: #F1F5F9; border-radius: 10px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
|
||||
}
|
||||
.seg-btn {
|
||||
height: 38px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
color: var(--text-sub); background: transparent;
|
||||
}
|
||||
.seg-btn.active {
|
||||
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
/* 品牌授权说明卡片 */
|
||||
.brand-info-card {
|
||||
background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 12px;
|
||||
padding: 14px; display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.info-row { display: flex; justify-content: space-between; font-size: 12.5px; }
|
||||
|
||||
/* 底部全宽保存与恢复按钮 */
|
||||
.side-actions-stack { display: flex; flex-direction: column; gap: 10px; }
|
||||
|
||||
.btn-dynamic-full {
|
||||
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||
border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: var(--color-primary-gradient); color: white;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
.btn-secondary-ghost {
|
||||
background: #FFFFFF; color: var(--text-sub); border-color: #CBD5E1;
|
||||
}
|
||||
.btn-secondary-ghost:hover { background: #F1F5F9; color: var(--text-main); }
|
||||
|
||||
/* 右侧 1fr 预览舱与编辑工坊 */
|
||||
.right-studio-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; gap: 22px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.studio-section-header {
|
||||
display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--divider);
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.studio-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
|
||||
|
||||
/* 顶部栏实时预览模拟舱 (Live Mockup Bar) */
|
||||
.live-mockup-container {
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.mockup-label { font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
|
||||
|
||||
.mockup-appbar-frame {
|
||||
height: 56px; background: #F8FAFC; border: 1.5px dashed #94A3B8; border-radius: 12px;
|
||||
display: flex; align-items: center; padding: 0 16px; gap: 12px; transition: all 0.2s ease;
|
||||
}
|
||||
.mockup-arrow { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.mockup-brand-text { font-size: 17px; font-weight: 700; color: var(--text-main); letter-spacing: -0.01em; }
|
||||
.mockup-brand-img { max-height: 28px; max-width: 140px; object-fit: contain; }
|
||||
|
||||
/* 输入表单区域 */
|
||||
.brand-form-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||
|
||||
.input-outline-group {
|
||||
position: relative; display: flex; flex-direction: column; gap: 6px;
|
||||
}
|
||||
.input-label-floating {
|
||||
font-size: 13.5px; font-weight: 700; color: var(--text-main);
|
||||
}
|
||||
.text-input-field {
|
||||
width: 100%; height: 46px; border: 1.5px solid #CBD5E1; border-radius: 10px; padding: 0 14px;
|
||||
font-size: 15px; font-weight: 600; color: var(--text-main); outline: none; transition: all 0.15s ease;
|
||||
}
|
||||
.text-input-field:focus {
|
||||
border-color: var(--color-primary); box-shadow: 0 0 0 3.5px var(--color-primary-light);
|
||||
}
|
||||
|
||||
.char-counter-row {
|
||||
display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub);
|
||||
}
|
||||
.counter-num { font-family: ui-monospace, monospace; font-weight: 700; color: var(--color-primary); }
|
||||
|
||||
/* 图片 Logo 模式上传卡 */
|
||||
.image-upload-dropzone {
|
||||
border: 2px dashed #CBD5E1; border-radius: 12px; background: #F8FAFC; padding: 24px;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
|
||||
cursor: pointer; transition: all 0.2s ease;
|
||||
}
|
||||
.image-upload-dropzone:hover {
|
||||
border-color: var(--color-primary); background: var(--color-primary-light);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav" title="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="split-body">
|
||||
<!-- 左侧 360px 模式切换与授权大盘 -->
|
||||
<div class="left-brand-panel">
|
||||
<div style="display: flex; flex-direction: column; gap: 18px;">
|
||||
<div>
|
||||
<h2 class="panel-header-title">🛡️ 品牌授权中心</h2>
|
||||
<p class="panel-header-desc">自定义顶部导航栏团队标识与商业品牌</p>
|
||||
</div>
|
||||
|
||||
<!-- 分段控制器 -->
|
||||
<div class="segmented-control-box">
|
||||
<button class="seg-btn active" id="btnModeText" onclick="switchLogoMode('text')">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>
|
||||
<span>文本 Logo</span>
|
||||
</button>
|
||||
<button class="seg-btn" id="btnModeImage" onclick="switchLogoMode('image')">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z"/></svg>
|
||||
<span>图片 Logo</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 授权规则说明卡片 -->
|
||||
<div class="brand-info-card">
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">当前模式</span>
|
||||
<b style="color: var(--color-primary);" id="curModeLabel">文本品牌名称</b>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">字符限制</span>
|
||||
<span style="font-weight: 700; color: var(--text-main);">最长 15 字符</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">全端同步</span>
|
||||
<span style="color: var(--color-success); font-weight: 700;">实时生效</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部全宽保存与恢复按钮 -->
|
||||
<div class="side-actions-stack">
|
||||
<button class="btn-dynamic-full btn-primary-gradient" id="btnSaveConfig" onclick="handleSaveConfig()">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></svg>
|
||||
<span id="btnSaveText">保存文本配置</span>
|
||||
</button>
|
||||
<button class="btn-dynamic-full btn-secondary-ghost" id="btnResetConfig" onclick="handleResetConfig()">
|
||||
<span id="btnResetText">恢复默认名称</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 1fr 实时效果模拟舱与配置工坊 -->
|
||||
<div class="right-studio-panel">
|
||||
<div class="studio-section-header">
|
||||
<span class="studio-title">顶部栏实时效果预览</span>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">所见即所得 · 支持实时输入打字渲染</span>
|
||||
</div>
|
||||
|
||||
<!-- 顶部栏实时预览模拟舱 -->
|
||||
<div class="live-mockup-container">
|
||||
<div class="mockup-appbar-frame" id="mockupFrame">
|
||||
<svg class="mockup-arrow" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<span class="mockup-brand-text" id="mockupText">EAP Manage</span>
|
||||
<img class="mockup-brand-img" id="mockupImg" src="" style="display: none;" alt="Logo Preview">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 文本模式表单 -->
|
||||
<div class="brand-form-stack" id="textModeForm">
|
||||
<div class="input-outline-group">
|
||||
<label class="input-label-floating" for="iptTeamName">输入自定义团队名称</label>
|
||||
<input type="text" class="text-input-field" id="iptTeamName" value="EAP Manage" maxlength="15" oninput="handleInputSync(this.value)">
|
||||
<div class="char-counter-row">
|
||||
<span>用于替换系统所有页面的顶部团队标头</span>
|
||||
<span class="counter-num" id="charCounter">10/15</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 图片模式表单 (点击分段器切换) -->
|
||||
<div class="brand-form-stack" id="imageModeForm" style="display: none;">
|
||||
<div class="image-upload-dropzone" onclick="triggerUpload()">
|
||||
<svg style="width: 36px; height: 36px; fill: var(--color-primary);" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>
|
||||
<b style="font-size: 14.5px;">点击上传企业 Logo 图片</b>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">建议透明背景 PNG / SVG 格式,尺寸 180×48 px,小于 2MB</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let currentMode = 'text';
|
||||
|
||||
function switchLogoMode(mode) {
|
||||
currentMode = mode;
|
||||
const btnText = document.getElementById('btnModeText');
|
||||
const btnImg = document.getElementById('btnModeImage');
|
||||
const textForm = document.getElementById('textModeForm');
|
||||
const imgForm = document.getElementById('imageModeForm');
|
||||
const curModeLabel = document.getElementById('curModeLabel');
|
||||
const btnSaveText = document.getElementById('btnSaveText');
|
||||
const btnResetText = document.getElementById('btnResetText');
|
||||
const mockupText = document.getElementById('mockupText');
|
||||
const mockupImg = document.getElementById('mockupImg');
|
||||
|
||||
if (mode === 'text') {
|
||||
btnText.className = 'seg-btn active';
|
||||
btnImg.className = 'seg-btn';
|
||||
textForm.style.display = 'flex';
|
||||
imgForm.style.display = 'none';
|
||||
curModeLabel.innerText = '文本品牌名称';
|
||||
btnSaveText.innerText = '保存文本配置';
|
||||
btnResetText.innerText = '恢复默认名称';
|
||||
mockupText.style.display = 'inline';
|
||||
mockupImg.style.display = 'none';
|
||||
} else {
|
||||
btnText.className = 'seg-btn';
|
||||
btnImg.className = 'seg-btn active';
|
||||
textForm.style.display = 'none';
|
||||
imgForm.style.display = 'flex';
|
||||
curModeLabel.innerText = '自定义图片 Logo';
|
||||
btnSaveText.innerText = '保存图片配置';
|
||||
btnResetText.innerText = '恢复默认 Logo';
|
||||
mockupText.style.display = 'none';
|
||||
mockupImg.style.display = 'inline';
|
||||
if (!mockupImg.src) {
|
||||
mockupImg.src = 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="28" viewBox="0 0 120 28"><rect width="120" height="28" rx="6" fill="%232563EB"/><text x="60" y="18" fill="white" font-size="12" font-family="sans-serif" font-weight="bold" text-anchor="middle">COMPANY LOGO</text></svg>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleInputSync(val) {
|
||||
document.getElementById('mockupText').innerText = val || 'EAP Manage';
|
||||
document.getElementById('charCounter').innerText = `${val.length}/15`;
|
||||
}
|
||||
|
||||
function handleSaveConfig() {
|
||||
alert(`已成功保存当前${currentMode === 'text' ? '文本' : '图片'} Logo 授权配置!`);
|
||||
}
|
||||
|
||||
function handleResetConfig() {
|
||||
if (currentMode === 'text') {
|
||||
document.getElementById('iptTeamName').value = 'EAP Manage';
|
||||
handleInputSync('EAP Manage');
|
||||
} else {
|
||||
alert('已恢复为默认企业 Logo!');
|
||||
}
|
||||
}
|
||||
|
||||
function triggerUpload() {
|
||||
alert('已触发本地文件选择器:支持 PNG/SVG 透明背景图片');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1 (子视图 · 图片Logo模式)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
--border-card: #E2E8F0;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-success-border: #A7F3D0;
|
||||
|
||||
--corner-card: 16px;
|
||||
--corner-item: 10px;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* 1. AppBar */
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none; transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover, .appbar-more:hover { background: rgba(15, 23, 42, 0.06); transform: scale(0.96); }
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
/* 2. 经典 360px 1fr 双栏布局 */
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-height: calc(100vh - 120px);
|
||||
}
|
||||
|
||||
/* 左侧 360px 品牌控制面板 */
|
||||
.left-brand-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.panel-header-title { font-size: 17.5px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
|
||||
.panel-header-desc { font-size: 12.5px; color: var(--text-sub); margin-top: 4px; }
|
||||
|
||||
/* 分段控制器 */
|
||||
.segmented-control-box {
|
||||
background: #F1F5F9; border-radius: 10px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
|
||||
}
|
||||
.seg-btn {
|
||||
height: 38px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
color: var(--text-sub); background: transparent;
|
||||
}
|
||||
.seg-btn.active {
|
||||
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
/* 品牌授权说明卡片 */
|
||||
.brand-info-card {
|
||||
background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 12px;
|
||||
padding: 14px; display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.info-row { display: flex; justify-content: space-between; font-size: 12.5px; }
|
||||
|
||||
/* 底部全宽保存与恢复按钮 */
|
||||
.side-actions-stack { display: flex; flex-direction: column; gap: 10px; }
|
||||
|
||||
.btn-dynamic-full {
|
||||
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||
border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: var(--color-primary-gradient); color: white;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
.btn-secondary-ghost {
|
||||
background: #FFFFFF; color: var(--text-sub); border-color: #CBD5E1;
|
||||
}
|
||||
.btn-secondary-ghost:hover { background: #F1F5F9; color: var(--text-main); }
|
||||
|
||||
/* 右侧 1fr 预览舱与编辑工坊 */
|
||||
.right-studio-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; gap: 22px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.studio-section-header {
|
||||
display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--divider);
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.studio-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
|
||||
|
||||
/* 顶部栏实时预览模拟舱 */
|
||||
.live-mockup-container {
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.mockup-appbar-frame {
|
||||
height: 56px; background: #F8FAFC; border: 1.5px dashed #94A3B8; border-radius: 12px;
|
||||
display: flex; align-items: center; padding: 0 16px; gap: 12px;
|
||||
}
|
||||
.mockup-arrow { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
|
||||
/* 图片 Logo 模式上传卡 */
|
||||
.image-upload-dropzone {
|
||||
border: 2px dashed #93C5FD; border-radius: 12px; background: var(--color-primary-light); padding: 32px 24px;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
|
||||
cursor: pointer; transition: all 0.2s ease;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav" title="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="split-body">
|
||||
<!-- 左侧 360px 模式切换与授权大盘 -->
|
||||
<div class="left-brand-panel">
|
||||
<div style="display: flex; flex-direction: column; gap: 18px;">
|
||||
<div>
|
||||
<h2 class="panel-header-title">🛡️ 品牌授权中心</h2>
|
||||
<p class="panel-header-desc">自定义顶部导航栏团队标识与商业品牌</p>
|
||||
</div>
|
||||
|
||||
<!-- 分段控制器 (激活图片Logo) -->
|
||||
<div class="segmented-control-box">
|
||||
<button class="seg-btn">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>
|
||||
<span>文本 Logo</span>
|
||||
</button>
|
||||
<button class="seg-btn active">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z"/></svg>
|
||||
<span>图片 Logo</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 授权规则说明卡片 -->
|
||||
<div class="brand-info-card">
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">当前模式</span>
|
||||
<b style="color: var(--color-primary);">自定义图片 Logo</b>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">建议尺寸</span>
|
||||
<span style="font-weight: 700; color: var(--text-main);">180 × 48 px (PNG/SVG)</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">全端同步</span>
|
||||
<span style="color: var(--color-success); font-weight: 700;">实时生效</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部全宽保存与恢复按钮 -->
|
||||
<div class="side-actions-stack">
|
||||
<button class="btn-dynamic-full btn-primary-gradient">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></svg>
|
||||
<span>保存图片配置</span>
|
||||
</button>
|
||||
<button class="btn-dynamic-full btn-secondary-ghost">
|
||||
<span>恢复默认 Logo</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 1fr 实时效果模拟舱与配置工坊 -->
|
||||
<div class="right-studio-panel">
|
||||
<div class="studio-section-header">
|
||||
<span class="studio-title">顶部栏实时效果预览</span>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">图片 Logo 实时模拟</span>
|
||||
</div>
|
||||
|
||||
<!-- 顶部栏实时预览模拟舱 (展现图片预览) -->
|
||||
<div class="live-mockup-container">
|
||||
<div class="mockup-appbar-frame">
|
||||
<svg class="mockup-arrow" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<div style="height: 30px; padding: 0 12px; background: #2563EB; border-radius: 6px; display: flex; align-items: center; color: white; font-weight: 800; font-size: 13px; letter-spacing: 0.05em;">
|
||||
COMPANY LOGO
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 图片上传工坊 -->
|
||||
<div class="image-upload-dropzone">
|
||||
<svg style="width: 44px; height: 44px; fill: var(--color-primary);" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>
|
||||
<b style="font-size: 15px; color: var(--color-primary);">点击或拖拽上传企业 Logo 图片</b>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">支持 PNG / SVG 透明背景,建议尺寸 180×48 px,单张小于 2MB</span>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 2:Fluid Brand Studio 居中工控卡片流</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.fluid-body {
|
||||
padding: clamp(24px, 3vw, 40px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; width: 100%;
|
||||
}
|
||||
.card-sheet {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; gap: 18px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="fluid-body">
|
||||
<div style="display: flex; justify-content: center;">
|
||||
<div style="display: inline-flex; background: #F1F5F9; border-radius: 10px; padding: 4px; gap: 4px;">
|
||||
<button style="height: 36px; padding: 0 20px; border: none; border-radius: 8px; background: white; color: var(--color-primary); font-weight: 700; cursor: pointer;">文本 Logo</button>
|
||||
<button style="height: 36px; padding: 0 20px; border: none; border-radius: 8px; background: transparent; color: var(--text-sub); font-weight: 700; cursor: pointer;">图片 Logo</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-sheet">
|
||||
<span style="font-size: 13px; font-weight: 700; color: var(--text-sub);">顶部栏实时效果预览</span>
|
||||
<div style="height: 52px; background: #F8FAFC; border: 1.5px dashed #94A3B8; border-radius: 10px; display: flex; align-items: center; padding: 0 16px; gap: 12px;">
|
||||
<svg style="width: 20px; height: 20px;" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<b style="font-size: 17px;">EAP Manage</b>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px;">
|
||||
<label style="font-size: 13.5px; font-weight: 700;">输入自定义团队名称</label>
|
||||
<input type="text" value="EAP Manage" style="width: 100%; height: 44px; border: 1.5px solid #CBD5E1; border-radius: 8px; padding: 0 14px; font-size: 14px;">
|
||||
<span style="align-self: flex-end; font-size: 12px; color: var(--text-sub);">10/15</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px;">
|
||||
<button style="height: 40px; padding: 0 20px; border-radius: 8px; border: 1.5px solid #CBD5E1; background: white; font-weight: 700; cursor: pointer;">恢复默认名称</button>
|
||||
<button style="height: 40px; padding: 0 24px; border-radius: 8px; border: none; background: var(--color-primary); color: white; font-weight: 700; cursor: pointer;">保存文本配置</button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,92 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:Cyber Precision 极客品牌中枢</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3B82F6;
|
||||
--bg: #0B0F19;
|
||||
--surface: #131B2E;
|
||||
--text-main: #F8FAFC;
|
||||
--text-sub: #94A3B8;
|
||||
--divider: #1E293B;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: #060911; color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.hud-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #0B0F19; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px;
|
||||
}
|
||||
.hud-card {
|
||||
background: #131B2E; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||
display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="hud-body">
|
||||
<div class="hud-card" style="justify-content: space-between;">
|
||||
<div style="display: flex; flex-direction: column; gap: 14px;">
|
||||
<h2 style="font-size: 17px; font-weight: 700; color: #60A5FA;">🛡️ 品牌模式</h2>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #0B0F19; padding: 4px; border-radius: 8px;">
|
||||
<button style="height: 36px; background: #2563EB; color: white; border: none; border-radius: 6px; font-weight: 700;">文本 Logo</button>
|
||||
<button style="height: 36px; background: transparent; color: var(--text-sub); border: none; font-weight: 700;">图片 Logo</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 10px;">
|
||||
<button style="width: 100%; height: 42px; background: #2563EB; color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;">保存文本配置</button>
|
||||
<button style="width: 100%; height: 42px; background: #0B0F19; color: var(--text-sub); border: 1px solid #1E293B; border-radius: 8px; font-weight: 700; cursor: pointer;">恢复默认名称</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hud-card">
|
||||
<h3 style="color: #60A5FA; font-size: 14px;">实时渲染模拟</h3>
|
||||
<div style="height: 52px; background: #0B0F19; border: 1.5px dashed #3B82F6; border-radius: 8px; display: flex; align-items: center; padding: 0 16px; gap: 10px;">
|
||||
<svg style="width: 20px; height: 20px; fill: #F8FAFC;" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<b style="color: #60A5FA; font-size: 17px;">EAP Manage</b>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px; margin-top: 10px;">
|
||||
<label style="color: var(--text-sub); font-size: 13px;">自定义团队名称</label>
|
||||
<input type="text" value="EAP Manage" style="width: 100%; height: 44px; background: #0B0F19; border: 1px solid #1E293B; border-radius: 8px; color: #F8FAFC; padding: 0 14px; font-size: 14px;">
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Nordic Slate 极净工业定制卡</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #F8FAFC;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: #F1F5F9; color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.nordic-body {
|
||||
padding: clamp(24px, 3vw, 40px); background: #FFFFFF; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="nordic-body">
|
||||
<div style="display: flex; justify-content: center;">
|
||||
<div style="display: flex; border: 1px solid var(--divider); border-radius: 6px; overflow: hidden;">
|
||||
<button style="height: 36px; padding: 0 20px; border: none; background: var(--color-primary); color: white; font-weight: 700;">文本 Logo</button>
|
||||
<button style="height: 36px; padding: 0 20px; border: none; background: white; color: var(--text-sub); font-weight: 700;">图片 Logo</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 8px;">
|
||||
<span style="font-size: 13px; font-weight: 700; color: var(--text-sub);">顶部栏实时效果预览</span>
|
||||
<div style="height: 48px; border: 1px solid var(--divider); border-radius: 6px; display: flex; align-items: center; padding: 0 14px; gap: 10px;">
|
||||
<svg style="width: 20px; height: 20px;" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<b style="font-size: 16px;">EAP Manage</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px;">
|
||||
<label style="font-size: 13.5px; font-weight: 700;">输入自定义团队名称</label>
|
||||
<input type="text" value="EAP Manage" style="width: 100%; height: 42px; border: 1px solid var(--divider); border-radius: 6px; padding: 0 12px; font-size: 14px;">
|
||||
</div>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end; gap: 10px;">
|
||||
<button style="height: 38px; padding: 0 16px; border: 1px solid var(--divider); background: white; border-radius: 6px; font-weight: 700; cursor: pointer;">恢复默认名称</button>
|
||||
<button style="height: 38px; padding: 0 20px; border: none; background: var(--color-primary); color: white; border-radius: 6px; font-weight: 700; cursor: pointer;">保存文本配置</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:Neo-Bento 品牌矩阵</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.bento-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
|
||||
}
|
||||
.b-card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="bento-body">
|
||||
<div class="b-card" style="grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center;">
|
||||
<span style="font-weight: 700;">品牌标识模式</span>
|
||||
<div style="display: flex; gap: 6px; background: #F1F5F9; padding: 4px; border-radius: 8px;">
|
||||
<button style="border: none; background: white; color: var(--color-primary); padding: 6px 16px; border-radius: 6px; font-weight: 700;">文本 Logo</button>
|
||||
<button style="border: none; background: transparent; color: var(--text-sub); padding: 6px 16px; border-radius: 6px; font-weight: 700;">图片 Logo</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="b-card" style="grid-column: 1 / -1;">
|
||||
<span style="font-size: 13px; font-weight: 700; color: var(--text-sub);">实时模拟</span>
|
||||
<div style="height: 50px; background: #F8FAFC; border: 1.5px dashed #94A3B8; border-radius: 8px; display: flex; align-items: center; padding: 0 16px; gap: 12px;">
|
||||
<svg style="width: 20px; height: 20px;" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<b style="font-size: 17px;">EAP Manage</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="b-card" style="grid-column: 1 / -1;">
|
||||
<label style="font-weight: 700;">输入自定义团队名称</label>
|
||||
<input type="text" value="EAP Manage" style="height: 42px; border: 1.5px solid #CBD5E1; border-radius: 8px; padding: 0 12px;">
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Logo授权管理 - 5套重构方案决策中心</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #2563EB;
|
||||
--bg: #0B0F19;
|
||||
--panel: #131B2E;
|
||||
--border: #1E293B;
|
||||
--text: #F8FAFC;
|
||||
--text-sub: #94A3B8;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.header-bar {
|
||||
padding: 16px 24px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.hub-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
|
||||
.tabs-row { display: flex; gap: 8px; }
|
||||
.tab-btn {
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
border: 1px solid var(--border);
|
||||
background: #1E293B;
|
||||
color: var(--text-sub);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.tab-btn.active {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.preview-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px;
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
background: white;
|
||||
min-height: 720px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header-bar">
|
||||
<div class="hub-title">
|
||||
<span>🛡️ Logo授权管理 5套候选方案决策中心</span>
|
||||
<span style="font-size: 12px; background: rgba(37,99,235,0.2); color: #60A5FA; padding: 2px 8px; border-radius: 100px;">文本Logo / 图片Logo 双模式</span>
|
||||
</div>
|
||||
<div class="tabs-row">
|
||||
<button class="tab-btn active" onclick="switchOpt(1, this)">方案 1:Master-Detail Inset Studio 经典双栏 (360px 1fr·推荐)</button>
|
||||
<button class="tab-btn" onclick="switchOpt(2, this)">方案 2:Fluid Brand Studio 居中工控卡片流</button>
|
||||
<button class="tab-btn" onclick="switchOpt(3, this)">方案 3:Cyber Precision 极客品牌中枢</button>
|
||||
<button class="tab-btn" onclick="switchOpt(4, this)">方案 4:Nordic Slate 极净工业定制卡</button>
|
||||
<button class="tab-btn" onclick="switchOpt(5, this)">方案 5:Neo-Bento 品牌矩阵</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="preview-container">
|
||||
<iframe id="previewFrame" src="option_1_master_detail_studio.html"></iframe>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const files = {
|
||||
1: 'option_1_master_detail_studio.html',
|
||||
2: 'option_2_fluid_workbench.html',
|
||||
3: 'option_3_cyber_brand_hub.html',
|
||||
4: 'option_4_nordic_slate_sheet.html',
|
||||
5: 'option_5_neo_bento_brand.html'
|
||||
};
|
||||
function switchOpt(num, btn) {
|
||||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
document.getElementById('previewFrame').src = files[num];
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 34 KiB |
@@ -38,7 +38,7 @@
|
||||
| 8 | `设备数据库管理/` | `Screenshot_20260812_143432.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 9 | `数据上传/` | `Screenshot_20260812_143450.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 10 | `版本信息/` | `Screenshot_20260812_143456.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 11 | `Logo授权管理/` | `Screenshot_20260812_143502.png` | ❌ | 待办 · 有旧基准¹ |
|
||||
| 11 | `Logo授权管理/` | `Screenshot_20260812_143502.png` | ✅ | **已完工**(6 件齐) |
|
||||
|
||||
> ¹ **旧基准复用**:这 3 页(外加已完工的语言设置、版型切换)曾在 `系统设置界面-20260816/` 产出过 `baseline_ui.html` / `DESIGN_SPEC.md` / `implementation_plan.md`。接手时**必须先读旧物料再动手**,不要从零重写,避免与已交付的 Token 基准打架。
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# JIRA 任务卡:CARD-20260817-UITask-Logo授权管理
|
||||
|
||||
- **任务 ID**: `CARD-20260817-UITask-Logo授权管理`
|
||||
- **模块名称**: 设置 / Logo 授权管理
|
||||
- **设计风格**: 方案 1 · Master-Detail Inset Studio 经典双栏 (360px 1fr)
|
||||
- **状态**: `READY_FOR_RELEASE`
|
||||
- **创建时间**: 2026-08-17
|
||||
|
||||
---
|
||||
|
||||
## 1. 业务目标与需求
|
||||
|
||||
1. **统一色彩规范**:严格对齐项目主色调 `#2563EB`(Royal Blue)体系,分段控制器激活态与主按钮采用统一科技蓝。
|
||||
2. **黄金栅格比例**:采用 `360px : 1fr` 经典双栏比例,左侧为品牌模式控制大盘,右侧为所见即所得的顶部栏模拟舱与编辑工坊。
|
||||
3. **真实交互闭环**:
|
||||
- 支持【文本 Logo】与【图片 Logo】双模式平滑切换;
|
||||
- 文本模式下输入自定义团队名称,右侧顶部模拟舱实时 0 延迟渲染打字内容,并带 `10/15` 计数与超长警告;
|
||||
- 图片模式下支持真实选择本地 PNG/SVG 透明背景图片并即刻在模拟舱内呈现;
|
||||
- 底部全宽保存与恢复默认按钮根据模式动态联动文案与重置逻辑。
|
||||
|
||||
---
|
||||
|
||||
## 2. 验收清单 (Acceptance Criteria)
|
||||
|
||||
- [x] AppBar 标题为 `← Logo 授权管理`,带标准返回与更多功能操作。
|
||||
- [x] 左侧 360px 控制面板包含分段切换器、授权说明卡片与全宽保存/恢复按钮。
|
||||
- [x] 右侧 1fr 包含顶部栏模拟舱,实时动态回显文本打字与图片上传。
|
||||
- [x] 支持真实本地文件选取与预设 Logo 切换体验。
|
||||
- [x] 无头渲染输出 1200x800 高清效果图 `image.png`。
|
||||
@@ -0,0 +1,46 @@
|
||||
# Logo 授权管理 - 工业级 UI 重构设计规范 (Design Spec)
|
||||
|
||||
## 1. 架构与定位 (Architecture & Positioning)
|
||||
|
||||
本模块为系统级品牌授权与个性化定制中心,允许企业客户在【文本 Logo】与【图片 Logo】两种模式间自由切换,自定义配置全系统所有页面的顶部导航栏团队标识,并在右侧模拟舱中提供所见即所得的实时输入与图片上传预览。
|
||||
|
||||
---
|
||||
|
||||
## 2. 设计规范与色彩系统 (Design Tokens & Color Palette)
|
||||
|
||||
严格对齐项目主色调 `#2563EB` 与调和语义色规范:
|
||||
|
||||
| Token 变量名 | 色值 / 规范 | 应用场景 |
|
||||
| :--- | :--- | :--- |
|
||||
| `--color-primary` | `#2563EB` (Royal Blue) | 主品牌色、分段控件激活态、保存主按钮 |
|
||||
| `--color-primary-dark` | `#1D4ED8` | 主按钮悬停与渐变深色端 |
|
||||
| `--color-primary-light` | `#EFF6FF` | 授权说明微底、拖拽上传区域背景 |
|
||||
| `--color-primary-border` | `#DBEAFE` | 授权说明边框 |
|
||||
| `--color-primary-gradient` | `linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%)` | 保存全宽贯穿式按钮背景 |
|
||||
| `--color-success` | `#059669` (Emerald) | 实时生效状态标签 |
|
||||
| `--color-danger` | `#E11D48` (Rose) | 超长字符警告态 (超过 15 字符) |
|
||||
|
||||
---
|
||||
|
||||
## 3. 布局与比例规范 (Layout & Ratio)
|
||||
|
||||
采用与全局设置子页面 100% 对齐的 **360px : 1fr** 黄金双栏比例:
|
||||
- **左侧 360px 品牌控制大盘**:
|
||||
- 模块标题与副标题描述;
|
||||
- `文本 Logo` 与 `图片 Logo` 平滑切换分段器;
|
||||
- 品牌授权规则说明卡片(动态响应当前模式、字数/尺寸限制与生效机制);
|
||||
- 底部贯穿式全宽 `保存文本配置 / 保存图片配置` 与 `恢复默认` 操作组。
|
||||
- **右侧 1fr 实时效果模拟舱与配置工坊**:
|
||||
- 顶部栏实时效果模拟器(所见即所得,打字或选图即刻 0 延迟动态回显);
|
||||
- 文本模式:带悬浮标签的自定义团队名称输入框,配备实时 `10/15` 字数计数器;
|
||||
- 图片模式:高质感拖拽与点击上传区域(支持 PNG/SVG 透明背景),附带企业预设快捷体验 Chip。
|
||||
|
||||
---
|
||||
|
||||
## 4. 交付文件清单 (Deliverables)
|
||||
|
||||
1. `baseline_ui.html`:生产级无头渲染 HTML 源代码(支持完整双模式与真实文件上传交互)。
|
||||
2. `image.png`:1200x800 高清定稿预览效果截图。
|
||||
3. `DESIGN_SPEC.md`:本设计规范。
|
||||
4. `implementation_plan.md`:原生与前端工程实施方案。
|
||||
5. `CARD-20260817-UITask-Logo授权管理.md`:JIRA 重构研发任务卡。
|
||||
@@ -0,0 +1,437 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Logo 授权管理 - Master-Detail Inset Studio (全功能交互版)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
全局统一色彩与 Design Tokens (严格对齐 #2563EB 体系)
|
||||
========================================================================= */
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
--border-card: #E2E8F0;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-success-border: #A7F3D0;
|
||||
|
||||
--color-warning: #D97706;
|
||||
--color-warning-bg: #FFFBEB;
|
||||
--color-warning-border: #FDE68A;
|
||||
|
||||
--color-danger: #E11D48;
|
||||
--color-danger-bg: #FFF1F2;
|
||||
--color-danger-border: #FFE4E6;
|
||||
|
||||
--corner-card: 16px;
|
||||
--corner-item: 10px;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* 1. AppBar */
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none; transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover, .appbar-more:hover { background: rgba(15, 23, 42, 0.06); transform: scale(0.96); }
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
/* 2. 经典 360px 1fr 双栏布局 */
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-height: calc(100vh - 120px);
|
||||
}
|
||||
|
||||
/* 左侧 360px 品牌控制面板 */
|
||||
.left-brand-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.panel-header-title { font-size: 17.5px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
|
||||
.panel-header-desc { font-size: 12.5px; color: var(--text-sub); margin-top: 4px; }
|
||||
|
||||
/* 分段控制器 */
|
||||
.segmented-control-box {
|
||||
background: #F1F5F9; border-radius: 10px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
|
||||
}
|
||||
.seg-btn {
|
||||
height: 38px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
color: var(--text-sub); background: transparent;
|
||||
}
|
||||
.seg-btn.active {
|
||||
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
/* 品牌授权说明卡片 */
|
||||
.brand-info-card {
|
||||
background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 12px;
|
||||
padding: 14px; display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.info-row { display: flex; justify-content: space-between; font-size: 12.5px; }
|
||||
|
||||
/* 底部全宽保存与恢复按钮 */
|
||||
.side-actions-stack { display: flex; flex-direction: column; gap: 10px; }
|
||||
|
||||
.btn-dynamic-full {
|
||||
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||
border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: var(--color-primary-gradient); color: white;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
.btn-secondary-ghost {
|
||||
background: #FFFFFF; color: var(--text-sub); border-color: #CBD5E1;
|
||||
}
|
||||
.btn-secondary-ghost:hover { background: #F1F5F9; color: var(--text-main); }
|
||||
|
||||
/* 右侧 1fr 预览舱与编辑工坊 */
|
||||
.right-studio-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.studio-section-header {
|
||||
display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--divider);
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.studio-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
|
||||
|
||||
/* 顶部栏实时预览模拟舱 (Live Mockup Bar) */
|
||||
.live-mockup-container {
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.mockup-label { font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
|
||||
|
||||
.mockup-appbar-frame {
|
||||
height: 56px; background: #F8FAFC; border: 1.5px dashed #94A3B8; border-radius: 12px;
|
||||
display: flex; align-items: center; padding: 0 16px; gap: 12px; transition: all 0.2s ease;
|
||||
}
|
||||
.mockup-arrow { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.mockup-brand-text { font-size: 17px; font-weight: 700; color: var(--text-main); letter-spacing: -0.01em; }
|
||||
.mockup-brand-img { max-height: 32px; max-width: 160px; object-fit: contain; }
|
||||
|
||||
/* 文本模式表单 */
|
||||
.brand-form-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||
|
||||
.input-outline-group {
|
||||
position: relative; display: flex; flex-direction: column; gap: 6px;
|
||||
}
|
||||
.input-label-floating {
|
||||
font-size: 13.5px; font-weight: 700; color: var(--text-main);
|
||||
}
|
||||
.text-input-field {
|
||||
width: 100%; height: 46px; border: 1.5px solid #CBD5E1; border-radius: 10px; padding: 0 14px;
|
||||
font-size: 15px; font-weight: 600; color: var(--text-main); outline: none; transition: all 0.15s ease;
|
||||
}
|
||||
.text-input-field:focus {
|
||||
border-color: var(--color-primary); box-shadow: 0 0 0 3.5px var(--color-primary-light);
|
||||
}
|
||||
|
||||
.char-counter-row {
|
||||
display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub);
|
||||
}
|
||||
.counter-num { font-family: ui-monospace, monospace; font-weight: 700; color: var(--color-primary); }
|
||||
|
||||
/* 图片 Logo 模式上传卡与预设选择器 */
|
||||
.image-upload-dropzone {
|
||||
border: 2px dashed #93C5FD; border-radius: 12px; background: var(--color-primary-light); padding: 24px;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
|
||||
cursor: pointer; transition: all 0.2s ease;
|
||||
}
|
||||
.image-upload-dropzone:hover {
|
||||
border-color: var(--color-primary); background: #DBEAFE;
|
||||
}
|
||||
|
||||
.preset-logos-row {
|
||||
display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px;
|
||||
}
|
||||
.preset-chip {
|
||||
height: 30px; padding: 0 12px; border-radius: 6px; background: #F1F5F9; border: 1px solid var(--divider);
|
||||
font-size: 12px; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; align-items: center;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.preset-chip:hover {
|
||||
background: var(--color-primary-light); border-color: var(--color-primary-border); color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* Toast 提示 */
|
||||
.toast-notice {
|
||||
position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
|
||||
background: #0F172A; color: white; padding: 12px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 8px; pointer-events: none;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
|
||||
}
|
||||
.toast-notice.show {
|
||||
transform: translateX(-50%) translateY(0); opacity: 1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav" title="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">Logo 授权管理</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="split-body">
|
||||
<!-- 左侧 360px 模式切换与授权大盘 -->
|
||||
<div class="left-brand-panel">
|
||||
<div style="display: flex; flex-direction: column; gap: 18px;">
|
||||
<div>
|
||||
<h2 class="panel-header-title">🛡️ 品牌授权中心</h2>
|
||||
<p class="panel-header-desc">自定义顶部导航栏团队标识与商业品牌</p>
|
||||
</div>
|
||||
|
||||
<!-- 分段控制器 -->
|
||||
<div class="segmented-control-box">
|
||||
<button class="seg-btn active" id="btnModeText" onclick="switchLogoMode('text')">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>
|
||||
<span>文本 Logo</span>
|
||||
</button>
|
||||
<button class="seg-btn" id="btnModeImage" onclick="switchLogoMode('image')">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z"/></svg>
|
||||
<span>图片 Logo</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 授权规则说明卡片 -->
|
||||
<div class="brand-info-card">
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">当前模式</span>
|
||||
<b style="color: var(--color-primary);" id="curModeLabel">文本品牌名称</b>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);" id="infoLimitLabel">字符限制</span>
|
||||
<span style="font-weight: 700; color: var(--text-main);" id="infoLimitVal">最长 15 字符</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span style="color: var(--text-sub);">全端同步</span>
|
||||
<span style="color: var(--color-success); font-weight: 700;">实时生效</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部全宽保存与恢复按钮 -->
|
||||
<div class="side-actions-stack">
|
||||
<button class="btn-dynamic-full btn-primary-gradient" id="btnSaveConfig" onclick="handleSaveConfig()">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></svg>
|
||||
<span id="btnSaveText">保存文本配置</span>
|
||||
</button>
|
||||
<button class="btn-dynamic-full btn-secondary-ghost" id="btnResetConfig" onclick="handleResetConfig()">
|
||||
<span id="btnResetText">恢复默认名称</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 1fr 实时效果模拟舱与配置工坊 -->
|
||||
<div class="right-studio-panel">
|
||||
<div>
|
||||
<div class="studio-section-header">
|
||||
<span class="studio-title">顶部栏实时效果预览</span>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">所见即所得 · 打字/选图即时同步渲染</span>
|
||||
</div>
|
||||
|
||||
<!-- 顶部栏实时预览模拟舱 (Live Mockup Bar) -->
|
||||
<div class="live-mockup-container" style="margin-top: 14px;">
|
||||
<div class="mockup-appbar-frame" id="mockupFrame">
|
||||
<svg class="mockup-arrow" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>
|
||||
<span class="mockup-brand-text" id="mockupText">EAP Manage</span>
|
||||
<img class="mockup-brand-img" id="mockupImg" src="" style="display: none;" alt="Logo Preview">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 文本模式表单 -->
|
||||
<div class="brand-form-stack" id="textModeForm">
|
||||
<div class="input-outline-group">
|
||||
<label class="input-label-floating" for="iptTeamName">输入自定义团队名称</label>
|
||||
<input type="text" class="text-input-field" id="iptTeamName" value="EAP Manage" maxlength="15" oninput="handleInputSync(this.value)">
|
||||
<div class="char-counter-row">
|
||||
<span>用于替换系统所有页面的顶部团队标头</span>
|
||||
<span class="counter-num" id="charCounter">10/15</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 图片模式表单 (可点击真机上传文件,也可选择预设) -->
|
||||
<div class="brand-form-stack" id="imageModeForm" style="display: none;">
|
||||
<input type="file" id="realFileInput" accept="image/png, image/svg+xml, image/jpeg" style="display: none;" onchange="handleRealFileSelected(event)">
|
||||
|
||||
<div class="image-upload-dropzone" onclick="document.getElementById('realFileInput').click()">
|
||||
<svg style="width: 36px; height: 36px; fill: var(--color-primary);" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>
|
||||
<b style="font-size: 14.5px; color: var(--color-primary);" id="uploadZoneText">点击或拖拽上传企业 Logo 图片</b>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">支持 PNG / SVG 透明背景,建议尺寸 180×48 px,单张小于 2MB</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">快速预设体验:</span>
|
||||
<div class="preset-logos-row">
|
||||
<button class="preset-chip" onclick="applyPresetLogo('MedTech', '%23059669', '🏥 MedTech Pro')">🏥 医疗健康 (MedTech)</button>
|
||||
<button class="preset-chip" onclick="applyPresetLogo('GymHub', '%232563EB', '⚡ GYM HUB')">⚡ 极客健身 (GymHub)</button>
|
||||
<button class="preset-chip" onclick="applyPresetLogo('UmiLab', '%23E11D48', '🧬 UmiLab AI')">🧬 智能实验室 (UmiLab)</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div class="toast-notice" id="toastBox">
|
||||
<span id="toastIcon">✅</span>
|
||||
<span id="toastMsg">配置已保存!</span>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let currentMode = 'text';
|
||||
|
||||
function showToast(msg, icon = '✅') {
|
||||
const toast = document.getElementById('toastBox');
|
||||
document.getElementById('toastMsg').innerText = msg;
|
||||
document.getElementById('toastIcon').innerText = icon;
|
||||
toast.classList.add('show');
|
||||
setTimeout(() => toast.classList.remove('show'), 2400);
|
||||
}
|
||||
|
||||
function switchLogoMode(mode) {
|
||||
currentMode = mode;
|
||||
const btnText = document.getElementById('btnModeText');
|
||||
const btnImg = document.getElementById('btnModeImage');
|
||||
const textForm = document.getElementById('textModeForm');
|
||||
const imgForm = document.getElementById('imageModeForm');
|
||||
const curModeLabel = document.getElementById('curModeLabel');
|
||||
const infoLimitLabel = document.getElementById('infoLimitLabel');
|
||||
const infoLimitVal = document.getElementById('infoLimitVal');
|
||||
const btnSaveText = document.getElementById('btnSaveText');
|
||||
const btnResetText = document.getElementById('btnResetText');
|
||||
const mockupText = document.getElementById('mockupText');
|
||||
const mockupImg = document.getElementById('mockupImg');
|
||||
|
||||
if (mode === 'text') {
|
||||
btnText.className = 'seg-btn active';
|
||||
btnImg.className = 'seg-btn';
|
||||
textForm.style.display = 'flex';
|
||||
imgForm.style.display = 'none';
|
||||
curModeLabel.innerText = '文本品牌名称';
|
||||
infoLimitLabel.innerText = '字符限制';
|
||||
infoLimitVal.innerText = '最长 15 字符';
|
||||
btnSaveText.innerText = '保存文本配置';
|
||||
btnResetText.innerText = '恢复默认名称';
|
||||
mockupText.style.display = 'inline';
|
||||
mockupImg.style.display = 'none';
|
||||
} else {
|
||||
btnText.className = 'seg-btn';
|
||||
btnImg.className = 'seg-btn active';
|
||||
textForm.style.display = 'none';
|
||||
imgForm.style.display = 'flex';
|
||||
curModeLabel.innerText = '自定义图片 Logo';
|
||||
infoLimitLabel.innerText = '建议规格';
|
||||
infoLimitVal.innerText = '180×48 px (PNG/SVG)';
|
||||
btnSaveText.innerText = '保存图片配置';
|
||||
btnResetText.innerText = '恢复默认 Logo';
|
||||
mockupText.style.display = 'none';
|
||||
mockupImg.style.display = 'inline';
|
||||
if (!mockupImg.src) {
|
||||
applyPresetLogo('MedTech', '%232563EB', 'COMPANY LOGO');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleInputSync(val) {
|
||||
document.getElementById('mockupText').innerText = val || 'EAP Manage';
|
||||
const counter = document.getElementById('charCounter');
|
||||
counter.innerText = `${val.length}/15`;
|
||||
counter.style.color = val.length > 15 ? 'var(--color-danger)' : 'var(--color-primary)';
|
||||
}
|
||||
|
||||
function handleRealFileSelected(event) {
|
||||
const file = event.target.files[0];
|
||||
if (file) {
|
||||
const reader = new FileReader();
|
||||
reader.onload = function(e) {
|
||||
const mockupImg = document.getElementById('mockupImg');
|
||||
mockupImg.src = e.target.result;
|
||||
document.getElementById('uploadZoneText').innerText = `已载入: ${file.name} (${Math.round(file.size/1024)} KB)`;
|
||||
showToast(`已成功载入图片 ${file.name}!顶部栏已即时预览`);
|
||||
};
|
||||
reader.readAsDataURL(file);
|
||||
}
|
||||
}
|
||||
|
||||
function applyPresetLogo(tag, colorHex, textLabel) {
|
||||
const mockupImg = document.getElementById('mockupImg');
|
||||
mockupImg.src = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="32" viewBox="0 0 140 32"><rect width="140" height="32" rx="6" fill="${colorHex}"/><text x="70" y="21" fill="white" font-size="13" font-family="sans-serif" font-weight="bold" text-anchor="middle">${textLabel}</text></svg>`;
|
||||
document.getElementById('uploadZoneText').innerText = `已应用预设: ${textLabel}`;
|
||||
showToast(`已应用预设 Logo:${textLabel}`);
|
||||
}
|
||||
|
||||
function handleSaveConfig() {
|
||||
if (currentMode === 'text') {
|
||||
const val = document.getElementById('iptTeamName').value.trim();
|
||||
showToast(`文本配置已保存!全端顶部标头已同步为 "${val || 'EAP Manage'}"`);
|
||||
} else {
|
||||
showToast('图片 Logo 配置已成功保存并下发全端!');
|
||||
}
|
||||
}
|
||||
|
||||
function handleResetConfig() {
|
||||
if (currentMode === 'text') {
|
||||
document.getElementById('iptTeamName').value = 'EAP Manage';
|
||||
handleInputSync('EAP Manage');
|
||||
showToast('已恢复默认团队名称: EAP Manage');
|
||||
} else {
|
||||
applyPresetLogo('Default', '%232563EB', 'COMPANY LOGO');
|
||||
document.getElementById('uploadZoneText').innerText = '点击或拖拽上传企业 Logo 图片';
|
||||
showToast('已恢复为默认企业 Logo');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 73 KiB |
@@ -0,0 +1,42 @@
|
||||
# Logo 授权管理 - 工程实施方案 (Implementation Plan)
|
||||
|
||||
## 1. 数据模型与接口规范 (Data Model & Schema)
|
||||
|
||||
```typescript
|
||||
export type LogoMode = 'TEXT' | 'IMAGE';
|
||||
|
||||
export interface LogoAuthorizationConfig {
|
||||
mode: LogoMode; // 当前生效模式
|
||||
customTeamName: string; // 自定义团队文本名称 (最长 15 字符)
|
||||
imageLogoUri?: string; // 自定义 Logo 图片本地/云端 URI
|
||||
lastUpdated: string; // 更新时间戳
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. 状态机与双向同步流程 (State Machine & Workflow)
|
||||
|
||||
```mermaid
|
||||
stateDiagram-v2
|
||||
[*] --> LoadConfig: 读取本地 SharedPreferences / MMKV 品牌持久化配置
|
||||
LoadConfig --> TextMode: 模式为 TEXT
|
||||
LoadConfig --> ImageMode: 模式为 IMAGE
|
||||
TextMode --> MockupSyncText: 输入框打字 / 字符计数联动
|
||||
ImageMode --> MockupSyncImage: 上传图片 / 预设切换
|
||||
MockupSyncText --> SaveConfig: 点击保存
|
||||
MockupSyncImage --> SaveConfig: 点击保存
|
||||
SaveConfig --> GlobalAppBarBroadcast: 全局 EventBus / ViewModel 广播更新系统 AppBar
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 原生实施映射 (Native Implementation Mapping)
|
||||
|
||||
- **Android (Kotlin / Jetpack Compose)**:
|
||||
- 左侧 `Card(modifier = Modifier.width(360.dp))` 包含 `SingleChoiceSegmentedButtonRow`;
|
||||
- 右侧 `TopAppBar` 模拟舱使用 `SubcomposeLayout` 或 `Box`,依据 `logoMode` 动态渲染 `Text(teamName)` 或 `AsyncImage(model = logoUri)`;
|
||||
- 图片选择基于 Android `ActivityResultContracts.PickVisualMedia()`。
|
||||
- **Flutter**:
|
||||
- `SegmentedButton<LogoMode>` 控制模式切换;
|
||||
- 文本输入使用 `TextEditingController`,双向绑定 `AppBar` 预览组件。
|
||||