issue_task_h5/templates/account_h5_info.html

98 lines
3.9 KiB
HTML
Raw Permalink Normal View History

2025-07-11 15:15:11 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H5账户信息管理</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
<style>
.account-card {
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.account-card:hover {
transform: translateY(-5px);
}
.status-active {
color: #28a745;
}
.status-inactive {
color: #dc3545;
}
.action-btn {
margin-right: 5px;
}
.table-bordered {
border: 1px solid #dee2e6;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #dee2e6;
}
.text-truncate {
max-width: 150px;
}
</style>
</head>
<body class="bg-light">
<div class="container py-4">
<div class="d-flex justify-content-between align-items-center mb-4">
<h1 class="display-5 text-primary">账户信息管理</h1>
<a href="{{ url_for('add_h5_user') }}" class="btn btn-primary">
<i class="bi bi-plus-circle"></i> 添加账户
</a>
</div>
<div class="card account-card">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover align-middle table-bordered">
<thead class="table-light">
<tr>
<th>账户ID</th>
<th>账户名称</th>
<th>国家列表</th>
<th>链接地址</th>
<th>留存任务比率</th>
<th>任务总数</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.account_id }}</td>
<td>{{ user.account_name }}</td>
<td class="text-truncate">{{ user.countries }}</td>
<td class="text-truncate">
<a href="{{ user.link_url }}" target="_blank" >{{ user.link_url }}</a>
</td>
<td>{{ user.keep_rate }}</td>
<td>{{ user.task_total }}</td>
<td>
<span class="badge rounded-pill bg-{{ 'success' if user.is_active else 'danger' }}">
{{ '活跃' if user.is_active else '禁用'}}
</span>
</td>
<td>
<a href="{{ url_for('edit_user', account_id=user.account_id) }}"
class="btn btn-sm btn-outline-primary action-btn">
<i class="bi bi-pencil-square"></i> 编辑
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>