three+echarts实现三维机械臂数字科技工厂炫酷大屏代码
代码语言:html
所属分类:图表
代码描述:three+echarts实现三维机械臂数字科技工厂炫酷大屏代码
代码标签: three echarts 三维 机械 臂 数字 科技 工厂 炫酷 大屏 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智慧工厂 · 机械臂运作数字大屏</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { background: #020a18; font-family: 'Microsoft YaHei','PingFang SC',sans-serif; color: #cfe8ff; }
#app { width: 100%; height: 100%; display: flex; flex-direction: column; }
.header {
height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between;
padding: 0 26px; position: relative;
background: linear-gradient(180deg, rgba(8,40,84,.85), rgba(4,18,40,.35));
border-bottom: 1px solid rgba(0,180,255,.35);
box-shadow: 0 2px 20px rgba(0,120,255,.25);
}
.header::after {
content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px;
background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}
.header-side { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #7fb3d5; min-width: 280px; }
.header-side.right { justify-content: flex-end; }
.sys-tag { letter-spacing: 2px; color: #58a8dd; }
.sys-ver { padding: 2px 8px; border: 1px solid rgba(0,190,255,.4); color: #00d4ff; font-size: 11px; border-radius: 2px; }
.time { font-family: Consolas, monospace; font-size: 15px; color: #9fdcff; letter-spacing: 1px; }
.title {
font-size: 26px; letter-spacing: 6px; font-weight: 700;
background: linear-gradient(180deg, #ffffff, #58c8ff);
-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
text-shadow: 0 0 26px rgba(0,180,255,.45);
}
.main { flex: 1; display: grid; grid-template-columns: 25% 1fr 25%; gap: 12px; padding: 12px; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel {
flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative;
background: linear-gradient(180deg, rgba(9,38,76,.55), rgba(4,17,38,.35));
border: 1px solid rgba(28,130,230,.28);
box-shadow: inset 0 0 24px rgba(0,130,255,.08);
}
.panel::before, .panel::after { content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top: 2px solid #00d4ff; border-left: 2px solid #00d4ff; }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid #00d4ff; border-right: 2px solid #00d4ff; }
.panel-hd {
flex: 0 0 34px; line-height: 34px; padding: 0 14px; font-size: 14px; letter-spacing: 3px; color: #bfe6ff;
background: linear-gradient(90deg, rgba(0,170,255,.22), rgba(0,170,255,0));
border-bottom: 1px solid rgba(28,130,230,.25);
}
.panel-hd::before {
content: ''; display: inline-block; width: 4px; height: 14px; margin-right: 9px; vertical-align: -2px;
background: linear-gradient(180deg, #00e0ff, #2979ff); border-radius: 1px;
}
.chart { flex: 1; min-height: 0; }
.center {
position: relative; min-height: 0; overflow: hidden;
border: 1px solid rgba(28,130,230,.28);
background: radial-gradient(ellipse at 50% 40%, #07234a 0%, #041228 55%, #020a18 100%);
}
#scene3d { position: absolute; inset: 0; cursor: grab; }
#scene3d:active { cursor: grabbing; }
.scene-tip { position: absolute; top: 10px; right: 14px; font-size: 12px; color: rgba(159,212,255,.55); letter-spacing: 1px; pointer-events: none; }
.stat-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 14px; pointer-events: none; }
.stat-item {
min-width: 132px; padding: 8px 18px; text-align: center;
.........完整代码请登录后点击上方下载按钮下载查看















网友评论0