This commit is contained in:
2026-07-29 18:09:29 +08:00
parent 8d522dae0f
commit 1655d1ef50
13 changed files with 933 additions and 915 deletions
+7 -7
View File
@@ -95,8 +95,8 @@
<thead>
<tr>
<th>门派</th>
<th>当前赛季数量</th>
<th>赛季数量</th>
<th>本周数量</th>
<th>数量</th>
</tr>
</thead>
@@ -105,14 +105,14 @@
<tr>
<td>
<div class="school">
{% if icons.sect.get(m.name) %}
<img class="school-icon" src="{{ icons.sect[m.name] }}" alt="{{ m.name }}">
{% if icons.sect.get(m.forceName) %}
<img class="school-icon" src="{{ icons.sect[m.forceName] }}" alt="{{ m.forceName }}">
{% endif %}
<span>{{ m.name }}</span>
<span>{{ m.forceName }}</span>
</div>
</td>
<td class="num-col">{{ m.this }}</td>
<td class="num-col">{{ m.last }}</td>
<td class="num-col">{{ m.thisWeek }}</td>
<td class="num-col">{{ m.lastWeek }}</td>
</tr>
{% endfor %}
</tbody>
+8 -8
View File
@@ -137,17 +137,17 @@
<td class="rank-col">{{ loop.index }}</td>
<td>
<div class="force">
{% if icons.sect.get(item.force_name) %}
<img class="force-icon" src="{{ icons.sect[item.force_name] }}" alt="{{ item.force_name }}">
{% if icons.sect.get(item.forceName) %}
<img class="force-icon" src="{{ icons.sect[item.forceName] }}" alt="{{ item.forceName }}">
{% endif %}
<span>{{ item.force_name }}</span>
<span>{{ item.forceName }}</span>
</div>
</td>
<td class="role-col">{{ item.role_name }}</td>
<td class="level-col">{{ item.role_level }}</td>
<td class="camp-col">{{ item.camp_name }}</td>
<td class="tong-col">{{ item.tong_name }}</td>
<td class="score-col">{{ item.total_score }}</td>
<td class="role-col">{{ item.name }}</td>
<td class="level-col">{{ item.level }}</td>
<td class="camp-col">{{ item.campName }}</td>
<td class="tong-col">{{ item.tongName }}</td>
<td class="score-col">{{ item.totalScore }}</td>
</tr>
{% endfor %}
</tbody>
@@ -126,11 +126,11 @@
{% for item in items %}
<tr>
<td class="rank-col">{{ loop.index }}</td>
<td class="tong-col">{{ item.tong_name }}</td>
<td class="master-col">{{ item.master_name }}</td>
<td class="castle-col">{{ item.castle_name }}</td>
<td class="people-col">{{ item.now_count }}/{{ item.max_count }}</td>
<td class="score-col">{{ item.total_score }}</td>
<td class="tong-col">{{ item.tongName }}</td>
<td class="master-col">{{ item.masterName }}</td>
<td class="castle-col">{{ item.castleName }}</td>
<td class="people-col">{{ item.memberCount }}/{{ item.maxMemberCount }}</td>
<td class="score-col">{{ item.titlePoint }}</td>
</tr>
{% endfor %}
</tbody>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>帮会榜单</title>
<style>
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
background: #f1f2f6;
margin: 0;
padding: 20px;
color: #2c2c33;
}
.container {
max-width: 1040px;
margin: 0 auto;
}
h1 {
font-size: 32px;
margin: 0 0 8px 0;
color: #222;
font-weight: 800;
text-align: center;
}
.meta {
margin-bottom: 24px;
color: #7a7f99;
font-size: 16px;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
text-align: left;
}
thead {
background: #d93939;
color: white;
font-size: 17px;
}
th, td {
padding: 12px 10px;
border-bottom: 1px solid #eee;
font-size: 15px;
vertical-align: middle;
}
tbody tr:nth-child(even) {
background: #fafafa;
}
.rank-col,
.people-col,
.score-col {
white-space: nowrap;
text-align: center;
}
.rank-col {
width: 56px;
color: #d93939;
font-weight: 800;
}
.tong-col {
min-width: 220px;
font-weight: 800;
color: #333;
word-break: break-word;
}
.master-col {
min-width: 150px;
color: #333;
word-break: break-word;
}
.castle-col {
min-width: 110px;
color: #60657a;
word-break: break-word;
}
.people-col {
color: #333;
font-variant-numeric: tabular-nums;
}
.score-col {
color: #d93939;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
</style>
</head>
<body>
<div class="container">
<h1>{{ rank_name }}</h1>
<div class="meta">{{ server }} · 更新时间:{{ update_time }}</div>
<table>
<thead>
<tr>
<th>排名</th>
<th>帮会名称</th>
<th>帮主</th>
<th>人数</th>
<th>排行积分</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td class="rank-col">{{ loop.index }}</td>
<td class="tong-col">{{ item.tongName }}</td>
<td class="master-col">{{ item.masterName }}</td>
<td class="people-col">{{ item.maxLimit }}</td>
<td class="score-col">{{ item.totalScore }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>
+137
View File
@@ -0,0 +1,137 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>帮会榜单</title>
<style>
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
background: #f1f2f6;
margin: 0;
padding: 20px;
color: #2c2c33;
}
.container {
max-width: 1040px;
margin: 0 auto;
}
h1 {
font-size: 32px;
margin: 0 0 8px 0;
color: #222;
font-weight: 800;
text-align: center;
}
.meta {
margin-bottom: 24px;
color: #7a7f99;
font-size: 16px;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
text-align: left;
}
thead {
background: #d93939;
color: white;
font-size: 17px;
}
th, td {
padding: 12px 10px;
border-bottom: 1px solid #eee;
font-size: 15px;
vertical-align: middle;
}
tbody tr:nth-child(even) {
background: #fafafa;
}
.rank-col,
.people-col,
.score-col {
white-space: nowrap;
text-align: center;
}
.rank-col {
width: 56px;
color: #d93939;
font-weight: 800;
}
.tong-col {
min-width: 220px;
font-weight: 800;
color: #333;
word-break: break-word;
}
.master-col {
min-width: 150px;
color: #333;
word-break: break-word;
}
.castle-col {
min-width: 110px;
color: #60657a;
word-break: break-word;
}
.people-col {
color: #333;
font-variant-numeric: tabular-nums;
}
.score-col {
color: #d93939;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
</style>
</head>
<body>
<div class="container">
<h1>{{ rank_name }}</h1>
<div class="meta">{{ server }} · 更新时间:{{ update_time }}</div>
<table>
<thead>
<tr>
<th>排名</th>
<th>帮会名称</th>
<th>帮主</th>
<th>排行积分</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td class="rank-col">{{ loop.index }}</td>
<td class="tong-col">{{ item.tongName }}</td>
<td class="master-col">{{ item.masterName }}</td>
<td class="score-col">{{ item.key }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>
+3 -3
View File
@@ -83,10 +83,10 @@
{% for m in list %}
<tr>
<td>{{ m.server }}</td>
<td>{{ m.name }}</td>
<td>{{ m.map_name }}</td>
<td>{{ m.firework }}</td>
<td>{{ m.mapName }}</td>
<td>{{ m.sender }}</td>
<td>{{ m.receive }}</td>
<td>{{ m.receiver }}</td>
<td>{{ m.time }}</td>
</tr>
{% endfor %}
+7 -14
View File
@@ -275,24 +275,17 @@ tbody tr:nth-child(odd) {
</div>
<script>
document.querySelectorAll(".start-time").forEach(function (cell) {
var raw = cell.dataset.ts || cell.textContent.trim();
var ts = Number(raw);
const ts = Number(cell.dataset.ts);
if (!Number.isFinite(ts) || ts <= 0) {
cell.textContent = raw || "-";
cell.textContent = "-";
return;
}
var date = new Date(ts * 1000);
var pad = function (n) { return String(n).padStart(2, "0"); };
cell.textContent = [
date.getFullYear(),
pad(date.getMonth() + 1),
pad(date.getDate())
].join("-") + " " + [
pad(date.getHours()),
pad(date.getMinutes()),
pad(date.getSeconds())
].join(":");
cell.textContent = new Date(ts * 1000).toLocaleString("zh-CN", {
timeZone: "Asia/Shanghai",
hour12: false
});
});
</script>
</body>
+5 -5
View File
@@ -136,11 +136,11 @@
class="camp-haoqi"
{% endif %}
>
<td class="camp-col">{{ item.camp_name }}</td>
<td class="fenxian-col">{{ item.fenxian_name }}</td>
<td class="server-col">{{ item.friend_name }}</td>
<td class="role-col">{{ item.role_name }}</td>
<td class="time-col">{{ item.seize_time }}</td>
<td class="camp-col">{{ item.campName }}</td>
<td class="fenxian-col">{{ item.fenxianName }}</td>
<td class="server-col">{{ item.friendName }}</td>
<td class="role-col">{{ item.roleName }}</td>
<td class="time-col">{{ item.seizeTime }}</td>
</tr>
{% endfor %}
</tbody>