feat(works): 新增成品「开发文档中心 · 甄房」

- 回收 ZhenOS-SH/ruoyi-ui public/devdoc 静态站(16 文件 / 3.69 MB)到 works/devdoc
- 目录页 5 分类 21 条文档 + 10 个子页(业务全流程流程图 mermaid / 菜单图标选型 / 头像素材规范等)
- works.js 追加索引(文档类),works.html 版本 bump
This commit is contained in:
sgp
2026-11-15 22:48:48 +08:00
parent e801e14575
commit 12f8b65e1c
18 changed files with 8286 additions and 1 deletions
+275
View File
@@ -0,0 +1,275 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>系统加载动画方案 · 甄房</title>
<style>
:root { --brand: #0070f2; --brand-bright: #2f72ff; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
background: #0d131c; color: #e8eef7;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
"Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
.toolbar {
position: sticky; top: 0; z-index: 99;
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding: 12px 18px; background: rgba(13, 20, 30, .94);
border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
}
.toolbar h1 { margin: 0; font-size: 15px; font-weight: 600; }
.toolbar .sub { font-size: 12px; color: #7f8ea3; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 12.5px;
color: #aab7c7; background: rgba(255,255,255,.06); border: 1px solid transparent; transition: .16s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.tab.active { color: #fff; background: var(--brand); }
.toolbar button.replay {
margin-left: auto; padding: 7px 15px; border-radius: 8px; cursor: pointer;
border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font-size: 12.5px;
}
.toolbar button.replay:hover { background: rgba(255,255,255,.16); }
main { padding: 18px; }
.stage {
position: relative; height: calc(100vh - 86px); min-height: 560px;
border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.09);
display: none; isolation: isolate;
}
.stage.active { display: block; }
/* 加载层通用 */
.loading-layer {
position: absolute; inset: 0; z-index: 5;
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 18px;
}
.load-title { font-size: 15px; letter-spacing: 2px; opacity: .92; }
.load-sub { font-size: 11.5px; opacity: .55; letter-spacing: 1px; }
/* ========== 1. 品牌脉冲 ========== */
.s1 { background: radial-gradient(120% 120% at 50% 35%, #103a6b 0%, #0a1c33 55%, #060f1a 100%); }
.s1 .pulse-wrap { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.s1 .ring {
position: absolute; inset: 0; border-radius: 50%;
border: 2px solid rgba(80, 160, 255, .35); animation: s1ring 2s ease-out infinite;
}
.s1 .ring.r2 { animation-delay: .7s; }
.s1 .ring.r3 { animation-delay: 1.4s; }
.s1 .core {
width: 50px; height: 50px; border-radius: 15px;
background: linear-gradient(145deg, #2f72ff, #0070f2);
display: flex; align-items: center; justify-content: center;
font-size: 24px; font-weight: 700; color: #fff;
box-shadow: 0 10px 30px rgba(0,112,242,.55);
animation: s1pulse 2s ease-in-out infinite;
}
.s1 .core img { width: 28px; height: 28px; object-fit: contain; }
@keyframes s1ring { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes s1pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
/* ========== 2. 双门帘 + 圆环(现有方案优化) ========== */
.s2 { background: #0a2b52; }
.s2 .curtain { position: absolute; top: 0; bottom: 0; width: 51%; background: linear-gradient(180deg, #0a2b52, #071a30); }
.s2 .curtain.left { left: 0; }
.s2 .curtain.right { right: 0; }
.s2 .spinner {
width: 46px; height: 46px; border-radius: 50%;
border: 3px solid rgba(255,255,255,.12); border-top-color: #4d9bff;
animation: s2spin 1s linear infinite;
}
.s2 .bar { width: 180px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.s2 .bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, #0070f2, #58b6ff); animation: s2load 1.6s ease-in-out infinite; }
@keyframes s2spin { to { transform: rotate(360deg); } }
@keyframes s2load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
/* ========== 3. 三点跳动 ========== */
.s3 { background: linear-gradient(160deg, #f4f8ff 0%, #e8f0fb 100%); color: #1f2329; }
.s3 .load-title { color: #3d4a5c; }
.s3 .load-sub { color: #8a939e; }
.s3 .dots { display: flex; gap: 10px; }
.s3 .dots i {
width: 13px; height: 13px; border-radius: 50%;
background: linear-gradient(145deg, #2f72ff, #0070f2);
animation: s3bounce 1.1s ease-in-out infinite;
}
.s3 .dots i:nth-child(2) { animation-delay: .16s; }
.s3 .dots i:nth-child(3) { animation-delay: .32s; }
.s3 .bar { width: 220px; height: 4px; border-radius: 4px; background: #dbe6f5; overflow: hidden; }
.s3 .bar i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, #0070f2, #61a9ff); animation: s3load 1.5s ease-in-out infinite; }
@keyframes s3bounce { 0%,80%,100% { transform: translateY(0); opacity: .6; } 40% { transform: translateY(-13px); opacity: 1; } }
@keyframes s3load { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
/* ========== 4. 房屋描边 ========== */
.s4 { background: linear-gradient(150deg, #081c33 0%, #0c2a4a 60%, #0a1a2b 100%); }
.s4 svg.house { width: 108px; height: 108px; }
.s4 svg.house path, .s4 svg.house polyline, .s4 svg.house rect {
fill: none; stroke: #58b6ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
stroke-dasharray: 320; stroke-dashoffset: 320;
animation: s4draw 2.4s ease-in-out infinite;
}
.s4 svg.house .door { animation-delay: .5s; }
.s4 .glow { position: absolute; width: 260px; height: 260px; border-radius: 50%;
background: radial-gradient(circle, rgba(0,112,242,.28), transparent 65%); filter: blur(8px); }
@keyframes s4draw { 0% { stroke-dashoffset: 320; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -320; } }
/* ========== 5. 方块波浪 ========== */
.s5 { background: #071827; }
.s5 .grid { display: flex; gap: 8px; }
.s5 .grid i {
width: 14px; height: 34px; border-radius: 4px;
background: linear-gradient(180deg, #58b6ff, #0070f2);
animation: s5wave 1.2s ease-in-out infinite;
}
.s5 .grid i:nth-child(1) { animation-delay: 0s; }
.s5 .grid i:nth-child(2) { animation-delay: .1s; }
.s5 .grid i:nth-child(3) { animation-delay: .2s; }
.s5 .grid i:nth-child(4) { animation-delay: .3s; }
.s5 .grid i:nth-child(5) { animation-delay: .4s; }
@keyframes s5wave { 0%,100% { transform: scaleY(.45); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
/* ========== 6. 极简百分比 ========== */
.s6 { background: #f7f9fc; color: #1f2329; }
.s6 .load-title { color: #3d4a5c; font-size: 14px; }
.s6 .pct { font-size: 40px; font-weight: 300; letter-spacing: 1px; color: #0070f2; font-variant-numeric: tabular-nums; }
.s6 .pct small { font-size: 14px; font-weight: 500; margin-left: 3px; color: #8a939e; }
.s6 .bar { width: 260px; height: 3px; border-radius: 3px; background: #e2e9f3; overflow: hidden; }
.s6 .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0070f2, #61a9ff); border-radius: 3px; animation: s6fill 2.4s ease-in-out infinite; }
@keyframes s6fill { 0% { width: 0; } 70% { width: 88%; } 100% { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .stage * { animation: none !important; } }
</style>
</head>
<body>
<header class="toolbar">
<h1>系统加载动画</h1>
<span class="sub">登录后 / 刷新时的全屏加载层 · 6 套</span>
<div class="tabs" id="tabs"></div>
<button class="replay" id="replay">重播动画</button>
</header>
<main id="stages"></main>
<script>
const THEMES = [
{ id: 1, name: '品牌脉冲', file: '1. 品牌脉冲' },
{ id: 2, name: '圆环 + 进度', file: '2. 圆环 = 现有方案优化' },
{ id: 3, name: '三点跳动', file: '3. 三点跳动(浅色)' },
{ id: 4, name: '房屋描边', file: '4. 房屋描边绘制' },
{ id: 5, name: '方块波浪', file: '5. 方块波浪' },
{ id: 6, name: '极简百分比', file: '6. 极简百分比(浅色)' }
];
function content(id) {
if (id === 1) {
return `<div class="loading-layer">
<div class="pulse-wrap"><span class="ring"></span><span class="ring r2"></span><span class="ring r3"></span>
<div class="core"><img src="/logo-loader.png" alt="甄房" /></div></div>
<div class="load-title">正在进入甄房</div>
<div class="load-sub">房源 · 客源 · 交易 · 新房智联</div>
</div>`;
}
if (id === 2) {
return `<div class="curtain left"></div><div class="curtain right"></div>
<div class="loading-layer"><div class="spinner"></div>
<div class="load-title">正在加载系统资源</div>
<div class="bar"><i></i></div>
<div class="load-sub">请耐心等待</div>
</div>`;
}
if (id === 3) {
return `<div class="loading-layer">
<div class="dots"><i></i><i></i><i></i></div>
<div class="load-title">正在加载数据</div>
<div class="bar"><i></i></div>
<div class="load-sub">甄房 · 专业房产经纪服务平台</div>
</div>`;
}
if (id === 4) {
return `<div class="glow"></div>
<div class="loading-layer">
<svg class="house" viewBox="0 0 100 100">
<path d="M12 46 L50 16 L88 46" />
<polyline points="22,44 22,84 78,84 78,44" />
<path class="door" d="M42 84 L42 62 L58 62 L58 84" />
</svg>
<div class="load-title">正在构建您的房产工作台</div>
<div class="load-sub">甄房 · ZHENFANG</div>
</div>`;
}
if (id === 5) {
return `<div class="loading-layer">
<div class="grid"><i></i><i></i><i></i><i></i><i></i></div>
<div class="load-title">系统初始化中</div>
<div class="load-sub">正在连接数据服务</div>
</div>`;
}
return `<div class="loading-layer">
<div class="pct" id="pct">0<small>%</small></div>
<div class="bar"><i></i></div>
<div class="load-title">正在加载系统资源</div>
<div class="load-sub">甄房 · 专业房产经纪服务平台</div>
</div>`;
}
const tabs = document.getElementById('tabs');
const stages = document.getElementById('stages');
THEMES.forEach((t, index) => {
const tab = document.createElement('div');
tab.className = 'tab' + (index === 0 ? ' active' : '');
tab.textContent = t.name;
tab.dataset.target = 'stage-' + t.id;
tabs.appendChild(tab);
const stage = document.createElement('section');
stage.className = 'stage s' + t.id + (index === 0 ? ' active' : '');
stage.id = 'stage-' + t.id;
stage.dataset.theme = t.id;
stage.innerHTML = content(t.id);
stages.appendChild(stage);
});
tabs.addEventListener('click', e => {
const tab = e.target.closest('.tab');
if (!tab) return;
Array.from(tabs.children).forEach(t => t.classList.toggle('active', t === tab));
Array.from(stages.children).forEach(s => s.classList.toggle('active', s.id === tab.dataset.target));
startCounter();
restart();
});
/* 百分比数字动画(方案 6) */
let counterTimer = null;
function startCounter() {
if (counterTimer) { clearInterval(counterTimer); counterTimer = null; }
const stage = document.querySelector('.stage.active');
if (!stage || stage.dataset.theme !== '6') return;
const el = stage.querySelector('#pct');
if (!el) return;
let value = 0;
counterTimer = setInterval(() => {
value = value >= 100 ? 0 : value + 1;
el.innerHTML = value + '<small>%</small>';
}, 24);
}
/* 重播:移除再插入节点,强制重启动画 */
function restart() {
const stage = document.querySelector('.stage.active');
if (!stage) return;
const layer = stage.querySelector('.loading-layer');
if (!layer) return;
const copy = layer.cloneNode(true);
layer.parentNode.replaceChild(copy, layer);
startCounter();
}
document.getElementById('replay').addEventListener('click', restart);
startCounter();
</script>
</body>
</html>