feat: Web管理系统 + Docker支持

- 多账号管理(异步登录、状态轮询)
- 购物车预售商品同步(倒计时/定时开售)
- 定时抢购(自动刷新、SKU选择、重试机制)
- 账号隔离调度(同账号顺序、跨账号并行)
- Web面板(任务分组、实时倒计时、批量操作)
- Dockerfile + docker-compose
This commit is contained in:
2026-03-18 13:38:17 +08:00
parent 7aea2ca2a8
commit 822a4636c0
28 changed files with 1966 additions and 66 deletions

35
templates/orders.html Normal file
View File

@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block content %}
<h4 class="mb-3">订单记录</h4>
<div class="card">
<div class="table-responsive">
<table class="table table-hover mb-0">
<thead><tr>
<th>ID</th><th>账号</th><th>商品链接</th><th>抢购时间</th>
<th>状态</th><th>详情</th><th>记录时间</th>
</tr></thead>
<tbody>
{% for o in orders %}
<tr>
<td>{{ o.id }}</td>
<td>{{ o.account_name or '-' }}</td>
<td>
{% if o.target_url %}
<a href="{{ o.target_url }}" target="_blank">{{ o.target_url[:40] }}...</a>
{% else %}-{% endif %}
</td>
<td>{{ o.snatch_time or '-' }}</td>
<td><span class="badge bg-info">{{ o.status }}</span></td>
<td>{{ o.detail or '-' }}</td>
<td>{{ o.created_at }}</td>
</tr>
{% endfor %}
{% if not orders %}
<tr><td colspan="7" class="text-center text-muted py-4">暂无订单记录</td></tr>
{% endif %}
</tbody>
</table>
</div>
</div>
{% endblock %}