11
This commit is contained in:
@@ -167,6 +167,7 @@ class JX3Function:
|
|||||||
if not data:
|
if not data:
|
||||||
return_data["msg"] = "获取接口信息失败"
|
return_data["msg"] = "获取接口信息失败"
|
||||||
return return_data
|
return return_data
|
||||||
|
data = data[:7]
|
||||||
# 加载模板
|
# 加载模板
|
||||||
try:
|
try:
|
||||||
return_data["temp"] = load_template("temp_test.html")
|
return_data["temp"] = load_template("temp_test.html")
|
||||||
|
|||||||
+43
-97
@@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>剑网3各平台金价查询</title>
|
<title>剑网3金价趋势</title>
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -10,20 +10,20 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
|
margin: 0;
|
||||||
font-family: 'Microsoft YaHei', sans-serif;
|
font-family: 'Microsoft YaHei', sans-serif;
|
||||||
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
background-color: #ffffff;
|
||||||
padding: 20px;
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 1280px;
|
width: 100%;
|
||||||
background-color: white;
|
max-width: 1000px;
|
||||||
border-radius: 12px;
|
border-radius: 0;
|
||||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
|
box-shadow: none;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
background: linear-gradient(135deg, #4a90e2 0%, #2a5298 100%);
|
background: linear-gradient(135deg, #4a90e2 0%, #2a5298 100%);
|
||||||
@@ -51,71 +51,34 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.items-count {
|
|
||||||
font-weight: 600;
|
|
||||||
color: #4a90e2;
|
|
||||||
}
|
|
||||||
.update-time {
|
|
||||||
color: #6c757d;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.table-container {
|
.table-container {
|
||||||
padding: 0 30px 30px 30px;
|
padding: 30px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
text-align: center
|
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin-top: 20px;
|
width: auto;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
min-width: 800px;
|
||||||
border-radius: 8px;
|
margin: 0 auto;
|
||||||
overflow: hidden;
|
}
|
||||||
|
th, td {
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
padding: 12px 18px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
||||||
color: white;
|
color: white;
|
||||||
padding: 16px 20px;
|
|
||||||
text-align: left;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 20px;
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
th:first-child {
|
tr:nth-child(even) td {
|
||||||
border-top-left-radius: 8px;
|
|
||||||
}
|
|
||||||
th:last-child {
|
|
||||||
border-top-right-radius: 8px;
|
|
||||||
}
|
|
||||||
td {
|
|
||||||
padding: 14px 20px;
|
|
||||||
border-bottom: 1px solid #e9ecef;
|
|
||||||
font-size: 18px;
|
|
||||||
color: #495057;
|
|
||||||
}
|
|
||||||
tr:nth-child(even) {
|
|
||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
}
|
}
|
||||||
tr:hover {
|
tr:hover td {
|
||||||
background-color: #e9f7fe;
|
background-color: #e9f7fe;
|
||||||
transition: background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
}
|
}
|
||||||
.item-name {
|
|
||||||
font-weight: 500;
|
|
||||||
color: #2c3e50;
|
|
||||||
max-width: 500px;
|
|
||||||
}
|
|
||||||
.price {
|
|
||||||
text-align: right;
|
|
||||||
color: #e74c3c;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
.sample {
|
|
||||||
text-align: center;
|
|
||||||
color: #6c757d;
|
|
||||||
}
|
|
||||||
.footer {
|
.footer {
|
||||||
background-color: #343a40;
|
background-color: #343a40;
|
||||||
color: #f8f9fa;
|
color: #f8f9fa;
|
||||||
@@ -123,70 +86,53 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.highlight {
|
@media (max-width: 768px) {
|
||||||
background-color: #fff3cd;
|
th, td {
|
||||||
}
|
padding: 8px 12px;
|
||||||
@media (max-width: 1320px) {
|
font-size: 14px;
|
||||||
body {
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
.container {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 1280px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>剑网3各平台金价查询</h1>
|
<h1>剑网3金价趋势({{ server }})</h1>
|
||||||
<div class="server-info">服务器: {{ server }}</div>
|
<div class="server-info">数据更新时间: {{ update_time }}</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="summary">
|
|
||||||
<div class="items-count">共找到 <strong>{{ items|length }}</strong> 条数据</div>
|
|
||||||
<div class="update-time">数据更新时间: {{ update_time }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-container">
|
<div class="table-container">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 28%; text-align: center;">时间</th>
|
<th>平台 / 时间</th>
|
||||||
<th style="width: 12%; text-align: center;">贴吧</th>
|
{% for item in items %}
|
||||||
<th style="width: 12%; text-align: center;">万宝楼</th>
|
<th>{{ item.date }}</th>
|
||||||
<th style="width: 12%; text-align: center;">DD373</th>
|
{% endfor %}
|
||||||
<th style="width: 12%; text-align: center;">UU898</th>
|
|
||||||
<th style="width: 12%; text-align: center;">5173</th>
|
|
||||||
<th style="width: 12%; text-align: center;">7881</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for item in items %}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="date">{{ item.date }}</td>
|
<td style="font-weight:600; color:#4a90e2;">贴吧</td>
|
||||||
<td class="priceTieba">{{ item.priceTieba }}</td>
|
{% for item in items %}
|
||||||
<td class="priceWanbaolou">{{ item.priceWanbaolou }}</td>
|
<td>{{ item.priceTieba }}</td>
|
||||||
<td class="priceDd373">{{ item.priceDd373 }}</td>
|
|
||||||
<td class="priceUu898">{{ item.priceUu898 }}</td>
|
|
||||||
<td class="price5173">{{ item.price5173 }}</td>
|
|
||||||
<td class="priceDd373">{{ item.price7881 }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="font-weight:600; color:#e67e22;">万宝楼</td>
|
||||||
|
{% for item in items %}
|
||||||
|
<td>{{ item.priceWanbaolou }}</td>
|
||||||
|
{% endfor %}
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 这里是折线图 -->
|
|
||||||
<div class="chart-container">
|
|
||||||
<h2>万宝楼价格走势</h2>
|
|
||||||
<img src="{{ img }}" alt="折线图">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© 2025 剑网3金价查询系统 | 数据仅供参考,以游戏内实际价格为准
|
© 2025 剑网3金价查询系统 | 数据仅供参考,以游戏内实际价格为准
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user