-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (88 loc) · 3.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>新型冠状病毒疫情实时动态 · 温州</title>
<link
href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body>
<div id="app">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">新型冠状病毒疫情实时动态 · 温州</h1>
<p class="lead">截至时间: 2020-02-27</p>
</div>
</div>
<div class="card-group">
<div class="card text-center">
<div class="card-body">
<p class="card-text">
<small class="text-muted"
>较昨日 + {{summary.confirmedIncr}}</small
>
</p>
<h5 class="card-title">{{summary.confirmedCount}}</h5>
<p class="card-text">确诊</p>
</div>
</div>
<div class="card text-center">
<div class="card-body">
<p class="card-text">
<small class="text-muted">较昨日 + {{summary.seriousIncr}}</small>
</p>
<h5 class="card-title">{{summary.seriousCount}}</h5>
<p class="card-text">重症</p>
</div>
</div>
<div class="card text-center">
<div class="card-body">
<p class="card-text">
<small class="text-muted">较昨日 + {{summary.curedIncr}}</small>
</p>
<h5 class="card-title">{{summary.curedCount}}</h5>
<p class="card-text">治愈</p>
</div>
</div>
<div class="card text-center">
<div class="card-body">
<p class="card-text">
<small class="text-muted">较昨日 + {{summary.deadIncr}}</small>
</p>
<h5 class="card-title">{{summary.deadCount}}</h5>
<p class="card-text">死亡</p>
</div>
</div>
</div>
<h3 class="text-center" style="margin-top: 20px;">确诊人数趋势图</h3>
<div id="lineChart" style="width: 90%;margin: 20px auto;"></div>
<table class="table">
<thead class="thead-light">
<tr>
<th scope="col">地区</th>
<th scope="col">确诊</th>
<th scope="col">重症</th>
<th scope="col">治愈</th>
<th scope="col">死亡</th>
</tr>
</thead>
<tbody v-for="(item, idx) in tableData" :key="idx">
<tr>
<th scope="row">{{item.areaName}}</th>
<td>{{item.confirmedCount}}</td>
<td>{{item.seriousCount}}</td>
<td>{{item.curedCount}}</td>
<td>{{item.deadCount}}</td>
</tr>
</tbody>
</table>
</div>
</body>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="https://gw.alipayobjects.com/os/lib/antv/g2/3.5.11/dist/g2.min.js"></script>
<script src="./index.js"></script>
</html>