257 lines
11 KiB
HTML
257 lines
11 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>智能投注辅助系统(仅供参考)</title>
|
||
<link rel="icon" href="/assets/picker.svg" type="image/svg+xml" />
|
||
<link rel="stylesheet" href="assets/style.css" />
|
||
<script>
|
||
window.API_BASE = '/api/dlt';
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<header class="app-header">
|
||
<h1>超级大乐透智能投注辅助系统</h1>
|
||
<p class="disclaimer">
|
||
本系统用于数据分析与选号参考,严格遵循国家彩票管理条例,不承诺中奖,不支持自动投注或下单功能。
|
||
所有投注需前往官方销售网点完成。未成年人不得购彩,请理性参与,量力而行。
|
||
</p>
|
||
</header>
|
||
|
||
<nav class="tabs">
|
||
<button class="tab-btn active" data-target="data">数据管理</button>
|
||
<button class="tab-btn" data-target="ingest">官网数据解析入库</button>
|
||
<button class="tab-btn" data-target="analysis">智能分析</button>
|
||
<button class="tab-btn" data-target="picker">选号推荐</button>
|
||
<button class="tab-btn" data-target="calculator">投注计算器</button>
|
||
<button class="tab-btn" data-target="export">结果导出</button>
|
||
</nav>
|
||
|
||
<main>
|
||
<!-- 数据管理模块 -->
|
||
<section id="data" class="tab-panel">
|
||
<h2>数据采集与更新</h2>
|
||
<div class="card">
|
||
<div class="row gap">
|
||
<input type="file" id="csvFile" accept=".csv" />
|
||
<button id="btnImport">导入CSV</button>
|
||
<button id="btnClear" class="secondary">清空本地数据</button>
|
||
<button id="btnTemplate" class="ghost">下载CSV模板</button>
|
||
<button id="btnFetchSina" class="secondary">官网抓取中奖数据</button>
|
||
<button id="btnExportDraws" class="ghost danger">导出CSV</button>
|
||
</div>
|
||
<p class="muted">CSV字段:期号, 开奖日期, 前区, 后区, 奖池资金。示例:2024001, 2024-01-01, "01 02 03 04 05", "06 12", 100000000</p>
|
||
<div class="row">
|
||
<label>分析周期(最近期数)</label>
|
||
<input type="number" id="periodWindow" min="1" value="50" />
|
||
<button id="btnRefresh">更新分析</button>
|
||
</div>
|
||
<div class="row">
|
||
<span>本地已保存期数:<strong id="drawCount">0</strong></span>
|
||
<span>最近一期:<strong id="latestIssue">-</strong></span>
|
||
</div>
|
||
<div class="row gap">
|
||
<button id="btnLogClear" class="ghost">清空日志</button>
|
||
</div>
|
||
<h3>抓取日志</h3>
|
||
<pre id="fetchLog" class="log" aria-live="polite"></pre>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 官网数据解析入库模块 -->
|
||
<section id="ingest" class="tab-panel hidden">
|
||
<h2>官网数据解析入库</h2>
|
||
<div class="card">
|
||
<h3>备用方式:粘贴官网页面源码解析。网址是https://www.lottery.gov.cn/kj/kjlb.html?dlt</h3>
|
||
<p class="muted">可粘贴“查看源代码”或你复制的纯文本表格行(支持如下格式:期号 日期 前区(5) 后区(2) 其他列)。</p>
|
||
<textarea id="htmlPaste" class="paste" rows="10" placeholder="粘贴官网页面源代码或纯文本行,例如:\n25127\t2025-11-08\t04\t05\t19\t28\t29\t05\t08\t36 ..."></textarea>
|
||
<div class="row gap">
|
||
<button id="btnParseHtml" class="secondary">解析并入库</button>
|
||
<button id="btnParsePlain" class="secondary">解析纯文本并入库</button>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 智能分析模块 -->
|
||
<section id="analysis" class="tab-panel hidden">
|
||
<h2>基础统计分析</h2>
|
||
<div class="card">
|
||
<h3>号码冷热(前区 01-35)</h3>
|
||
<div id="frontFreq" class="bars"></div>
|
||
<h3>号码冷热(后区 01-12)</h3>
|
||
<div id="backFreq" class="bars"></div>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<h3>号码遗漏</h3>
|
||
<div class="row">
|
||
<div class="col">
|
||
<h4>前区遗漏</h4>
|
||
<div id="frontMiss" class="grid"></div>
|
||
</div>
|
||
<div class="col">
|
||
<h4>后区遗漏</h4>
|
||
<div id="backMiss" class="grid"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<h3>和值、奇偶、大小、区间分布</h3>
|
||
<div id="summaryStats" class="summary"></div>
|
||
<div class="row gap">
|
||
<label>大小阈值(前区)</label>
|
||
<input type="number" id="frontSizeThreshold" value="18" />
|
||
<label>大小阈值(后区)</label>
|
||
<input type="number" id="backSizeThreshold" value="6" />
|
||
<button id="btnRecompute">重新统计</button>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 选号策略与推荐模块 -->
|
||
<section id="picker" class="tab-panel hidden">
|
||
<h2>选号策略与推荐</h2>
|
||
<div class="card">
|
||
<h3>随机选号</h3>
|
||
<div class="row gap">
|
||
<label>生成组数</label>
|
||
<input type="number" id="randomCount" min="1" value="3" />
|
||
<button id="btnRandom">生成随机号码</button>
|
||
</div>
|
||
<div id="randomOutput" class="list"></div>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<h3>智能选号(偏好设置)</h3>
|
||
<div class="row gap">
|
||
<label>偏好热号(0-100)</label>
|
||
<input type="range" id="hotPref" min="0" max="100" value="60" />
|
||
<span id="hotPrefVal">60</span>
|
||
<label>偏好冷号(0-100)</label>
|
||
<input type="range" id="coldPref" min="0" max="100" value="40" />
|
||
<span id="coldPrefVal">40</span>
|
||
</div>
|
||
<div class="row gap">
|
||
<label>奇偶比(前区)</label>
|
||
<select id="parityFront">
|
||
<option value="3-2">3:2</option>
|
||
<option value="2-3">2:3</option>
|
||
<option value="4-1">4:1</option>
|
||
<option value="1-4">1:4</option>
|
||
</select>
|
||
<label>大小比(前区)</label>
|
||
<select id="sizeFront">
|
||
<option value="3-2">3:2</option>
|
||
<option value="2-3">2:3</option>
|
||
</select>
|
||
</div>
|
||
<div class="row gap">
|
||
<label>生成组数</label>
|
||
<input type="number" id="smartCount" min="1" value="3" />
|
||
<button id="btnSmart">生成智能推荐</button>
|
||
</div>
|
||
<div id="smartOutput" class="list"></div>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<h3>AI快速五组号码(基于历史分析,仅供参考)</h3>
|
||
<div class="row gap">
|
||
<button id="btnQuickAI">DeepSeek智能五组号码</button>
|
||
<button id="btnQuickChatGPT">ChatGPT智能五组号码</button>
|
||
<button id="btnQuickKimi2">Kimi2智能五组号码</button>
|
||
<button id="btnQuickDoubao">豆包智能五组号码</button>
|
||
</div>
|
||
<div id="aiQuickOutput" class="list"></div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 投注计算器模块 -->
|
||
<section id="calculator" class="tab-panel hidden">
|
||
<h2>投注计算器</h2>
|
||
<div class="card">
|
||
<div class="row gap">
|
||
<label>投注方式</label>
|
||
<select id="betType">
|
||
<option value="single">单式</option>
|
||
<option value="multiple">复式</option>
|
||
<option value="dantuo">胆拖</option>
|
||
</select>
|
||
<label class="switch">
|
||
<input type="checkbox" id="extraAdd" />
|
||
<span>追加投注</span>
|
||
</label>
|
||
</div>
|
||
|
||
<!-- 单式 -->
|
||
<div id="singleForm" class="form">
|
||
<div class="row gap">
|
||
<label>前区(5个,用逗号分隔)</label>
|
||
<input type="text" id="singleFront" placeholder="如:01,08,12,23,31" />
|
||
<label>后区(2个)</label>
|
||
<input type="text" id="singleBack" placeholder="如:03,09" />
|
||
<button id="btnCalcSingle">计算金额</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 复式 -->
|
||
<div id="multipleForm" class="form hidden">
|
||
<div class="row gap">
|
||
<label>前区(≥5个)</label>
|
||
<input type="text" id="multiFront" placeholder="如:01,08,12,23,31,35" />
|
||
<label>后区(≥2个)</label>
|
||
<input type="text" id="multiBack" placeholder="如:03,09,12" />
|
||
<button id="btnCalcMultiple">计算金额</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 胆拖 -->
|
||
<div id="dantuoForm" class="form hidden">
|
||
<div class="row gap">
|
||
<label>前区胆(1-4个)</label>
|
||
<input type="text" id="dtFrontDan" placeholder="如:01,08" />
|
||
<label>前区拖(≥1个)</label>
|
||
<input type="text" id="dtFrontTuo" placeholder="如:12,23,31" />
|
||
</div>
|
||
<div class="row gap">
|
||
<label>后区胆(0-1个)</label>
|
||
<input type="text" id="dtBackDan" placeholder="如:03" />
|
||
<label>后区拖(≥2个)</label>
|
||
<input type="text" id="dtBackTuo" placeholder="如:09,12" />
|
||
<button id="btnCalcDantuo">计算金额</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="result">
|
||
<div>注数:<strong id="betCount">0</strong></div>
|
||
<div>金额:<strong id="betAmount">0</strong> 元</div>
|
||
<div class="muted">价格说明:基本每注2元,追加每注3元。</div>
|
||
<div class="warn" id="ticketLimitWarn" hidden>金额较高,可能超出单票打印限制,请分票购买。</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- 导出模块 -->
|
||
<section id="export" class="tab-panel hidden">
|
||
<h2>结果导出</h2>
|
||
<div class="card">
|
||
<div class="row gap">
|
||
<button id="btnExportCSV">导出推荐为CSV</button>
|
||
<button id="btnPrint">打印/另存为PDF</button>
|
||
</div>
|
||
<p class="muted">提示:CSV可用Excel直接打开;打印可选择“另存为PDF”。</p>
|
||
<div id="exportPreview" class="list"></div>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
|
||
<footer class="app-footer">
|
||
<small>© 智能投注辅助系统 · 仅供参考,请理性购彩</small>
|
||
</footer>
|
||
|
||
<script src="/assets/auth.js"></script>
|
||
<script src="assets/app.js"></script>
|
||
</body>
|
||
</html>
|