-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (57 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>公交</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="theme-color" content="#FFFFFF">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" href="/favicon.png" sizes="160x160">
<script src="//unpkg.com/vue@3"></script>
<!-- import CSS -->
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/index.css">
<!-- import JavaScript -->
<script src="//lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.6.0/jquery.min.js"></script>
<script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/js-sha256/0.9.0/sha256.min.js"></script>
<script src="//unpkg.com/[email protected]/dist/index.full.min.js"></script>
</head>
<body>
<div id="app">
<el-card>
<template #header>
<div class="card-header">
<span>数据刷新时间:{{refreshTimeStr}}</span>
</div>
</template>
<el-tabs v-model="currentLineLocalCode" class="demo-tabs" @tab-change="changeLine">
<el-tab-pane :label="line.name" :name="line.code" v-for="line in lineList"
:key="line.code"></el-tab-pane>
</el-tabs>
<el-alert :closable="false" type="error" v-show="initializing">加载中...</el-alert>
<el-alert :closable="false" v-show="!initializing">{{firstLastTimeStr}}</el-alert>
<el-table :data="stationList" v-show="!initializing">
<el-table-column prop="name" label="前往 ➡️️" width="130px">
<template #default="scope">
<span :style="{color: isImportantStation(scope.row.name)? 'red': null}">{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column>
<template #header>
<el-radio-group v-model="currentSegmentId" size="small" @change="changeSegment">
<el-radio-button :value="segment.id" :label="segment.name" v-for="segment in segmentList"
:key="segment.id"/>
</el-radio-group>
</template>
<template #default="scope">
<span>{{getStationCarDesc(scope.row.id)}}</span>
</template>
</el-table-column>
</el-table>
</el-card>
</div>
<script src="index.js?v=2411081200"></script>
</body>
</html>