修改7
This commit is contained in:
@@ -0,0 +1,458 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0"
|
||||
>
|
||||
<title>{{ roleName | default("角色") }} - 成就查询</title>
|
||||
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
padding: 32px;
|
||||
font-family:
|
||||
"Microsoft YaHei",
|
||||
"PingFang SC",
|
||||
Arial,
|
||||
sans-serif;
|
||||
color: #e9eef9;
|
||||
background:
|
||||
radial-gradient(
|
||||
circle at top left,
|
||||
rgba(83, 111, 255, 0.16),
|
||||
transparent 34%
|
||||
),
|
||||
radial-gradient(
|
||||
circle at top right,
|
||||
rgba(174, 91, 255, 0.13),
|
||||
transparent 28%
|
||||
),
|
||||
linear-gradient(
|
||||
145deg,
|
||||
#101522 0%,
|
||||
#151b2b 48%,
|
||||
#0e1320 100%
|
||||
);
|
||||
}
|
||||
|
||||
.page-container {
|
||||
width: 100%;
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24px;
|
||||
padding: 28px 32px;
|
||||
border: 1px solid rgba(138, 161, 255, 0.22);
|
||||
border-radius: 18px;
|
||||
background:
|
||||
linear-gradient(
|
||||
135deg,
|
||||
rgba(45, 59, 94, 0.92),
|
||||
rgba(29, 37, 62, 0.92)
|
||||
);
|
||||
box-shadow:
|
||||
0 18px 40px rgba(0, 0, 0, 0.25),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.page-header::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -80px;
|
||||
right: -40px;
|
||||
width: 260px;
|
||||
height: 260px;
|
||||
border-radius: 50%;
|
||||
background: rgba(107, 126, 255, 0.12);
|
||||
filter: blur(2px);
|
||||
}
|
||||
|
||||
.page-header::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 36px;
|
||||
bottom: -65px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
border: 1px solid rgba(177, 132, 255, 0.14);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header-label {
|
||||
margin-bottom: 9px;
|
||||
color: #98a7d9;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
.role-name {
|
||||
margin: 0;
|
||||
color: #ffffff;
|
||||
font-size: 34px;
|
||||
font-weight: 800;
|
||||
line-height: 1.3;
|
||||
letter-spacing: 1px;
|
||||
text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.header-line {
|
||||
width: 58px;
|
||||
height: 4px;
|
||||
margin-top: 17px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
#6d8cff,
|
||||
#ae72ff
|
||||
);
|
||||
box-shadow: 0 0 14px rgba(112, 137, 255, 0.5);
|
||||
}
|
||||
|
||||
.achievement-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.achievement-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
padding: 21px 22px;
|
||||
border: 1px solid rgba(130, 149, 207, 0.18);
|
||||
border-radius: 16px;
|
||||
background:
|
||||
linear-gradient(
|
||||
145deg,
|
||||
rgba(32, 40, 65, 0.97),
|
||||
rgba(24, 30, 50, 0.97)
|
||||
);
|
||||
box-shadow:
|
||||
0 12px 28px rgba(0, 0, 0, 0.2),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
.achievement-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
#6c89ff,
|
||||
#a66dff
|
||||
);
|
||||
}
|
||||
|
||||
.achievement-card.finished::before {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
#4be0ad,
|
||||
#44a9ff
|
||||
);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.title-area {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.achievement-name {
|
||||
margin: 0 0 8px 0;
|
||||
color: #ffffff;
|
||||
font-size: 20px;
|
||||
font-weight: 750;
|
||||
line-height: 1.45;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.category-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.category-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 26px;
|
||||
padding: 4px 10px;
|
||||
border: 1px solid rgba(114, 139, 230, 0.24);
|
||||
border-radius: 999px;
|
||||
color: #b9c6ed;
|
||||
background: rgba(92, 115, 192, 0.11);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.category-tag.detail {
|
||||
color: #d1bbf4;
|
||||
border-color: rgba(168, 114, 230, 0.24);
|
||||
background: rgba(156, 92, 203, 0.1);
|
||||
}
|
||||
|
||||
.status-area {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 72px;
|
||||
padding: 6px 11px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.status-finished {
|
||||
color: #7ff0c9;
|
||||
border: 1px solid rgba(71, 219, 166, 0.28);
|
||||
background: rgba(53, 190, 143, 0.12);
|
||||
}
|
||||
|
||||
.status-unfinished {
|
||||
color: #ffbcbd;
|
||||
border: 1px solid rgba(255, 116, 116, 0.25);
|
||||
background: rgba(218, 75, 75, 0.11);
|
||||
}
|
||||
|
||||
.favorite-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: #f4c969;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.not-favorite {
|
||||
color: #707b9d;
|
||||
}
|
||||
|
||||
.description {
|
||||
min-height: 46px;
|
||||
margin: 0 0 18px 0;
|
||||
color: #aab5d1;
|
||||
font-size: 14px;
|
||||
line-height: 1.75;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid rgba(130, 149, 207, 0.13);
|
||||
}
|
||||
|
||||
.point-label {
|
||||
color: #76819e;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.point-value {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 5px;
|
||||
color: #f4ce73;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.point-number {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.point-unit {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
grid-column: 1 / -1;
|
||||
padding: 60px 20px;
|
||||
border: 1px dashed rgba(135, 153, 207, 0.24);
|
||||
border-radius: 16px;
|
||||
color: #8d98b6;
|
||||
background: rgba(27, 34, 55, 0.75);
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.achievement-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.role-name {
|
||||
font-size: 29px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
body {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 23px 20px;
|
||||
}
|
||||
|
||||
.achievement-card {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.status-area {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main class="page-container">
|
||||
<header class="page-header">
|
||||
<div class="header-content">
|
||||
<div class="header-label">角色成就查询</div>
|
||||
|
||||
<h1 class="role-name">
|
||||
{{ roleName | default("未知角色", true) }}
|
||||
</h1>
|
||||
|
||||
<div class="header-line"></div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="achievement-list">
|
||||
{% if data %}
|
||||
{% for item in data %}
|
||||
<article
|
||||
class="
|
||||
achievement-card
|
||||
{% if item.isFinished %}
|
||||
finished
|
||||
{% endif %}
|
||||
"
|
||||
>
|
||||
<div class="card-header">
|
||||
<div class="title-area">
|
||||
<h2 class="achievement-name">
|
||||
{{ item.name | default("未知成就", true) }}
|
||||
</h2>
|
||||
|
||||
<div class="category-row">
|
||||
<span class="category-tag">
|
||||
{{ item.subClass | default("未分类", true) }}
|
||||
</span>
|
||||
|
||||
<span class="category-tag detail">
|
||||
{{ item.detail | default("暂无细分", true) }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="status-area">
|
||||
{% if item.isFinished %}
|
||||
<span class="status-badge status-finished">
|
||||
已完成
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="status-badge status-unfinished">
|
||||
未完成
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if item.isFav %}
|
||||
<span class="favorite-badge">
|
||||
★ 已收藏
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="favorite-badge not-favorite">
|
||||
☆ 未收藏
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="description">
|
||||
{{ item.desc | default("暂无成就说明", true) }}
|
||||
</p>
|
||||
|
||||
<div class="card-footer">
|
||||
<span class="point-label">
|
||||
成就点数
|
||||
</span>
|
||||
|
||||
<span class="point-value">
|
||||
<span class="point-number">
|
||||
{{ item.rewardPoint | default(0, true) }}
|
||||
</span>
|
||||
|
||||
<span class="point-unit">
|
||||
点
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
暂未查询到成就数据
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -151,10 +151,10 @@
|
||||
<tbody>
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<td class="skill-col">{{ item.skill_name }}</td>
|
||||
<td class="leader-col">{{ item.leader_name }}</td>
|
||||
<td class="skill-col">{{ item.szSkillName }}</td>
|
||||
<td class="leader-col">{{ item.szBossName }}</td>
|
||||
<td class="color-col">{{ item.skill_color_text }}</td>
|
||||
<td class="level-col">{{ item.skill_level }}</td>
|
||||
<td class="level-col">{{ item.nLevel }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -0,0 +1,242 @@
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>聊天记录</title>
|
||||
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Microsoft YaHei", Arial, sans-serif;
|
||||
background: #f1f2f6;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
color: #2c2c33;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1300px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 8px 0;
|
||||
color: #222222;
|
||||
font-size: 32px;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.meta {
|
||||
margin-bottom: 24px;
|
||||
color: #7a7f99;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
overflow: hidden;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
border-radius: 12px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
thead {
|
||||
color: #ffffff;
|
||||
background: #d93939;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
font-size: 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: #fff2f2;
|
||||
}
|
||||
|
||||
/* 角色列 */
|
||||
.role-col {
|
||||
width: 16%;
|
||||
color: #333333;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* 频道列 */
|
||||
.channel-col {
|
||||
width: 10%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 消息列 */
|
||||
.message-col {
|
||||
width: 56%;
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
line-height: 1.65;
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* 时间列 */
|
||||
.time-col {
|
||||
width: 18%;
|
||||
color: #757b8f;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 频道标签 */
|
||||
.channel-tag {
|
||||
display: inline-block;
|
||||
min-width: 58px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.channel-world {
|
||||
color: #d93939;
|
||||
border: 1px solid #f3bcbc;
|
||||
background: #fff0f0;
|
||||
}
|
||||
|
||||
.channel-school {
|
||||
color: #7d43b7;
|
||||
border: 1px solid #d8c0ef;
|
||||
background: #f6effd;
|
||||
}
|
||||
|
||||
.channel-team {
|
||||
color: #197d5b;
|
||||
border: 1px solid #b8e4d5;
|
||||
background: #edf9f5;
|
||||
}
|
||||
|
||||
.channel-map {
|
||||
color: #1e6bd6;
|
||||
border: 1px solid #bdd3f5;
|
||||
background: #eef5ff;
|
||||
}
|
||||
|
||||
.channel-other {
|
||||
color: #666666;
|
||||
border: 1px solid #d8d8d8;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.empty-row td {
|
||||
padding: 50px 20px;
|
||||
color: #8a8fa3;
|
||||
font-size: 17px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h1>聊天记录</h1>
|
||||
|
||||
<div class="meta">
|
||||
共查询到 {{ total | default(0, true) }} 条聊天记录
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="role-col">角色</th>
|
||||
<th class="channel-col">频道</th>
|
||||
<th class="message-col">消息</th>
|
||||
<th class="time-col">时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% if list %}
|
||||
{% for m in list %}
|
||||
<tr>
|
||||
<td class="role-col">
|
||||
{{ m["roleName"] | default("未知角色", true) }}
|
||||
</td>
|
||||
|
||||
<td class="channel-col">
|
||||
{% if m["channel"] == "世界" %}
|
||||
<span class="channel-tag channel-world">
|
||||
{{ m["channel"] }}
|
||||
</span>
|
||||
|
||||
{% elif m["channel"] == "门派" %}
|
||||
<span class="channel-tag channel-school">
|
||||
{{ m["channel"] }}
|
||||
</span>
|
||||
|
||||
{% elif m["channel"] == "团队" %}
|
||||
<span class="channel-tag channel-team">
|
||||
{{ m["channel"] }}
|
||||
</span>
|
||||
|
||||
{% elif m["channel"] == "地图" %}
|
||||
<span class="channel-tag channel-map">
|
||||
{{ m["channel"] }}
|
||||
</span>
|
||||
|
||||
{% else %}
|
||||
<span class="channel-tag channel-other">
|
||||
{{ m["channel"] | default("未知", true) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td class="message-col">
|
||||
{{ m["message"] | default("暂无消息内容", true) }}
|
||||
</td>
|
||||
|
||||
<td class="time-col">
|
||||
{{ m["time"] | default("-", true) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<tr class="empty-row">
|
||||
<td colspan="4">
|
||||
暂未查询到聊天记录
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
Reference in New Issue
Block a user