181 lines
3.9 KiB
HTML
181 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<title>金蚕游戏日报 · OPS</title>
|
||
<style>
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
html {
|
||
background-color: #fdfdfd;
|
||
}
|
||
|
||
body {
|
||
padding: 0 20px;
|
||
color: #333;
|
||
}
|
||
|
||
h1.title {
|
||
margin: 30px 0 20px;
|
||
font-size: 32px !important;
|
||
font-weight: 500;
|
||
text-align: center !important;
|
||
}
|
||
|
||
.date {
|
||
margin: 20px 0;
|
||
text-align: center;
|
||
}
|
||
|
||
.section {
|
||
border-top: 1px dashed #ccc;
|
||
}
|
||
|
||
.info {
|
||
margin: 60px 0 30px;
|
||
font-size: 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.info > span {
|
||
margin-right: 20px;
|
||
}
|
||
|
||
.info .gameid,
|
||
.info .channelid {
|
||
font-weight: 700;
|
||
}
|
||
|
||
.panel {
|
||
width: 80%;
|
||
margin: 0 auto 60px;
|
||
}
|
||
|
||
.panel h2 {
|
||
height: 36px;
|
||
padding-left: 16px;
|
||
margin: 20px 0;
|
||
font-size: 24px;
|
||
font-weight: 500;
|
||
border-left: #909090 3px solid;
|
||
}
|
||
|
||
.panel table {
|
||
/* width: 100%; */
|
||
line-height: 2;
|
||
text-align: left;
|
||
border-collapse: collapse;
|
||
}
|
||
|
||
.panel table th {
|
||
font-weight: 500;
|
||
color: #909090;
|
||
}
|
||
|
||
.panel table td,
|
||
.panel table th {
|
||
padding: 0 16px;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.panel table tr:nth-child(even) {
|
||
background-color: #f3f3f3;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<h1 class="title">金蚕游戏日报 · OPS</h1>
|
||
<p class="date">{{ day }}</p>
|
||
{% for line in data %}
|
||
<div class="section">
|
||
<div class="info">
|
||
<span
|
||
>游戏ID:<span class="gameid">{{ line['gameid'] }}</span></span
|
||
>
|
||
<span
|
||
>渠道ID:<span class="channelid">{{ line['channelid'] }}</span></span
|
||
>
|
||
</div>
|
||
<!-- activa, new, share, timeonlie, ad_101, ad_1, ad_201-->
|
||
<div class="panel">
|
||
<h2>总表</h2>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>活跃</th>
|
||
<th>新增</th>
|
||
<th>分享</th>
|
||
<th>时长</th>
|
||
<th>视屏显示</th>
|
||
<th>banner显示</th>
|
||
<th>插屏显示</th>
|
||
<th>导出率</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
{% for item in line.get('all') %}
|
||
<td>{{ item }}</td>
|
||
{% endfor %}
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>导入数据</h2>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<!--('wxdb103a128e118619', '拯救熊猫泡泡', 2, 1, 0, 0.0)-->
|
||
<th>渠道ID</th>
|
||
<th>游戏名称</th>
|
||
<th>活跃</th>
|
||
<th>新增</th>
|
||
<th>分享</th>
|
||
<th>K值</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for one in line.get('input') %}
|
||
<tr>
|
||
{% for item in one %}
|
||
<td>{{ item }}</td>
|
||
{% endfor %}
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>导出数据:</h2>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>渠道ID</th>
|
||
<th>跳转目标</th>
|
||
<th>跳转次数</th>
|
||
<th>跳转人数</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for one in line.output %}
|
||
<tr>
|
||
{% for item in one %}
|
||
<td>{{ item }}</td>
|
||
{% endfor %}
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
{% endfor %}
|
||
</body>
|
||
</html>
|