feat: 完成交通物流订单班展示页面
任务详情: - 完成百车级AGV全局交通管制与充电调度系统展示页面 - 创建完整的HTML/CSS/JS文件结构 - 使用橙色/琥珀色主题体现物流科技特点 - 展示4个关键章节:项目背景、技术架构、关键模块、运维支持 - 配置4位专业Agent:项目经理、系统架构师、AGV算法工程师、技术研发工程师 - 实现120台AGV、18万件日出件量、3000家药房等关键数据展示 - 技术特点:MILP全局优化、1.8秒路径重排、±10mm定位精度 - 建立symlink链接指向数据源(/data/订单班文档资料/交通物流) - 完整的明暗主题切换、图片懒加载、平滑滚动等交互功能 🚛 已完成订单班进度: ✅ 食品订单班 (轻食餐饮) ✅ 财经商贸订单班 (化妆品电商) ✅ 环保订单班 (地表水监测) ✅ 化工订单班 (半导体AI检测) ✅ 交通物流订单班 (AGV交通管制) ← 本次完成 📋 剩余6个订单班: ⏳ 智能制造、智能开发、土木、能源、大健康、视觉设计 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/Users/xiaoqi/Documents/Dev/Project/2025-09-08_n8nDEMO演示/data/订单班文档资料/交通物流/agent头像
|
||||
@@ -0,0 +1,961 @@
|
||||
/* 百车级AGV全局交通管制与充电调度系统 - 交通物流订单班科技感设计系统 */
|
||||
|
||||
/* ========== 设计变量 ========== */
|
||||
:root {
|
||||
/* 专业橙色主题 - 物流科技风格 */
|
||||
--bg-dark: #fff7ed; /* 浅橙背景 */
|
||||
--bg-semi-dark: rgba(255, 247, 237, 0.95); /* 半透明浅橙 */
|
||||
--bg-overlay: rgba(255, 255, 255, 0.85); /* 白色遮罩 */
|
||||
--bg-card: rgba(255, 255, 255, 0.9); /* 卡片背景 */
|
||||
--primary-dark: #7c2d12; /* 主色深橙 */
|
||||
--primary-orange: #f97316; /* 主色橙 - 交通物流专业 */
|
||||
--accent-amber: #fb923c; /* 琥珀强调 - 科技主题 */
|
||||
--accent-amber-light: #fdba74; /* 浅琥珀 */
|
||||
--text-light: #1a1a1a; /* 深色文字 */
|
||||
--text-gray: #666666; /* 灰色文字 */
|
||||
--border-light: rgba(249, 115, 22, 0.2); /* 橙色边框 */
|
||||
--hover-bg: rgba(251, 146, 60, 0.15); /* 悬停背景 */
|
||||
--active-bg: rgba(249, 115, 22, 0.2); /* 激活背景 */
|
||||
|
||||
/* 间距系统 - 针对大屏幕优化 */
|
||||
--spacing-xs: 0.75rem; /* 12px */
|
||||
--spacing-sm: 1.25rem; /* 20px */
|
||||
--spacing-md: 2rem; /* 32px */
|
||||
--spacing-lg: 3rem; /* 48px */
|
||||
--spacing-xl: 4rem; /* 64px */
|
||||
--spacing-2xl: 6rem; /* 96px */
|
||||
--spacing-3xl: 8rem; /* 128px */
|
||||
|
||||
/* 字体系统 */
|
||||
--font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
--font-display: 'Inter', sans-serif;
|
||||
|
||||
/* 字体大小 - 针对大屏幕优化 */
|
||||
--text-xs: 0.875rem; /* 14px */
|
||||
--text-sm: 1rem; /* 16px */
|
||||
--text-base: 1.125rem; /* 18px */
|
||||
--text-lg: 1.375rem; /* 22px */
|
||||
--text-xl: 1.625rem; /* 26px */
|
||||
--text-2xl: 2rem; /* 32px */
|
||||
--text-3xl: 2.5rem; /* 40px */
|
||||
--text-4xl: 3rem; /* 48px */
|
||||
--text-5xl: 4rem; /* 64px */
|
||||
|
||||
/* 字重 */
|
||||
--font-light: 300;
|
||||
--font-normal: 400;
|
||||
--font-medium: 500;
|
||||
--font-semibold: 600;
|
||||
--font-bold: 700;
|
||||
|
||||
/* 圆角 */
|
||||
--radius-sm: 0.375rem;
|
||||
--radius-md: 0.5rem;
|
||||
--radius-lg: 0.75rem;
|
||||
--radius-xl: 1rem;
|
||||
--radius-2xl: 1.5rem;
|
||||
--radius-full: 9999px;
|
||||
|
||||
/* 阴影 - 轻盈专业主题 */
|
||||
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
||||
--shadow-md: 0 2px 4px rgba(0,0,0,0.08);
|
||||
--shadow-lg: 0 4px 8px rgba(0,0,0,0.1);
|
||||
--shadow-xl: 0 8px 16px rgba(0,0,0,0.12);
|
||||
--shadow-orange: 0 2px 8px rgba(251, 146, 60, 0.15);
|
||||
|
||||
/* 过渡 */
|
||||
--transition-fast: 150ms ease;
|
||||
--transition-base: 250ms ease;
|
||||
--transition-slow: 350ms ease;
|
||||
|
||||
/* 布局 */
|
||||
--container-max: 1600px; /* 增加最大宽度适配1920屏幕 */
|
||||
}
|
||||
|
||||
/* ========== 深色主题 - 深邃橙黑配色 ========== */
|
||||
body.dark-theme {
|
||||
--bg-dark: #1a0f0a; /* 深邃橙黑背景 */
|
||||
--bg-semi-dark: rgba(26, 15, 10, 0.95); /* 深橙半透明 */
|
||||
--bg-overlay: rgba(35, 20, 15, 0.85); /* 深橙遮罩层 */
|
||||
--bg-card: rgba(45, 25, 20, 0.9); /* 深橙卡片背景 */
|
||||
--primary-dark: #7c2d12; /* 中度深橙 */
|
||||
--primary-orange: #fdba74; /* 明亮橙 */
|
||||
--accent-amber: #fb923c; /* 深琥珀 */
|
||||
--accent-amber-light: #fbbf24; /* 亮琥珀 */
|
||||
--text-light: #fef3c7; /* 浅色文字 */
|
||||
--text-gray: #a8a29e; /* 灰色文字 */
|
||||
--border-light: rgba(253, 186, 116, 0.25); /* 橙色边框 */
|
||||
--hover-bg: rgba(251, 146, 60, 0.15); /* 悬停背景 */
|
||||
--active-bg: rgba(253, 186, 116, 0.2); /* 激活背景 */
|
||||
--shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
|
||||
--shadow-md: 0 2px 4px rgba(0,0,0,0.5);
|
||||
--shadow-lg: 0 4px 8px rgba(0,0,0,0.6);
|
||||
--shadow-xl: 0 8px 16px rgba(0,0,0,0.7);
|
||||
--shadow-orange: 0 2px 8px rgba(251, 146, 60, 0.25);
|
||||
}
|
||||
|
||||
/* ========== 重置样式 ========== */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-primary);
|
||||
font-size: var(--text-base);
|
||||
line-height: 1.6;
|
||||
color: var(--text-light);
|
||||
background-color: var(--bg-dark);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ========== Hero 区域 - 全屏图片背景 ========== */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 0.95) 100%),
|
||||
url('../images/冷链方案示意图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 深色主题下的Hero渐变 */
|
||||
body.dark-theme .hero {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(26, 15, 10, 0.9) 0%, rgba(35, 20, 15, 0.8) 100%),
|
||||
url('../images/冷链方案示意图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.hero::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image:
|
||||
radial-gradient(circle at 20% 50%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
|
||||
pointer-events: none;
|
||||
animation: glow 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes glow {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
text-align: center;
|
||||
color: var(--text-light);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
padding: var(--spacing-xl);
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.hero-badge {
|
||||
display: inline-block;
|
||||
padding: var(--spacing-md) var(--spacing-xl);
|
||||
background: rgba(251, 146, 60, 0.15);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--font-semibold);
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
border: 3px solid var(--accent-amber);
|
||||
box-shadow: var(--shadow-orange);
|
||||
text-transform: uppercase;
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.hero-badge:hover {
|
||||
background: rgba(251, 146, 60, 0.25);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: clamp(3.5rem, 10vw, 6.5rem);
|
||||
font-weight: var(--font-bold);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.1;
|
||||
color: var(--accent-amber-light);
|
||||
text-shadow: 0 6px 30px rgba(0,0,0,0.8), 0 0 60px rgba(251, 146, 60, 0.4);
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: clamp(1.5rem, 4vw, 2.5rem);
|
||||
font-weight: var(--font-light);
|
||||
opacity: 0.95;
|
||||
margin-bottom: var(--spacing-xl);
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
font-size: var(--text-xl);
|
||||
opacity: 0.85;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* ========== 导航 - 深色玻璃态 ========== */
|
||||
.nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: var(--bg-semi-dark);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
padding: var(--spacing-md) 0;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-sm);
|
||||
flex-wrap: wrap;
|
||||
padding: 0 var(--spacing-md);
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
padding: var(--spacing-sm) var(--spacing-lg);
|
||||
background: var(--bg-overlay);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-lg);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
font-weight: var(--font-medium);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
color: var(--text-gray);
|
||||
}
|
||||
|
||||
.nav-item i {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.nav-item span {
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background: var(--hover-bg);
|
||||
color: var(--accent-amber);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-orange);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--active-bg);
|
||||
color: var(--primary-orange);
|
||||
border-color: var(--primary-orange);
|
||||
box-shadow: var(--shadow-orange);
|
||||
}
|
||||
|
||||
/* ========== 内容区块 - 图片背景 ========== */
|
||||
.section {
|
||||
padding: var(--spacing-2xl) 0;
|
||||
background: var(--bg-dark);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 浅色图片背景 - 每个区块使用不同图片 */
|
||||
.section:nth-child(1) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/物流业务架构图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.section:nth-child(2) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/系统控制架构图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.section:nth-child(3) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/交通管制系统逻辑图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.section:nth-child(4) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/后台监控与管理.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
/* 通用奇偶区块(当超过4个section时) */
|
||||
.section:nth-child(n+5):nth-child(odd) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/仿真模拟平台示意图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.section:nth-child(n+5):nth-child(even) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(255, 247, 237, 0.9) 0%, rgba(254, 243, 199, 1) 100%),
|
||||
url('../images/AGV逻辑图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
/* 深色主题下的区块背景 - 每个区块使用对应图片 */
|
||||
body.dark-theme .section:nth-child(1) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(26, 15, 10, 0.92) 0%, rgba(35, 20, 15, 0.88) 100%),
|
||||
url('../images/物流业务架构图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
body.dark-theme .section:nth-child(2) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(35, 20, 15, 0.90) 0%, rgba(26, 15, 10, 0.88) 100%),
|
||||
url('../images/系统控制架构图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
body.dark-theme .section:nth-child(3) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(26, 15, 10, 0.92) 0%, rgba(35, 20, 15, 0.88) 100%),
|
||||
url('../images/交通管制系统逻辑图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
body.dark-theme .section:nth-child(4) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(35, 20, 15, 0.90) 0%, rgba(26, 15, 10, 0.88) 100%),
|
||||
url('../images/后台监控与管理.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
/* 通用奇偶区块(当超过4个section时) */
|
||||
body.dark-theme .section:nth-child(n+5):nth-child(odd) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(26, 15, 10, 0.92) 0%, rgba(35, 20, 15, 0.88) 100%),
|
||||
url('../images/仿真模拟平台示意图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
body.dark-theme .section:nth-child(n+5):nth-child(even) {
|
||||
background-image:
|
||||
linear-gradient(to bottom, rgba(35, 20, 15, 0.90) 0%, rgba(26, 15, 10, 0.88) 100%),
|
||||
url('../images/AGV逻辑图.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
/* 深色主题下的特定元素调整 */
|
||||
body.dark-theme .stat-item {
|
||||
background: rgba(45, 25, 20, 0.8);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
body.dark-theme .stat-item:hover {
|
||||
background: rgba(253, 186, 116, 0.15);
|
||||
border-color: var(--primary-orange);
|
||||
}
|
||||
|
||||
body.dark-theme .stat-value {
|
||||
color: var(--accent-amber-light);
|
||||
}
|
||||
|
||||
body.dark-theme th {
|
||||
background: rgba(253, 186, 116, 0.12);
|
||||
color: var(--accent-amber-light);
|
||||
}
|
||||
|
||||
body.dark-theme tr:hover {
|
||||
background: rgba(253, 186, 116, 0.08);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: var(--container-max);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--spacing-md);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-lg);
|
||||
margin-bottom: var(--spacing-xl);
|
||||
padding: var(--spacing-lg);
|
||||
background: var(--bg-card);
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
border-radius: var(--radius-xl);
|
||||
border: 2px solid var(--border-light);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.agent-avatar {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: var(--radius-xl);
|
||||
object-fit: cover;
|
||||
border: 3px solid var(--primary-orange);
|
||||
box-shadow: var(--shadow-md);
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.agent-avatar:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-color: var(--accent-amber);
|
||||
}
|
||||
|
||||
.agent-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.agent-name {
|
||||
font-size: var(--text-lg);
|
||||
color: var(--primary-orange);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-weight: var(--font-semibold);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: var(--text-4xl);
|
||||
font-weight: var(--font-bold);
|
||||
color: var(--text-light);
|
||||
letter-spacing: -0.01em;
|
||||
text-shadow: none;
|
||||
position: relative;
|
||||
padding-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.section-title::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 180px;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, var(--accent-amber), transparent);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.section-content {
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.expert-intro {
|
||||
background: var(--bg-card);
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: var(--spacing-lg);
|
||||
margin-bottom: var(--spacing-xl);
|
||||
border: 2px solid var(--border-light);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.expert-intro h3 {
|
||||
font-size: var(--text-2xl);
|
||||
color: var(--primary-orange);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.expert-intro p {
|
||||
color: var(--text-gray);
|
||||
line-height: 1.8;
|
||||
font-size: var(--text-lg);
|
||||
}
|
||||
|
||||
/* ========== 网格布局 - 针对大屏幕优化,更大气的布局 ========== */
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: var(--spacing-2xl);
|
||||
}
|
||||
|
||||
.grid-2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.grid-3 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.grid-4 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
/* ========== 卡片 - 图片优先布局 ========== */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
border-radius: var(--radius-2xl);
|
||||
overflow: hidden;
|
||||
border: 2px solid var(--border-light);
|
||||
transition: all var(--transition-base);
|
||||
box-shadow: var(--shadow-md);
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-8px);
|
||||
box-shadow: var(--shadow-xl), var(--shadow-orange);
|
||||
border-color: var(--accent-amber);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: var(--spacing-xl);
|
||||
background: var(--bg-semi-dark);
|
||||
border-bottom: 2px solid var(--border-light);
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--font-semibold);
|
||||
color: var(--primary-orange);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: var(--spacing-xl);
|
||||
order: 3;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* ========== 图片容器 - 突出展示 - 超大气布局 ========== */
|
||||
.image-container {
|
||||
width: 100%;
|
||||
aspect-ratio: 3/2;
|
||||
overflow: hidden;
|
||||
border-radius: 0;
|
||||
margin-bottom: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
position: relative;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
transition: all var(--transition-base);
|
||||
order: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.image-container img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform var(--transition-slow);
|
||||
filter: brightness(0.9);
|
||||
}
|
||||
|
||||
.image-container:hover img {
|
||||
transform: scale(1.1);
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.image-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: var(--spacing-md);
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
|
||||
color: var(--text-light);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
text-align: center;
|
||||
transform: translateY(100%);
|
||||
transition: transform var(--transition-base);
|
||||
}
|
||||
|
||||
.image-container:hover .image-caption {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* ========== 列表 ========== */
|
||||
.feature-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.feature-list li {
|
||||
padding: var(--spacing-sm) 0;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
color: var(--text-gray);
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.feature-list li:hover {
|
||||
color: var(--primary-orange);
|
||||
padding-left: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.feature-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* ========== 统计数据 ========== */
|
||||
.stats {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-lg);
|
||||
background: var(--bg-overlay);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: var(--spacing-md);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--bg-card);
|
||||
border: 1px solid transparent;
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.stat-item:hover {
|
||||
background: var(--hover-bg);
|
||||
transform: translateY(-4px);
|
||||
border-color: var(--border-light);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--text-gray);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--font-bold);
|
||||
color: var(--primary-orange);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* ========== 表格 ========== */
|
||||
.table-container {
|
||||
overflow-x: auto;
|
||||
margin: var(--spacing-xl) 0;
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--bg-card);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--active-bg);
|
||||
color: var(--primary-orange);
|
||||
padding: var(--spacing-md);
|
||||
text-align: left;
|
||||
font-weight: var(--font-semibold);
|
||||
border-bottom: 2px solid var(--primary-orange);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: var(--spacing-md);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
color: var(--text-gray);
|
||||
}
|
||||
|
||||
tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
/* ========== 响应式 ========== */
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--spacing-sm: 0.75rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
--spacing-2xl: 3rem;
|
||||
--spacing-3xl: 4rem;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
|
||||
.section:nth-child(odd),
|
||||
.section:nth-child(even) {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
padding: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
padding: var(--spacing-xs) var(--spacing-md);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: var(--spacing-2xl) 0;
|
||||
}
|
||||
|
||||
.grid-2,
|
||||
.grid-3,
|
||||
.grid-4 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stats {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== 动画 ========== */
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% {
|
||||
background-position: -1000px 0;
|
||||
}
|
||||
100% {
|
||||
background-position: 1000px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fade-in {
|
||||
animation: fadeIn 0.6s ease forwards;
|
||||
}
|
||||
|
||||
.slide-in {
|
||||
animation: slideIn 0.6s ease forwards;
|
||||
}
|
||||
|
||||
/* ========== 工具类 ========== */
|
||||
.text-center { text-align: center; }
|
||||
.text-left { text-align: left; }
|
||||
.text-right { text-align: right; }
|
||||
|
||||
.mt-sm { margin-top: var(--spacing-sm); }
|
||||
.mt-md { margin-top: var(--spacing-md); }
|
||||
.mt-lg { margin-top: var(--spacing-lg); }
|
||||
.mt-xl { margin-top: var(--spacing-xl); }
|
||||
|
||||
.mb-sm { margin-bottom: var(--spacing-sm); }
|
||||
.mb-md { margin-bottom: var(--spacing-md); }
|
||||
.mb-lg { margin-bottom: var(--spacing-lg); }
|
||||
.mb-xl { margin-bottom: var(--spacing-xl); }
|
||||
|
||||
.hidden { display: none; }
|
||||
.block { display: block; }
|
||||
.flex { display: flex; }
|
||||
.grid { display: grid; }
|
||||
|
||||
.gap-sm { gap: var(--spacing-sm); }
|
||||
.gap-md { gap: var(--spacing-md); }
|
||||
.gap-lg { gap: var(--spacing-lg); }
|
||||
|
||||
/* ========== 图片加载状态 ========== */
|
||||
img {
|
||||
transition: opacity var(--transition-base);
|
||||
}
|
||||
|
||||
img.loaded {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
img.error {
|
||||
opacity: 0.5;
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
||||
/* ========== SVG图标尺寸统一管理 ========== */
|
||||
.hero-description i[data-lucide] {
|
||||
width: 24px !important;
|
||||
height: 24px !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: middle !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.agent-name i[data-lucide] {
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: middle !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.expert-intro h3 i[data-lucide] {
|
||||
width: 40px !important;
|
||||
height: 40px !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: middle !important;
|
||||
margin-right: 10px !important;
|
||||
}
|
||||
|
||||
.feature-list li i[data-lucide] {
|
||||
width: 18px !important;
|
||||
height: 18px !important;
|
||||
display: inline-block !important;
|
||||
vertical-align: middle !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.nav-item i[data-lucide] {
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
display: block !important;
|
||||
margin: 0 auto 4px !important;
|
||||
}
|
||||
|
||||
/* ========== 主题切换按钮 ========== */
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
top: 24px;
|
||||
right: 24px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.theme-toggle-btn {
|
||||
position: relative;
|
||||
width: 64px;
|
||||
height: 32px;
|
||||
background: var(--bg-card);
|
||||
border: 2px solid var(--border-light);
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 6px;
|
||||
transition: all var(--transition-base);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.theme-toggle-btn:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.theme-toggle-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.theme-icon {
|
||||
width: 18px !important;
|
||||
height: 18px !important;
|
||||
transition: all var(--transition-base);
|
||||
color: var(--text-gray);
|
||||
}
|
||||
|
||||
body:not(.dark-theme) .theme-icon-light {
|
||||
color: var(--accent-amber);
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
body:not(.dark-theme) .theme-icon-dark {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
body.dark-theme .theme-icon-dark {
|
||||
color: var(--primary-orange);
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
body.dark-theme .theme-icon-light {
|
||||
opacity: 0.5;
|
||||
}
|
||||
1
web_frontend/web_result/order-classes/transportation/images
Symbolic link
1
web_frontend/web_result/order-classes/transportation/images
Symbolic link
@@ -0,0 +1 @@
|
||||
/Users/xiaoqi/Documents/Dev/Project/2025-09-08_n8nDEMO演示/data/订单班文档资料/交通物流/notion文稿/image
|
||||
614
web_frontend/web_result/order-classes/transportation/index.html
Normal file
614
web_frontend/web_result/order-classes/transportation/index.html
Normal file
@@ -0,0 +1,614 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>百车级AGV全局交通管制与充电调度系统 - 交通物流订单班</title>
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
|
||||
</head>
|
||||
<body class="dark-theme">
|
||||
<!-- 主题切换按钮 -->
|
||||
<div class="theme-toggle">
|
||||
<button id="themeToggleBtn" class="theme-toggle-btn">
|
||||
<i data-lucide="sun" class="theme-icon theme-icon-light"></i>
|
||||
<i data-lucide="moon" class="theme-icon theme-icon-dark"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Hero 区域 -->
|
||||
<section class="hero">
|
||||
<div class="hero-content">
|
||||
<div class="hero-badge">🚛 交通物流订单班</div>
|
||||
<h1 class="hero-title">百车级AGV全局交通管制<br>与充电调度系统</h1>
|
||||
<h2 class="hero-subtitle">冷链智慧共配中心智能化升级</h2>
|
||||
<p class="hero-description">
|
||||
<i data-lucide="truck"></i> 120台AGV协同作业<br>
|
||||
<i data-lucide="zap"></i> 智能充电调度管理<br>
|
||||
<i data-lucide="git-branch"></i> 全局路径优化规划
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 导航栏 -->
|
||||
<nav class="nav">
|
||||
<div class="nav-container">
|
||||
<div class="nav-item active">
|
||||
<i data-lucide="target"></i>
|
||||
<span>项目概述</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i data-lucide="layers"></i>
|
||||
<span>技术架构</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i data-lucide="cpu"></i>
|
||||
<span>关键模块</span>
|
||||
</div>
|
||||
<div class="nav-item">
|
||||
<i data-lucide="settings"></i>
|
||||
<span>运维支持</span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Section 1: 项目背景与目标 -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="section-header">
|
||||
<img src="agent-avatars/项目经理.jpg" alt="项目经理" class="agent-avatar">
|
||||
<div class="agent-info">
|
||||
<div class="agent-name">
|
||||
<i data-lucide="briefcase"></i> 项目经理
|
||||
</div>
|
||||
<h2 class="section-title">项目背景与目标</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-content">
|
||||
<div class="expert-intro">
|
||||
<h3><i data-lucide="alert-circle"></i> 项目背景</h3>
|
||||
<p>随着国内医药冷链物流需求的快速增长,智能化、自动化已成为提升运营效率、降低人力成本和保障药品温控安全的关键手段。预计到2025年,相关药房数量将增至3,000家,物流中心日出件量将达到18万件,配送压力大幅增加。在冷链作业环境下,人工拣选效率仅为常温区的55%,且员工离职率高,导致人力成本居高不下,稳定性差,亟需引入自动化系统。</p>
|
||||
</div>
|
||||
|
||||
<div class="image-container" style="margin-bottom: var(--spacing-xl);">
|
||||
<img data-src="images/冷链方案示意图.jpg" alt="冷链方案示意图" loading="lazy">
|
||||
<div class="image-caption">冷链智慧共配中心方案示意</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-2">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">核心挑战</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="thermometer"></i> 低温环境:作业温度-25℃,设备适应性要求高</li>
|
||||
<li><i data-lucide="users"></i> 人力成本:冷链拣选效率仅为常温区55%</li>
|
||||
<li><i data-lucide="traffic-cone"></i> 交通管制:单一导航方式导致高峰期效率下降</li>
|
||||
<li><i data-lucide="battery"></i> 充电调度:缺乏智能充电管理系统</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">项目目标</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="truck"></i> 支持120台多车型AGV流畅运行</li>
|
||||
<li><i data-lucide="route"></i> 全局路径优化,减少拥堵与冲突</li>
|
||||
<li><i data-lucide="zap"></i> 智能充电调度,保障续航与效率</li>
|
||||
<li><i data-lucide="shield"></i> 低温环境稳定性与安全防护</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="stats" style="margin-top: var(--spacing-xl);">
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">AGV车辆数</div>
|
||||
<div class="stat-value agv-count">0台</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">日出件量</div>
|
||||
<div class="stat-value daily-output">0万件</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">工作温度</div>
|
||||
<div class="stat-value">-25℃</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">药房数量</div>
|
||||
<div class="stat-value pharmacy-count">0家</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Section 2: 技术架构设计 -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="section-header">
|
||||
<img src="agent-avatars/系统架构师.jpg" alt="系统架构师" class="agent-avatar">
|
||||
<div class="agent-info">
|
||||
<div class="agent-name">
|
||||
<i data-lucide="layers"></i> 系统架构师
|
||||
</div>
|
||||
<h2 class="section-title">六层技术架构设计</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-content">
|
||||
<div class="expert-intro">
|
||||
<h3><i data-lucide="box"></i> 架构总览</h3>
|
||||
<p>为确保120台AGV流畅、高效、安全运行,系统架构具备高度可扩展性、高并发处理能力、智能化调度与路径优化能力。架构分为六层:接入层、业务层、调度层、设备层、算法平台、仿真平台,各模块协同工作确保系统高效运行。</p>
|
||||
</div>
|
||||
|
||||
<div class="image-container" style="margin-bottom: var(--spacing-xl);">
|
||||
<img data-src="images/物流业务架构图.jpg" alt="物流业务架构图" loading="lazy">
|
||||
<div class="image-caption">物流业务架构全景图</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">1. 接入层</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> 接收外部数据并传递至下游系统</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="server"></i> ERP/MES系统对接</li>
|
||||
<li><i data-lucide="database"></i> WMS/TMS任务分配</li>
|
||||
<li><i data-lucide="workflow"></i> 数据流动与传递</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">2. 业务层</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> 管理仓库、任务和设备调度</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="package"></i> IWMS智能仓储管理</li>
|
||||
<li><i data-lucide="git-branch"></i> TMS交通管理系统</li>
|
||||
<li><i data-lucide="activity"></i> 路径规划与优化</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">3. 调度层</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> 实时任务调度与设备协调</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="calendar"></i> RCS设备调度系统</li>
|
||||
<li><i data-lucide="radio"></i> WCS设备控制系统</li>
|
||||
<li><i data-lucide="link"></i> PLC实时通讯</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">4. 设备层</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> AGV执行与充电管理</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="truck"></i> 多车型AGV混行</li>
|
||||
<li><i data-lucide="map-pin"></i> 激光SLAM导航</li>
|
||||
<li><i data-lucide="battery-charging"></i> 智能充电管理</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">5. 算法平台</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> 路径优化与充电算法</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="trending-up"></i> MILP全局优化</li>
|
||||
<li><i data-lucide="bezier-curve"></i> B-spline平滑规划</li>
|
||||
<li><i data-lucide="zap"></i> 充电调度算法</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">6. 仿真平台</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p><strong>功能:</strong> 策略验证与优化</p>
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="play"></i> 路径仿真验证</li>
|
||||
<li><i data-lucide="bar-chart"></i> 充电策略仿真</li>
|
||||
<li><i data-lucide="check-circle"></i> 方案可行性验证</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="image-container" style="margin-top: var(--spacing-xl);">
|
||||
<img data-src="images/仿真模拟平台示意图.jpg" alt="仿真模拟平台" loading="lazy">
|
||||
<div class="image-caption">仿真模拟平台示意图</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Section 3: 关键技术模块 -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="section-header">
|
||||
<img src="agent-avatars/AGV算法与调度工程师.jpg" alt="AGV算法工程师" class="agent-avatar">
|
||||
<div class="agent-info">
|
||||
<div class="agent-name">
|
||||
<i data-lucide="cpu"></i> AGV算法与调度工程师
|
||||
</div>
|
||||
<h2 class="section-title">关键技术模块实现</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-content">
|
||||
<div class="expert-intro">
|
||||
<h3><i data-lucide="blocks"></i> 核心模块</h3>
|
||||
<p>系统包含AGV定位导航、路径规划调度、交通管制(TMS)、充电管理(CMS)、冷链环境适配、安全应急响应等关键模块。各模块协同工作,确保AGV系统顺畅高效运行。</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-4" style="margin-bottom: var(--spacing-xl);">
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/AGV逻辑图.jpg" alt="AGV逻辑图" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">AGV定位导航</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="radar"></i> 激光SLAM 360°扫描</li>
|
||||
<li><i data-lucide="compass"></i> IMU惯性测量</li>
|
||||
<li><i data-lucide="qr-code"></i> 二维码+磁钉导航</li>
|
||||
<li><i data-lucide="crosshair"></i> 精度±10mm</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/系统控制架构图.jpg" alt="系统控制架构" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">路径规划调度</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="route"></i> MILP全局优化</li>
|
||||
<li><i data-lucide="bezier-curve"></i> B-spline平滑路径</li>
|
||||
<li><i data-lucide="alert-triangle"></i> 冲突实时检测</li>
|
||||
<li><i data-lucide="refresh-cw"></i> 1.8秒路径重排</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/交通管制系统逻辑图.jpg" alt="交通管制系统" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">交通管制TMS</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="traffic-cone"></i> 红绿灯软信号</li>
|
||||
<li><i data-lucide="clock"></i> 信号周期≤3秒</li>
|
||||
<li><i data-lucide="arrow-right"></i> 优先级调度</li>
|
||||
<li><i data-lucide="shield"></i> 路口安全控制</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/充电管理系统逻辑图.jpg" alt="充电管理系统" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">充电管理CMS</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="battery"></i> 电量实时监控</li>
|
||||
<li><i data-lucide="zap"></i> 快充1.5C/慢充0.5C</li>
|
||||
<li><i data-lucide="timer"></i> 30分钟充满70%</li>
|
||||
<li><i data-lucide="percent"></i> 电量<30%自动充电</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-container">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>技术模块</th>
|
||||
<th>关键参数</th>
|
||||
<th>性能指标</th>
|
||||
<th>技术特点</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>激光SLAM</td>
|
||||
<td>Hokuyo URG-04LX</td>
|
||||
<td>360°扫描,精度±10mm</td>
|
||||
<td>20Hz更新,100ms定位周期</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IMU传感器</td>
|
||||
<td>Xsens MTi-30</td>
|
||||
<td>3轴加速+陀螺+磁力</td>
|
||||
<td>200Hz更新,温度补偿</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>路径规划</td>
|
||||
<td>MILP + B-spline</td>
|
||||
<td>平滑误差≤0.1mm</td>
|
||||
<td>任务波动30%时1.8秒重排</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>交通信号</td>
|
||||
<td>红绿灯软控制</td>
|
||||
<td>信号周期≤3秒</td>
|
||||
<td>OPC UA协议,动态调整</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>充电系统</td>
|
||||
<td>24快充+8慢充</td>
|
||||
<td>30分钟充70%电量</td>
|
||||
<td>优先级调度,负载均衡</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>低温适配</td>
|
||||
<td>-25℃工作环境</td>
|
||||
<td>速度限制1.2m/s</td>
|
||||
<td>低温轮胎+IP65防护</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="stats" style="margin-top: var(--spacing-xl);">
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">定位精度</div>
|
||||
<div class="stat-value">±10mm</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">路径重排</div>
|
||||
<div class="stat-value path-replan">0秒</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">充电工位</div>
|
||||
<div class="stat-value charging-stations">0个</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">工作速度</div>
|
||||
<div class="stat-value">1.2m/s</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Section 4: 运维与支持方案 -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="section-header">
|
||||
<img src="agent-avatars/技术研发工程师.jpg" alt="技术研发工程师" class="agent-avatar">
|
||||
<div class="agent-info">
|
||||
<div class="agent-name">
|
||||
<i data-lucide="settings"></i> 技术研发工程师
|
||||
</div>
|
||||
<h2 class="section-title">运维与支持方案</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-content">
|
||||
<div class="expert-intro">
|
||||
<h3><i data-lucide="life-buoy"></i> 运维保障</h3>
|
||||
<p>提供全面运维与支持服务,覆盖系统持续监控、故障排除、定期维护、软件升级等,确保AGV系统高效、安全、稳定运行,提供长期技术保障。</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-3" style="margin-bottom: var(--spacing-xl);">
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/后台监控与管理.jpg" alt="后台监控" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">系统监控</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="monitor"></i> 数字孪生实时监控</li>
|
||||
<li><i data-lucide="activity"></i> 健康状态检查</li>
|
||||
<li><i data-lucide="bar-chart-2"></i> 性能数据采集</li>
|
||||
<li><i data-lucide="bell"></i> 多级报警机制</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/AGV故障排查检修.jpg" alt="故障排查" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">故障响应</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="clock"></i> 7×24小时服务</li>
|
||||
<li><i data-lucide="zap"></i> 4小时到场响应</li>
|
||||
<li><i data-lucide="search"></i> 远程故障诊断</li>
|
||||
<li><i data-lucide="package"></i> 备件库存保障</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="image-container">
|
||||
<img data-src="images/技术支持与指导.jpg" alt="技术支持" loading="lazy">
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">技术支持</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="users"></i> 专业支持团队</li>
|
||||
<li><i data-lucide="book-open"></i> 定期培训学习</li>
|
||||
<li><i data-lucide="database"></i> 知识库文档</li>
|
||||
<li><i data-lucide="trending-up"></i> 系统升级培训</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-container">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>运维项目</th>
|
||||
<th>服务内容</th>
|
||||
<th>响应时间</th>
|
||||
<th>保障措施</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>实时监控</td>
|
||||
<td>数字孪生平台,Web/3D大屏可视化</td>
|
||||
<td>实时</td>
|
||||
<td>电量/温度/任务/路径全方位监控</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>健康检查</td>
|
||||
<td>电池/电机/传感器/导航系统定期检查</td>
|
||||
<td>每周</td>
|
||||
<td>预防性维护,提前预警</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>故障响应</td>
|
||||
<td>7×24小时运维服务</td>
|
||||
<td>≤4小时</td>
|
||||
<td>远程诊断+现场修复</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>备件管理</td>
|
||||
<td>电池/传感器/轮胎等关键备件</td>
|
||||
<td>即时</td>
|
||||
<td>库存充足,快速替换</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>技术培训</td>
|
||||
<td>操作员/运维/技术人员培训</td>
|
||||
<td>定期</td>
|
||||
<td>操作流程+故障排除+系统优化</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>系统升级</td>
|
||||
<td>软件升级/功能扩展/硬件升级</td>
|
||||
<td>年度</td>
|
||||
<td>算法优化+性能提升+功能拓展</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="image-container" style="margin-top: var(--spacing-xl);">
|
||||
<img data-src="images/周期实施计划.jpg" alt="实施计划" loading="lazy">
|
||||
<div class="image-caption">项目实施周期计划</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer: 项目成果总结 -->
|
||||
<section class="section" style="background: var(--bg-semi-dark); padding: var(--spacing-3xl) 0;">
|
||||
<div class="container">
|
||||
<h2 class="section-title text-center" style="margin-bottom: var(--spacing-2xl);">
|
||||
<i data-lucide="award"></i> 项目成果总结
|
||||
</h2>
|
||||
|
||||
<div class="grid grid-3">
|
||||
<div class="card">
|
||||
<div class="card-header" style="order: 1;">
|
||||
<h3 class="card-title">🚛 系统能力</h3>
|
||||
</div>
|
||||
<div class="card-body" style="order: 2;">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="truck"></i> 120台AGV协同作业</li>
|
||||
<li><i data-lucide="package"></i> 日出件量18万件</li>
|
||||
<li><i data-lucide="map"></i> 六层架构体系</li>
|
||||
<li><i data-lucide="cpu"></i> MILP全局优化</li>
|
||||
<li><i data-lucide="git-branch"></i> 1.8秒路径重排</li>
|
||||
<li><i data-lucide="battery-charging"></i> 24快充+8慢充</li>
|
||||
<li><i data-lucide="thermometer"></i> -25℃低温适配</li>
|
||||
<li><i data-lucide="shield"></i> 3分钟紧急撤离</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header" style="order: 1;">
|
||||
<h3 class="card-title">⚡ 技术指标</h3>
|
||||
</div>
|
||||
<div class="card-body" style="order: 2;">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="crosshair"></i> 定位精度±10mm</li>
|
||||
<li><i data-lucide="activity"></i> 100ms定位周期</li>
|
||||
<li><i data-lucide="bezier-curve"></i> 路径误差≤0.1mm</li>
|
||||
<li><i data-lucide="traffic-cone"></i> 信号周期≤3秒</li>
|
||||
<li><i data-lucide="zap"></i> 30分钟充70%</li>
|
||||
<li><i data-lucide="gauge"></i> 工作速度1.2m/s</li>
|
||||
<li><i data-lucide="shield-check"></i> IP65防护等级</li>
|
||||
<li><i data-lucide="clock"></i> 4小时故障响应</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header" style="order: 1;">
|
||||
<h3 class="card-title">🎯 核心优势</h3>
|
||||
</div>
|
||||
<div class="card-body" style="order: 2;">
|
||||
<ul class="feature-list">
|
||||
<li><i data-lucide="layers"></i> 多层架构设计</li>
|
||||
<li><i data-lucide="brain"></i> 智能算法平台</li>
|
||||
<li><i data-lucide="route"></i> 全局路径优化</li>
|
||||
<li><i data-lucide="git-merge"></i> 多车型混行</li>
|
||||
<li><i data-lucide="battery"></i> 智能充电调度</li>
|
||||
<li><i data-lucide="snowflake"></i> 低温环境适配</li>
|
||||
<li><i data-lucide="life-buoy"></i> 7×24运维保障</li>
|
||||
<li><i data-lucide="trending-up"></i> 持续优化升级</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center" style="margin-top: var(--spacing-2xl); color: var(--text-gray);">
|
||||
<p>🚛 百车级AGV全局交通管制与充电调度系统项目圆满完成!</p>
|
||||
<p style="margin-top: var(--spacing-sm);">© 2024 交通物流订单班 | 智能物流解决方案</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
267
web_frontend/web_result/order-classes/transportation/js/main.js
Normal file
267
web_frontend/web_result/order-classes/transportation/js/main.js
Normal file
@@ -0,0 +1,267 @@
|
||||
// 百车级AGV全局交通管制与充电调度系统 - 主要JavaScript逻辑
|
||||
|
||||
// 页面初始化
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
console.log('🚛 交通物流订单班AGV系统页面加载完成');
|
||||
|
||||
// 初始化Lucide图标
|
||||
if (typeof lucide !== 'undefined') {
|
||||
lucide.createIcons();
|
||||
}
|
||||
|
||||
// 初始化组件
|
||||
initNavigation();
|
||||
initAnimations();
|
||||
initLazyLoading();
|
||||
initSmoothScroll();
|
||||
updateStats();
|
||||
initThemeToggle();
|
||||
});
|
||||
|
||||
// 导航功能
|
||||
function initNavigation() {
|
||||
const navItems = document.querySelectorAll('.nav-item');
|
||||
const sections = document.querySelectorAll('.section');
|
||||
|
||||
// 点击导航项滚动到对应区块
|
||||
navItems.forEach((item, index) => {
|
||||
item.addEventListener('click', () => {
|
||||
// 移除所有活跃状态
|
||||
navItems.forEach(nav => nav.classList.remove('active'));
|
||||
// 添加当前活跃状态
|
||||
item.classList.add('active');
|
||||
|
||||
// 滚动到对应区块
|
||||
if (sections[index]) {
|
||||
const targetSection = sections[index];
|
||||
const offsetTop = targetSection.offsetTop - 100;
|
||||
|
||||
window.scrollTo({
|
||||
top: offsetTop,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 滚动时更新导航活跃状态
|
||||
window.addEventListener('scroll', () => {
|
||||
let current = '';
|
||||
sections.forEach((section, index) => {
|
||||
const sectionTop = section.offsetTop - 150;
|
||||
if (scrollY >= sectionTop) {
|
||||
current = index;
|
||||
}
|
||||
});
|
||||
|
||||
navItems.forEach((item, index) => {
|
||||
item.classList.remove('active');
|
||||
if (index === current) {
|
||||
item.classList.add('active');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 动画初始化
|
||||
function initAnimations() {
|
||||
// 使用 Intersection Observer 实现滚动动画
|
||||
const observerOptions = {
|
||||
root: null,
|
||||
rootMargin: '0px',
|
||||
threshold: 0.1
|
||||
};
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('fade-in');
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, observerOptions);
|
||||
|
||||
// 观察所有需要动画的元素
|
||||
const animatedElements = document.querySelectorAll('.card, .expert-intro');
|
||||
animatedElements.forEach(el => {
|
||||
el.style.opacity = '0';
|
||||
observer.observe(el);
|
||||
});
|
||||
}
|
||||
|
||||
// 图片懒加载
|
||||
function initLazyLoading() {
|
||||
const images = document.querySelectorAll('img[data-src]');
|
||||
|
||||
const imageObserver = new IntersectionObserver((entries, observer) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
const img = entry.target;
|
||||
const src = img.getAttribute('data-src');
|
||||
|
||||
// 创建新图片对象来预加载
|
||||
const tempImg = new Image();
|
||||
tempImg.onload = function() {
|
||||
img.src = src;
|
||||
img.classList.add('loaded');
|
||||
};
|
||||
tempImg.onerror = function() {
|
||||
// 如果图片加载失败,使用橙色主题占位图
|
||||
img.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"%3E%3Crect width="400" height="300" fill="%23fff7ed"/%3E%3Ctext x="50%25" y="50%25" dominant-baseline="middle" text-anchor="middle" font-family="system-ui" font-size="20" fill="%23f97316"%3E图片加载中%3C/text%3E%3C/svg%3E';
|
||||
img.classList.add('error');
|
||||
};
|
||||
tempImg.src = src;
|
||||
|
||||
img.removeAttribute('data-src');
|
||||
observer.unobserve(img);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
images.forEach(img => {
|
||||
imageObserver.observe(img);
|
||||
});
|
||||
}
|
||||
|
||||
// 平滑滚动
|
||||
function initSmoothScroll() {
|
||||
// 为所有锚点链接添加平滑滚动
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
const targetId = this.getAttribute('href');
|
||||
if (targetId === '#') return;
|
||||
|
||||
const target = document.querySelector(targetId);
|
||||
if (target) {
|
||||
target.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 更新统计数据 - AGV系统数据
|
||||
function updateStats() {
|
||||
// 动画数字增长效果 - AGV交通管制系统相关数据
|
||||
const stats = [
|
||||
{ selector: '.agv-count', value: 120, suffix: '台' },
|
||||
{ selector: '.daily-output', value: 18, suffix: '万件' },
|
||||
{ selector: '.pharmacy-count', value: 3000, suffix: '家' },
|
||||
{ selector: '.path-replan', value: 1.8, suffix: '秒' },
|
||||
{ selector: '.charging-stations', value: 32, suffix: '个' }
|
||||
];
|
||||
|
||||
stats.forEach(stat => {
|
||||
const element = document.querySelector(stat.selector);
|
||||
if (element) {
|
||||
animateValue(element, 0, stat.value, 2000, stat.suffix);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 数字动画函数
|
||||
function animateValue(element, start, end, duration, suffix = '') {
|
||||
const startTime = performance.now();
|
||||
|
||||
function update(currentTime) {
|
||||
const elapsed = currentTime - startTime;
|
||||
const progress = Math.min(elapsed / duration, 1);
|
||||
|
||||
// 使用缓动函数
|
||||
const easeOutQuad = progress * (2 - progress);
|
||||
let current;
|
||||
|
||||
// 处理小数值(如1.8)
|
||||
if (end < 10 && end % 1 !== 0) {
|
||||
current = (start + (end - start) * easeOutQuad).toFixed(1);
|
||||
} else {
|
||||
current = Math.floor(start + (end - start) * easeOutQuad);
|
||||
}
|
||||
|
||||
element.textContent = current + suffix;
|
||||
|
||||
if (progress < 1) {
|
||||
requestAnimationFrame(update);
|
||||
}
|
||||
}
|
||||
|
||||
requestAnimationFrame(update);
|
||||
}
|
||||
|
||||
// 错误处理
|
||||
window.addEventListener('error', function(e) {
|
||||
if (e.target.tagName === 'IMG') {
|
||||
console.warn('图片加载失败:', e.target.src);
|
||||
e.target.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"%3E%3Crect width="400" height="300" fill="%23fff7ed"/%3E%3Ctext x="50%25" y="50%25" dominant-baseline="middle" text-anchor="middle" font-family="system-ui" font-size="20" fill="%23f97316"%3E图片暂时无法显示%3C/text%3E%3C/svg%3E';
|
||||
e.target.classList.add('error');
|
||||
}
|
||||
}, true);
|
||||
|
||||
// 移动端优化
|
||||
if ('ontouchstart' in window) {
|
||||
document.body.classList.add('touch-device');
|
||||
|
||||
// 移动端点击优化
|
||||
let touchStartTime;
|
||||
document.addEventListener('touchstart', () => {
|
||||
touchStartTime = Date.now();
|
||||
});
|
||||
|
||||
document.addEventListener('touchend', (e) => {
|
||||
const touchEndTime = Date.now();
|
||||
if (touchEndTime - touchStartTime < 200) {
|
||||
// 快速点击
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 性能监控
|
||||
if (window.performance && window.performance.timing) {
|
||||
window.addEventListener('load', () => {
|
||||
setTimeout(() => {
|
||||
const timing = window.performance.timing;
|
||||
const loadTime = timing.loadEventEnd - timing.navigationStart;
|
||||
console.log(`页面加载时间: ${loadTime}ms`);
|
||||
|
||||
// 如果加载时间过长,提示用户
|
||||
if (loadTime > 3000) {
|
||||
console.warn('页面加载时间较长,可能需要优化');
|
||||
}
|
||||
}, 0);
|
||||
});
|
||||
}
|
||||
|
||||
// 主题切换功能
|
||||
function initThemeToggle() {
|
||||
const themeToggleBtn = document.getElementById('themeToggleBtn');
|
||||
|
||||
// 从localStorage读取用户的主题偏好
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
// 如果没有保存的偏好,默认使用暗色主题
|
||||
if (savedTheme === 'dark' || savedTheme === null) {
|
||||
document.body.classList.add('dark-theme');
|
||||
}
|
||||
|
||||
// 点击切换主题
|
||||
if (themeToggleBtn) {
|
||||
themeToggleBtn.addEventListener('click', () => {
|
||||
document.body.classList.toggle('dark-theme');
|
||||
|
||||
// 保存用户偏好
|
||||
if (document.body.classList.contains('dark-theme')) {
|
||||
localStorage.setItem('theme', 'dark');
|
||||
} else {
|
||||
localStorage.setItem('theme', 'light');
|
||||
}
|
||||
|
||||
// 重新初始化图标以确保正确显示
|
||||
if (typeof lucide !== 'undefined') {
|
||||
lucide.createIcons();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user