|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>期货智析 - 智能期货期权分析系统</title>
|
|
|
|
|
<link rel="stylesheet" href="/static/futures_analysis.css">
|
|
|
|
|
<style>
|
|
|
|
|
:root {
|
|
|
|
|
--bg-page: #F5F5F7;
|
|
|
|
|
--bg-card: #FFFFFF;
|
|
|
|
|
--text-primary: #1D1D1F;
|
|
|
|
|
--text-secondary: #6E6E73;
|
|
|
|
|
--text-tertiary: #86868B;
|
|
|
|
|
--color-up: #FF3B30;
|
|
|
|
|
--color-down: #34C759;
|
|
|
|
|
--color-neutral: #FF9F0A;
|
|
|
|
|
--color-brand: #007AFF;
|
|
|
|
|
--color-ai: #AF52DE;
|
|
|
|
|
--shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
|
|
|
|
|
--shadow-md: 0 4px 12px rgba(0,0,0,0.06);
|
|
|
|
|
--shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
|
|
|
|
|
--radius-card: 20px;
|
|
|
|
|
--radius-btn: 12px;
|
|
|
|
|
--radius-pill: 9999px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
|
|
|
|
|
background-color: var(--bg-page);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
padding-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
height: 64px;
|
|
|
|
|
background: rgba(255, 255, 255, 0.8);
|
|
|
|
|
backdrop-filter: saturate(180%) blur(20px);
|
|
|
|
|
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
|
|
|
|
border-bottom: 1px solid rgba(0,0,0,0.05);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-right: 40px; }
|
|
|
|
|
.nav-items { display: flex; gap: 24px; flex: 1; }
|
|
|
|
|
.nav-item { font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; text-decoration: none; }
|
|
|
|
|
.nav-item:hover { color: var(--text-primary); }
|
|
|
|
|
.nav-item.active { color: var(--color-brand); font-weight: 500; }
|
|
|
|
|
.live-badge { font-size: 11px; color: var(--color-down); display: flex; align-items: center; gap: 4px; }
|
|
|
|
|
.dot { width: 6px; height: 6px; background: var(--color-down); border-radius: 50%; }
|
|
|
|
|
|
|
|
|
|
.container { max-width: 1200px; margin: 0 auto; padding: 24px 32px; }
|
|
|
|
|
|
|
|
|
|
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
|
|
|
|
|
|
|
|
|
|
.toolbar-left { display: flex; align-items: center; gap: 16px; flex: 1; }
|
|
|
|
|
|
|
|
|
|
.toolbar-actions { display: flex; gap: 10px; }
|
|
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: var(--radius-btn);
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
width: 300px;
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
outline: none;
|
|
|
|
|
transition: box-shadow 0.2s;
|
|
|
|
|
}
|
|
|
|
|
.search-box:focus { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2); }
|
|
|
|
|
|
|
|
|
|
.pills { display: flex; gap: 8px; }
|
|
|
|
|
.pill {
|
|
|
|
|
padding: 6px 16px;
|
|
|
|
|
border-radius: var(--radius-pill);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
.pill:hover { background: #F5F5F7; }
|
|
|
|
|
.pill.active { background: var(--color-brand); color: #FFFFFF; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }
|
|
|
|
|
|
|
|
|
|
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
|
|
|
|
|
.stat-card {
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
padding: 16px 20px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
|
|
|
}
|
|
|
|
|
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
|
|
|
|
|
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
|
|
|
|
|
.stat-icon.blue { background: rgba(0,122,255,0.1); color: var(--color-brand); }
|
|
|
|
|
.stat-icon.red { background: rgba(255,59,48,0.1); color: var(--color-up); }
|
|
|
|
|
.stat-icon.green { background: rgba(52,199,89,0.1); color: var(--color-down); }
|
|
|
|
|
.stat-icon.orange { background: rgba(255,159,10,0.1); color: var(--color-neutral); }
|
|
|
|
|
.stat-val { font-size: 24px; font-weight: 700; line-height: 1.2; }
|
|
|
|
|
.stat-label { font-size: 13px; color: var(--text-secondary); }
|
|
|
|
|
|
|
|
|
|
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
|
|
|
|
|
|
|
|
|
|
.card {
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-radius: var(--radius-card);
|
|
|
|
|
padding: 24px;
|
|
|
|
|
box-shadow: var(--shadow-md);
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
|
|
|
|
|
|
|
|
|
|
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
|
|
|
|
|
.code-box { width: 36px; height: 36px; background: #F5F5F7; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 8px; }
|
|
|
|
|
.price-area { text-align: right; }
|
|
|
|
|
.price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
|
|
|
|
|
.price.up { color: var(--color-up); }
|
|
|
|
|
.price.down { color: var(--color-down); }
|
|
|
|
|
.change { font-size: 13px; font-weight: 600; margin-top: 4px; }
|
|
|
|
|
.change.up { color: var(--color-up); }
|
|
|
|
|
.change.down { color: var(--color-down); }
|
|
|
|
|
|
|
|
|
|
.action-pill {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 4px 12px;
|
|
|
|
|
border-radius: var(--radius-pill);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
.action-pill.do-more { background: rgba(52,199,89,0.1); color: var(--color-down); }
|
|
|
|
|
.action-pill.watch { background: rgba(255,159,10,0.1); color: var(--color-neutral); }
|
|
|
|
|
|
|
|
|
|
.metrics { display: flex; gap: 24px; margin-bottom: 16px; }
|
|
|
|
|
.metric { flex: 1; }
|
|
|
|
|
.metric-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }
|
|
|
|
|
.metric-val { font-size: 14px; font-weight: 600; }
|
|
|
|
|
.bar-bg { height: 4px; background: #F5F5F7; border-radius: 2px; margin-top: 6px; overflow: hidden; }
|
|
|
|
|
.bar-fill { height: 100%; border-radius: 2px; }
|
|
|
|
|
|
|
|
|
|
.timeframes { display: flex; gap: 8px; margin-bottom: 16px; }
|
|
|
|
|
.tf { padding: 4px 10px; border-radius: 8px; font-size: 11px; color: var(--text-tertiary); background: #F5F5F7; cursor: pointer; }
|
|
|
|
|
.tf.active { background: #E8F2FF; color: var(--color-brand); font-weight: 500; }
|
|
|
|
|
|
|
|
|
|
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F5F5F7; padding-top: 12px; font-size: 12px; }
|
|
|
|
|
.support-resist { color: var(--text-tertiary); }
|
|
|
|
|
.support-resist span { margin-right: 8px; }
|
|
|
|
|
.support-resist .red { color: var(--color-up); }
|
|
|
|
|
.support-resist .green { color: var(--color-down); }
|
|
|
|
|
.link { color: var(--color-brand); font-weight: 500; text-decoration: none; }
|
|
|
|
|
.link:hover { text-decoration: underline; }
|
|
|
|
|
|
|
|
|
|
/* 详情视图样式 */
|
|
|
|
|
.view { display: none; }
|
|
|
|
|
.view.active { display: block; }
|
|
|
|
|
|
|
|
|
|
.detail-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
|
|
|
|
|
.back-btn, .refresh-btn {
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
border-radius: var(--radius-btn);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
.back-btn:hover, .refresh-btn:hover { background: #F5F5F7; color: var(--text-primary); }
|
|
|
|
|
|
|
|
|
|
.detail-header {
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-radius: var(--radius-card);
|
|
|
|
|
padding: 24px;
|
|
|
|
|
box-shadow: var(--shadow-md);
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
.header-left { display: flex; align-items: center; gap: 28px; }
|
|
|
|
|
.symbol-name { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
|
|
|
|
|
.symbol-code { font-size: 14px; color: var(--text-tertiary); padding: 4px 12px; background: #F5F5F7; border-radius: 8px; }
|
|
|
|
|
.price-main { display: flex; flex-direction: column; align-items: flex-end; }
|
|
|
|
|
.detail-price { font-size: 36px; font-weight: 700; letter-spacing: -1px; }
|
|
|
|
|
.detail-price.up { color: var(--color-up); }
|
|
|
|
|
.detail-price.down { color: var(--color-down); }
|
|
|
|
|
.detail-change { font-size: 16px; font-weight: 600; }
|
|
|
|
|
.detail-change.up { color: var(--color-up); }
|
|
|
|
|
.detail-change.down { color: var(--color-down); }
|
|
|
|
|
|
|
|
|
|
.quote-grid { display: flex; gap: 32px; margin-top: 16px; }
|
|
|
|
|
.quote-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
|
|
|
|
|
.quote-label { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; font-weight: 600; }
|
|
|
|
|
.quote-value { font-size: 16px; font-weight: 600; }
|
|
|
|
|
|
|
|
|
|
.period-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
|
|
|
|
|
.period-btns { display: flex; gap: 6px; background: #FFFFFF; padding: 4px; border-radius: 12px; box-shadow: var(--shadow-sm); }
|
|
|
|
|
.period-btn {
|
|
|
|
|
padding: 8px 20px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
.period-btn:hover { background: #F5F5F7; color: var(--text-primary); }
|
|
|
|
|
.period-btn.active { background: var(--color-brand); color: #FFFFFF; }
|
|
|
|
|
|
|
|
|
|
.detail-body { display: grid; grid-template-columns: 1fr 400px; gap: 20px; }
|
|
|
|
|
.chart-container, .history-container, .panel-card {
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-radius: var(--radius-card);
|
|
|
|
|
padding: 24px;
|
|
|
|
|
box-shadow: var(--shadow-md);
|
|
|
|
|
}
|
|
|
|
|
.kline-chart { width: 100%; height: 480px; }
|
|
|
|
|
|
|
|
|
|
/* 模态框样式 */
|
|
|
|
|
.modal-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: rgba(0, 0, 0, 0.4);
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
-webkit-backdrop-filter: blur(10px);
|
|
|
|
|
display: none;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
}
|
|
|
|
|
.modal-overlay.active { display: flex; }
|
|
|
|
|
.modal-content {
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 24px;
|
|
|
|
|
width: 90%;
|
|
|
|
|
max-width: 640px;
|
|
|
|
|
max-height: 80vh;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: var(--shadow-lg);
|
|
|
|
|
}
|
|
|
|
|
.modal-large { max-width: 960px; }
|
|
|
|
|
.modal-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 24px 28px;
|
|
|
|
|
border-bottom: 1px solid #F5F5F7;
|
|
|
|
|
}
|
|
|
|
|
.modal-header h3 { font-size: 18px; font-weight: 600; }
|
|
|
|
|
.modal-close {
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
.modal-close:hover { background: #F5F5F7; }
|
|
|
|
|
.modal-body { padding: 28px; overflow-y: auto; max-height: 70vh; }
|
|
|
|
|
|
|
|
|
|
/* Toast 样式 */
|
|
|
|
|
.toast-container { position: fixed; top: 88px; right: 32px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }
|
|
|
|
|
.toast {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 16px 22px;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
box-shadow: var(--shadow-lg);
|
|
|
|
|
min-width: 300px;
|
|
|
|
|
max-width: 420px;
|
|
|
|
|
}
|
|
|
|
|
.toast.success { border-left: 4px solid var(--color-down); }
|
|
|
|
|
.toast.error { border-left: 4px solid var(--color-up); }
|
|
|
|
|
.toast.warning { border-left: 4px solid var(--color-neutral); }
|
|
|
|
|
.toast.info { border-left: 4px solid var(--color-brand); }
|
|
|
|
|
.toast-title { font-size: 14px; font-weight: 600; }
|
|
|
|
|
.toast-message { font-size: 13px; color: var(--text-secondary); }
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
from { transform: rotate(0deg); }
|
|
|
|
|
to { transform: rotate(360deg); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1200px) { .detail-body { grid-template-columns: 1fr; } }
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.stats-row { grid-template-columns: repeat(2, 1fr); }
|
|
|
|
|
.grid { grid-template-columns: 1fr; }
|
|
|
|
|
.header { padding: 0 16px; }
|
|
|
|
|
.container { padding: 16px; }
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<header class="header">
|
|
|
|
|
<div class="logo">◈ 期货智析</div>
|
|
|
|
|
<div class="nav-items">
|
|
|
|
|
<a href="#" class="nav-item active" data-page="analysis">品种分析</a>
|
|
|
|
|
<a href="#" class="nav-item" data-page="watched">自选</a>
|
|
|
|
|
<a href="#" class="nav-item" data-page="market">市场概览</a>
|
|
|
|
|
<a href="#" class="nav-item" data-page="risk">风险预警</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="live-badge">
|
|
|
|
|
<div class="dot"></div> LIVE
|
|
|
|
|
<span id="current-time" style="margin-left: 8px; font-size: 11px; color: var(--text-tertiary); font-variant-numeric: tabular-nums;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
|
|
<!-- Toast 提示容器 -->
|
|
|
|
|
<div class="toast-container" id="toast-container"></div>
|
|
|
|
|
|
|
|
|
|
<!-- 品种列表视图 -->
|
|
|
|
|
<div id="list-view" class="view active">
|
|
|
|
|
<!-- Toolbar -->
|
|
|
|
|
<div class="toolbar">
|
|
|
|
|
<div class="toolbar-left">
|
|
|
|
|
<input type="text" class="search-box" id="search-input" placeholder="🔍 搜索品种名称或代码...">
|
|
|
|
|
<div class="toolbar-actions">
|
|
|
|
|
<button class="refresh-all-btn" id="refresh-all-btn">
|
|
|
|
|
<i class="fas fa-sync-alt"></i>
|
|
|
|
|
<span>刷新全部</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="ai-analyze-all-btn" id="ai-analyze-all-btn">
|
|
|
|
|
<i class="fas fa-brain"></i>
|
|
|
|
|
<span>全部分析</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pills">
|
|
|
|
|
<button class="pill active" data-category="all">全部 <span id="count-all">32</span></button>
|
|
|
|
|
<button class="pill" data-category="watched">自选 <span id="count-watched">0</span></button>
|
|
|
|
|
<button class="pill" data-category="energy">能源</button>
|
|
|
|
|
<button class="pill" data-category="metal">金属</button>
|
|
|
|
|
<button class="pill" data-category="agriculture">农产品</button>
|
|
|
|
|
<button class="pill" data-category="finance">金融</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Stats -->
|
|
|
|
|
<div class="stats-row">
|
|
|
|
|
<div class="stat-card" onclick="filterByTrend('all')" style="cursor: pointer;" title="显示全部">
|
|
|
|
|
<div class="stat-icon blue">≡</div>
|
|
|
|
|
<div><div class="stat-val" id="total-count">0</div><div class="stat-label">监控品种</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-card" onclick="filterByTrend('up')" style="cursor: pointer;" title="筛选上涨趋势">
|
|
|
|
|
<div class="stat-icon green">↗</div>
|
|
|
|
|
<div><div class="stat-val" id="up-count">0</div><div class="stat-label">上涨趋势</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-card" onclick="filterByTrend('down')" style="cursor: pointer;" title="筛选下跌趋势">
|
|
|
|
|
<div class="stat-icon red">↘</div>
|
|
|
|
|
<div><div class="stat-val" id="down-count">0</div><div class="stat-label">下跌趋势</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="stat-card" onclick="filterByTrend('neutral')" style="cursor: pointer;" title="筛选震荡整理">
|
|
|
|
|
<div class="stat-icon orange">↔</div>
|
|
|
|
|
<div><div class="stat-val" id="neutral-count">0</div><div class="stat-label">震荡整理</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Grid -->
|
|
|
|
|
<div id="futures-grid" class="grid">
|
|
|
|
|
<!-- 动态生成 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 详情分析视图 -->
|
|
|
|
|
<div id="detail-view" class="view">
|
|
|
|
|
<div class="detail-actions">
|
|
|
|
|
<button class="back-btn" id="back-btn">← 返回</button>
|
|
|
|
|
<button class="refresh-btn" id="refresh-symbol-btn">刷新数据</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="detail-header">
|
|
|
|
|
<div class="header-left">
|
|
|
|
|
<div>
|
|
|
|
|
<span class="symbol-name" id="detail-name">--</span>
|
|
|
|
|
<span class="symbol-code" id="detail-symbol">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="price-main">
|
|
|
|
|
<span class="detail-price" id="detail-price">--</span>
|
|
|
|
|
<span class="detail-change" id="detail-change">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="quote-grid">
|
|
|
|
|
<div class="quote-item">
|
|
|
|
|
<span class="quote-label">开盘</span>
|
|
|
|
|
<span class="quote-value" id="detail-open">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="quote-item">
|
|
|
|
|
<span class="quote-label">最高</span>
|
|
|
|
|
<span class="quote-value" id="detail-high">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="quote-item">
|
|
|
|
|
<span class="quote-label">最低</span>
|
|
|
|
|
<span class="quote-value" id="detail-low">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="quote-item">
|
|
|
|
|
<span class="quote-label">成交量</span>
|
|
|
|
|
<span class="quote-value" id="detail-volume">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="period-bar">
|
|
|
|
|
<span style="font-size: 14px; color: var(--text-secondary); font-weight: 500;">周期</span>
|
|
|
|
|
<div class="period-btns">
|
|
|
|
|
<button class="period-btn" data-period="5">5M</button>
|
|
|
|
|
<button class="period-btn active" data-period="15">15M</button>
|
|
|
|
|
<button class="period-btn" data-period="30">30M</button>
|
|
|
|
|
<button class="period-btn" data-period="60">1H</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="detail-body">
|
|
|
|
|
<div class="chart-section">
|
|
|
|
|
<div class="chart-container">
|
|
|
|
|
<div id="kline-chart" class="kline-chart"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="history-container">
|
|
|
|
|
<div style="font-size: 17px; font-weight: 600; margin-bottom: 16px;">历史分析记录</div>
|
|
|
|
|
<div class="history-list" id="history-list"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="analysis-sidebar">
|
|
|
|
|
<div class="panel-card" id="ai-analysis-panel">
|
|
|
|
|
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;">
|
|
|
|
|
<span style="font-size: 15px; font-weight: 600;">AI 思维分析</span>
|
|
|
|
|
<button class="back-btn" id="ai-analyze-btn" onclick="runAIAnalysis()" style="padding: 6px 12px; font-size: 13px;">智能分析</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ai-analysis-content" id="ai-analysis-content">
|
|
|
|
|
<div style="text-align: center; padding: 28px; color: var(--text-tertiary);">
|
|
|
|
|
<p>点击"智能分析"按钮获取AI分析结果</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-card">
|
|
|
|
|
<div style="font-size: 15px; font-weight: 600; margin-bottom: 16px;">技术指标</div>
|
|
|
|
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
|
|
|
|
<div style="padding: 14px; background: #F5F5F7; border-radius: 12px;">
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-tertiary); font-weight: 600;">MACD</div>
|
|
|
|
|
<div style="font-size: 16px; font-weight: 700;" id="macd-signal">--</div>
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-secondary);" id="macd-detail">--</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding: 14px; background: #F5F5F7; border-radius: 12px;">
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-tertiary); font-weight: 600;">RSI</div>
|
|
|
|
|
<div style="font-size: 16px; font-weight: 700;" id="rsi-value">--</div>
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-secondary);" id="rsi-status">--</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding: 14px; background: #F5F5F7; border-radius: 12px;">
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-tertiary); font-weight: 600;">BOLL</div>
|
|
|
|
|
<div style="font-size: 16px; font-weight: 700;" id="boll-signal">--</div>
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-secondary);" id="boll-detail">--</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding: 14px; background: #F5F5F7; border-radius: 12px;">
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-tertiary); font-weight: 600;">KDJ</div>
|
|
|
|
|
<div style="font-size: 16px; font-weight: 700;" id="kdj-signal">--</div>
|
|
|
|
|
<div style="font-size: 12px; color: var(--text-secondary);" id="kdj-detail">--</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-card">
|
|
|
|
|
<div style="font-size: 15px; font-weight: 600; margin-bottom: 16px;">关键点位</div>
|
|
|
|
|
<div style="display: flex; flex-direction: column; gap: 10px;">
|
|
|
|
|
<div style="font-size: 12px; font-weight: 600; color: var(--color-up); text-transform: uppercase;">压力</div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 8px 12px; background: #F5F5F7; border-radius: 10px; font-size: 13px;">
|
|
|
|
|
<span style="color: var(--text-secondary);">R1</span>
|
|
|
|
|
<span style="font-weight: 600;" id="resistance-1">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 8px 12px; background: #F5F5F7; border-radius: 10px; font-size: 13px;">
|
|
|
|
|
<span style="color: var(--text-secondary);">R2</span>
|
|
|
|
|
<span style="font-weight: 600;" id="resistance-2">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="height: 1px; background: #F5F5F7;"></div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 10px 14px; background: rgba(175,82,222,0.1); border-radius: 12px;">
|
|
|
|
|
<span style="color: var(--color-ai); font-weight: 600;">中枢 (PP)</span>
|
|
|
|
|
<span style="color: var(--color-ai); font-size: 16px; font-weight: 700;" id="pivot-point">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="height: 1px; background: #F5F5F7;"></div>
|
|
|
|
|
<div style="font-size: 12px; font-weight: 600; color: var(--color-down); text-transform: uppercase;">支撑</div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 8px 12px; background: #F5F5F7; border-radius: 10px; font-size: 13px;">
|
|
|
|
|
<span style="color: var(--text-secondary);">S1</span>
|
|
|
|
|
<span style="font-weight: 600;" id="support-1">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 8px 12px; background: #F5F5F7; border-radius: 10px; font-size: 13px;">
|
|
|
|
|
<span style="color: var(--text-secondary);">S2</span>
|
|
|
|
|
<span style="font-weight: 600;" id="support-2">--</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-card">
|
|
|
|
|
<div style="font-size: 15px; font-weight: 600; margin-bottom: 16px;">多周期趋势</div>
|
|
|
|
|
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;" id="period-trends"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-card" id="scenario-panel" style="display:none;">
|
|
|
|
|
<div style="font-size: 15px; font-weight: 600; margin-bottom: 16px;">情景预案</div>
|
|
|
|
|
<div style="display: flex; flex-direction: column; gap: 12px;" id="scenario-plans"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- AI分析详情对话框 -->
|
|
|
|
|
<div class="modal-overlay" id="ai-analysis-modal">
|
|
|
|
|
<div class="modal-content modal-large">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h3>AI 四维联合分析报告</h3>
|
|
|
|
|
<button class="modal-close" onclick="closeModal('ai-analysis-modal')">✕</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" id="ai-analysis-modal-body">
|
|
|
|
|
<!-- 动态生成 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- AI建议详情对话框 -->
|
|
|
|
|
<div class="modal-overlay" id="suggestion-modal">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h3>AI 交易建议详情</h3>
|
|
|
|
|
<button class="modal-close" onclick="closeModal('suggestion-modal')">✕</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" id="suggestion-modal-body">
|
|
|
|
|
<!-- 动态生成 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 历史记录详情对话框 -->
|
|
|
|
|
<div class="modal-overlay" id="history-modal">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h3>分析记录详情</h3>
|
|
|
|
|
<button class="modal-close" onclick="closeModal('history-modal')">✕</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" id="history-modal-body">
|
|
|
|
|
<!-- 动态生成 -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
|
|
|
|
|
<script src="/static/futures_analysis.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|