You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
4.9 KiB
164 lines
4.9 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>AmazingData金融数据服务平台</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.container {
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
|
max-width: 600px;
|
|
width: 90%;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
.subtitle {
|
|
color: #666;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
.status {
|
|
background: #f0f9ff;
|
|
border: 1px solid #bae6fd;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.status-title {
|
|
font-weight: bold;
|
|
color: #0369a1;
|
|
margin-bottom: 10px;
|
|
}
|
|
.status-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #e0f2fe;
|
|
}
|
|
.status-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.status-label {
|
|
color: #64748b;
|
|
}
|
|
.status-value {
|
|
color: #0ea5e9;
|
|
font-weight: 500;
|
|
}
|
|
.features {
|
|
margin-top: 20px;
|
|
}
|
|
.features h3 {
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
}
|
|
.feature-list {
|
|
list-style: none;
|
|
}
|
|
.feature-list li {
|
|
padding: 8px 0;
|
|
color: #555;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.feature-list li::before {
|
|
content: "✓";
|
|
color: #22c55e;
|
|
font-weight: bold;
|
|
margin-right: 10px;
|
|
}
|
|
.api-link {
|
|
display: block;
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
padding: 12px 24px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
transition: transform 0.2s;
|
|
}
|
|
.api-link:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>AmazingData</h1>
|
|
<p class="subtitle">金融数据服务平台</p>
|
|
|
|
<div class="status">
|
|
<div class="status-title">系统状态</div>
|
|
<div class="status-item">
|
|
<span class="status-label">后端服务</span>
|
|
<span class="status-value" id="backend-status">检查中...</span>
|
|
</div>
|
|
<div class="status-item">
|
|
<span class="status-label">API版本</span>
|
|
<span class="status-value" id="api-version">-</span>
|
|
</div>
|
|
<div class="status-item">
|
|
<span class="status-label">数据库</span>
|
|
<span class="status-value">SQLite (演示模式)</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="features">
|
|
<h3>功能特性</h3>
|
|
<ul class="feature-list">
|
|
<li>完整SDK接口封装</li>
|
|
<li>智能数据缓存</li>
|
|
<li>实时数据订阅</li>
|
|
<li>缺失数据检测</li>
|
|
<li>批量缓存管理</li>
|
|
<li>可视化K线图</li>
|
|
<li>完整测试中心</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<a href="/docs" class="api-link">查看API文档</a>
|
|
|
|
<div class="footer">
|
|
默认账号: admin / admin123
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 检查后端状态
|
|
fetch('/api/v1/health')
|
|
.then(res => res.json())
|
|
.then(data => {
|
|
document.getElementById('backend-status').textContent = '运行中 ✓';
|
|
document.getElementById('backend-status').style.color = '#22c55e';
|
|
document.getElementById('api-version').textContent = data.version;
|
|
})
|
|
.catch(() => {
|
|
document.getElementById('backend-status').textContent = '未连接 ✗';
|
|
document.getElementById('backend-status').style.color = '#ef4444';
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|