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.
405 lines
12 KiB
405 lines
12 KiB
|
4 months ago
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>{{ name }} - 分析卡片</title>
|
||
|
|
<link href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css" rel="stylesheet">
|
||
|
|
<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: 800px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header {
|
||
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
|
|
color: white;
|
||
|
|
padding: 24px;
|
||
|
|
border-radius: 12px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.header-content {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header h1 {
|
||
|
|
font-size: 20px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.back-link {
|
||
|
|
color: white;
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 14px;
|
||
|
|
padding: 6px 12px;
|
||
|
|
background-color: rgba(255, 255, 255, 0.2);
|
||
|
|
border-radius: 6px;
|
||
|
|
transition: background-color 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.back-link:hover {
|
||
|
|
background-color: rgba(255, 255, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.card {
|
||
|
|
background: white;
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 24px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: flex-start;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
padding-bottom: 16px;
|
||
|
|
border-bottom: 1px solid #f0f0f0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.symbol-info {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.symbol-name {
|
||
|
|
font-size: 24px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #333;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.symbol-code {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #999;
|
||
|
|
}
|
||
|
|
|
||
|
|
.price-info {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.current-price {
|
||
|
|
font-size: 32px;
|
||
|
|
font-weight: 700;
|
||
|
|
color: #333;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.direction-indicator {
|
||
|
|
display: inline-block;
|
||
|
|
padding: 6px 16px;
|
||
|
|
border-radius: 16px;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-body {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-title {
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #333;
|
||
|
|
margin-bottom: 12px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-title::before {
|
||
|
|
content: '';
|
||
|
|
width: 4px;
|
||
|
|
height: 16px;
|
||
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
|
|
border-radius: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stats-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-item {
|
||
|
|
background-color: #f9fafb;
|
||
|
|
padding: 16px;
|
||
|
|
border-radius: 8px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #666;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-value {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.win-rate {
|
||
|
|
color: #1890ff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.fund-flow {
|
||
|
|
color: #52c41a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rollover-warning {
|
||
|
|
color: #fa8c16;
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-list {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-item {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 10px 12px;
|
||
|
|
background-color: #f9fafb;
|
||
|
|
border-radius: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-name {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #666;
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-value {
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.recommendation {
|
||
|
|
background-color: #f0f5ff;
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 16px;
|
||
|
|
border-left: 4px solid #1890ff;
|
||
|
|
margin-top: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.recommendation-title {
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #1890ff;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.recommendation-content {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #333;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-footer {
|
||
|
|
text-align: center;
|
||
|
|
padding-top: 16px;
|
||
|
|
border-top: 1px solid #f0f0f0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-link {
|
||
|
|
color: #1890ff;
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-link:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
|
||
|
|
.footer {
|
||
|
|
text-align: center;
|
||
|
|
padding: 20px;
|
||
|
|
color: #999;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.header-content {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-header {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.price-info {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stats-grid {
|
||
|
|
grid-template-columns: repeat(2, 1fr);
|
||
|
|
}
|
||
|
|
|
||
|
|
.indicator-list {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="container">
|
||
|
|
<!-- 头部 -->
|
||
|
|
<div class="header">
|
||
|
|
<div class="header-content">
|
||
|
|
<h1>分析卡片</h1>
|
||
|
|
<a href="/" class="back-link">返回多品种面板</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 分析卡片 -->
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<div class="symbol-info">
|
||
|
|
<div class="symbol-name">{{ name }}</div>
|
||
|
|
<div class="symbol-code">{{ symbol }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="price-info">
|
||
|
|
<div class="current-price">{{ current_price }}</div>
|
||
|
|
<div class="direction-indicator
|
||
|
|
{% if direction == 'bullish' or direction == 'strong_bullish' or direction == 'weak_bullish' %}direction-up{% elif direction == 'bearish' or direction == 'strong_bearish' or direction == 'weak_bearish' %}direction-down{% else %}direction-sideways{% endif %}">
|
||
|
|
{% if direction == 'strong_bullish' %}强多头
|
||
|
|
{% elif direction == 'strong_bearish' %}强空头
|
||
|
|
{% elif direction == 'weak_bullish' %}弱多头
|
||
|
|
{% elif direction == 'weak_bearish' %}弱空头
|
||
|
|
{% elif direction == 'bullish' %}多头
|
||
|
|
{% elif direction == 'bearish' %}空头
|
||
|
|
{% elif direction == 'neutral' %}中性
|
||
|
|
{% else %}{{ direction | capitalize }}
|
||
|
|
{% endif %}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="card-body">
|
||
|
|
<!-- 核心指标 -->
|
||
|
|
<div class="section">
|
||
|
|
<div class="section-title">核心指标</div>
|
||
|
|
<div class="stats-grid">
|
||
|
|
<div class="stat-item">
|
||
|
|
<div class="stat-label">胜率</div>
|
||
|
|
<div class="stat-value win-rate">{{ win_rate }}%</div>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<div class="stat-label">资金流向</div>
|
||
|
|
<div class="stat-value fund-flow">{{ fund_flow.fund_signal | capitalize }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="stat-item">
|
||
|
|
<div class="stat-label">换月预警</div>
|
||
|
|
<div class="stat-value rollover-warning">{{ rollover_warning.warning_level | capitalize }}</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 技术指标 -->
|
||
|
|
<div class="section">
|
||
|
|
<div class="section-title">技术指标</div>
|
||
|
|
<div class="indicator-list">
|
||
|
|
<div class="indicator-item">
|
||
|
|
<div class="indicator-name">MACD</div>
|
||
|
|
<div class="indicator-value">{{ technical_indicators.macd.signal }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-item">
|
||
|
|
<div class="indicator-name">RSI</div>
|
||
|
|
<div class="indicator-value">{{ technical_indicators.rsi }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-item">
|
||
|
|
<div class="indicator-name">布林带</div>
|
||
|
|
<div class="indicator-value">{{ technical_indicators.bollinger.position }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-item">
|
||
|
|
<div class="indicator-name">KDJ</div>
|
||
|
|
<div class="indicator-value">{{ technical_indicators.kdj.signal }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="indicator-item">
|
||
|
|
<div class="indicator-name">ATR</div>
|
||
|
|
<div class="indicator-value">{{ technical_indicators.atr | round(2) }}</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- AI 建议 -->
|
||
|
|
<div class="section">
|
||
|
|
<div class="section-title">AI交易建议</div>
|
||
|
|
<div class="recommendation">
|
||
|
|
<div class="recommendation-title">建议</div>
|
||
|
|
<div class="recommendation-content">{{ recommendation }}</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="card-footer">
|
||
|
|
<a href="/symbol/{{ symbol }}" class="detail-link">查看详细分析 →</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 底部 -->
|
||
|
|
<div class="footer">
|
||
|
|
<p>© 2024 AI期货分析系统 | 数据更新时间: {{ now() }}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
// 获取当前时间
|
||
|
|
function now() {
|
||
|
|
const date = new Date();
|
||
|
|
return date.toLocaleString('zh-CN');
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|