125 lines
3.7 KiB
HTML
125 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>红蓝攻防对抗系统</title>
|
|
<meta name="description" content="基于Cesium.js的3D军事态势感知与对抗演练系统" />
|
|
<meta name="keywords" content="军事演练,态势感知,Cesium,3D地球,红蓝对抗" />
|
|
|
|
<!-- Cesium CSS -->
|
|
<script src="https://cesium.com/downloads/cesiumjs/releases/1.111/Build/Cesium/Cesium.js"></script>
|
|
<link href="https://cesium.com/downloads/cesiumjs/releases/1.111/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
|
|
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
|
|
'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loading-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.loading-logo {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-bottom: 20px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 30px;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 18px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: white;
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { transform: scale(1); }
|
|
50% { transform: scale(1.1); }
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 隐藏加载动画 */
|
|
.loading-container.hidden {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.5s ease, visibility 0.5s ease;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- 加载动画 -->
|
|
<div id="loading" class="loading-container">
|
|
<div class="loading-logo">🌍</div>
|
|
<div class="loading-text">红蓝攻防对抗系统</div>
|
|
<div class="loading-text" style="font-size: 14px; opacity: 0.7;">正在初始化3D态势显示系统...</div>
|
|
<div class="loading-spinner"></div>
|
|
</div>
|
|
|
|
<!-- Vue应用容器 -->
|
|
<div id="app"></div>
|
|
|
|
<script>
|
|
// 页面加载完成后隐藏加载动画
|
|
window.addEventListener('load', function() {
|
|
setTimeout(function() {
|
|
const loading = document.getElementById('loading');
|
|
if (loading) {
|
|
loading.classList.add('hidden');
|
|
setTimeout(function() {
|
|
loading.style.display = 'none';
|
|
}, 500);
|
|
}
|
|
}, 1500); // 延迟1.5秒显示加载效果
|
|
});
|
|
|
|
// 设置Cesium静态资源路径
|
|
if (typeof window.CESIUM_BASE_URL === 'undefined') {
|
|
window.CESIUM_BASE_URL = 'https://cesium.com/downloads/cesiumjs/releases/1.111/Build/Cesium/';
|
|
}
|
|
</script>
|
|
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|
|
|