36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
|
|
{% 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 %}
|