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.
272 lines
9.3 KiB
272 lines
9.3 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>AI期货分析系统 - 多品种分析面板</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css" rel="stylesheet">
|
|
<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;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background-color: #f0f2f5;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 16px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.panel-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.symbol-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.symbol-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.symbol-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.symbol-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.symbol-code {
|
|
font-size: 14px;
|
|
color: #999;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.price-info {
|
|
text-align: right;
|
|
}
|
|
|
|
.current-price {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: #333;
|
|
}
|
|
|
|
.direction-indicator {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.direction-up {
|
|
background-color: #f6ffed;
|
|
color: #52c41a;
|
|
border: 1px solid #b7eb8f;
|
|
}
|
|
|
|
.direction-down {
|
|
background-color: #fff2f0;
|
|
color: #ff4d4f;
|
|
border: 1px solid #ffccc7;
|
|
}
|
|
|
|
.direction-sideways {
|
|
background-color: #f0f5ff;
|
|
color: #1890ff;
|
|
border: 1px solid #adc6ff;
|
|
}
|
|
|
|
.analysis-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 15px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.analysis-item {
|
|
background-color: #f9fafb;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.analysis-label {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.analysis-value {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.win-rate {
|
|
color: #1890ff;
|
|
}
|
|
|
|
.rollover-warning {
|
|
color: #fa8c16;
|
|
}
|
|
|
|
.fund-flow {
|
|
color: #52c41a;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: #999;
|
|
font-size: 14px;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.panel-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.analysis-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- 头部 -->
|
|
<div class="header">
|
|
<h1>AI期货分析系统</h1>
|
|
<p>基于DeepSeek大模型和量化分析算法的智能决策平台</p>
|
|
</div>
|
|
|
|
<!-- 多品种分析面板 -->
|
|
{% if data_unavailable %}
|
|
<div style="text-align: center; padding: 60px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);">
|
|
<div style="font-size: 48px; margin-bottom: 20px;">⚠️</div>
|
|
<h2 style="font-size: 24px; font-weight: 600; color: #333; margin-bottom: 16px;">数据不可用</h2>
|
|
<p style="font-size: 16px; color: #666; margin-bottom: 32px;">{{ message }}</p>
|
|
<div style="display: flex; justify-content: center; gap: 16px;">
|
|
<a href="/" style="padding: 10px 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 500;">重试</a>
|
|
<a href="javascript:location.reload()" style="padding: 10px 24px; background: #f0f0f0; color: #333; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 500;">刷新</a>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="panel-grid">
|
|
{% for symbol_data in symbols_data %}
|
|
<div class="symbol-card" onclick="window.location.href='/symbol/{{ symbol_data.symbol }}'">
|
|
<div class="symbol-header">
|
|
<div>
|
|
<div class="symbol-name">{{ symbol_data.name }}</div>
|
|
<div class="symbol-code">{{ symbol_data.symbol }}</div>
|
|
</div>
|
|
<div class="price-info">
|
|
<div class="current-price">{{ symbol_data.current_price }}</div>
|
|
<div class="direction-indicator
|
|
{% if symbol_data.direction == 'bullish' or symbol_data.direction == 'strong_bullish' or symbol_data.direction == 'weak_bullish' %}direction-up{% elif symbol_data.direction == 'bearish' or symbol_data.direction == 'strong_bearish' or symbol_data.direction == 'weak_bearish' %}direction-down{% else %}direction-sideways{% endif %}">
|
|
{% if symbol_data.direction == 'strong_bullish' %}强多头
|
|
{% elif symbol_data.direction == 'strong_bearish' %}强空头
|
|
{% elif symbol_data.direction == 'weak_bullish' %}弱多头
|
|
{% elif symbol_data.direction == 'weak_bearish' %}弱空头
|
|
{% elif symbol_data.direction == 'bullish' %}多头
|
|
{% elif symbol_data.direction == 'bearish' %}空头
|
|
{% elif symbol_data.direction == 'neutral' %}中性
|
|
{% else %}{{ symbol_data.direction | capitalize }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="analysis-grid">
|
|
<div class="analysis-item">
|
|
<div class="analysis-label">胜率</div>
|
|
<div class="analysis-value win-rate">{{ symbol_data.win_rate }}%</div>
|
|
</div>
|
|
<div class="analysis-item">
|
|
<div class="analysis-label">趋势强度</div>
|
|
<div class="analysis-value">{{ symbol_data.trend_strength }}</div>
|
|
</div>
|
|
<div class="analysis-item">
|
|
<div class="analysis-label">周期</div>
|
|
<div class="analysis-value">{{ symbol_data.cycle }}</div>
|
|
</div>
|
|
<div class="analysis-item">
|
|
<div class="analysis-label">换月预警</div>
|
|
<div class="analysis-value rollover-warning">{{ symbol_data.rollover_warning }}</div>
|
|
</div>
|
|
<div class="analysis-item">
|
|
<div class="analysis-label">资金流向</div>
|
|
<div class="analysis-value fund-flow">{{ symbol_data.fund_flow }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- 底部 -->
|
|
<div class="footer">
|
|
<p>© 2024 AI期货分析系统 | 数据更新时间: {{ now() }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 获取当前时间
|
|
function now() {
|
|
const date = new Date();
|
|
return date.toLocaleString('zh-CN');
|
|
}
|
|
|
|
// 定时刷新数据
|
|
setInterval(() => {
|
|
window.location.reload();
|
|
}, 60000); // 每分钟刷新一次
|
|
</script>
|
|
</body>
|
|
</html> |