-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (189 loc) · 6.21 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<title>智慧客流信息系统</title>
<link rel="stylesheet" href="css/app.css" />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css' rel='stylesheet' />
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=6THsGUl9iUoHwKibmksv4dHeoD5CgAaa"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.1.0/echarts.common.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.1.0/extension/bmap.js"></script> -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=6THsGUl9iUoHwKibmksv4dHeoD5CgAaa"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/bmap.min.js"></script>
<!-- CSS 部分 -->
</head>
<body>
<div class="header">
<h1 class="header-title">智慧客流信息系统</h1>
</div>
<div class="wrapper">
<div class="content">
<div class="col col-l">
<div class="xpanel-wrapper xpanel-wrapper-40">
<div class="xpanel xpanel-l-t">
<div class="title">总客流明细</div>
<div style="height: calc(100% - 2.75rem);" class="detail-all">
<div class="detail-title">
<div class="detail" id="time">
2021-4-28
</div>
<div class="detail" id="shop">
XXX商场
</div>
</div>
<div class="card-container">
<div class="card-l">
<div class="show-title">
总客流量
</div>
<div class="show-value" id='all-flow'>
11111
</div>
</div>
<div class="card-c">
<div class="show-title">
集团占比
</div>
<div class="show-value" id='all-enter'>
70%
</div>
</div>
<div class="card-r">
<div class="show-title">
当月同比
</div>
<div class="show-value" id='all-month'>
40%
</div>
</div>
</div>
<div class="card-container">
<div class="card-l">
<div class="show-title">
集客力
</div>
<div class="show-value" id='all-getPower'>
12341
</div>
</div>
<div class="card-c">
<div class="show-title">
日均客流量
</div>
<div class="show-value" id='all-avgDay'>
1123
</div>
</div>
<div class="card-r">
<div class="show-title">
游逛深度
</div>
<div class="show-value" id='all-deep'>
11213
</div>
</div>
</div>
</div>
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-60">
<div class="xpanel xpanel-l-b">
<div class="title">近30日客流趋势</div>
<div id="monthChart" style="height:calc(100% - 3rem);">
</div>
</div>
</div>
</div>
<div class="col col-c">
<div class="xpanel-wrapper xpanel-wrapper-60">
<div class="xpanel no-bg" id="map" style="height: 100%">
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-40">
<div class="xpanel xpanel-c-b">
<div class="title title-long">24小时实时客流数据</div>
<div id="myChart" style="height:calc(100% - 3rem);">
</div>
</div>
</div>
</div>
<div class="col col-r">
<div class="xpanel-wrapper xpanel-wrapper-40">
<div class="xpanel xpanel-r-t">
<div class="title">店铺实时客流排行</div>
<div id='flowRank' style="height:calc(100% - 3rem);"></div>
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-60">
<div class="xpanel xpanel-r-m">
<div class="title">店铺实时集客力排行</div>
<div id="getPowerRank" style="height:calc(100% - 3rem);"></div>
</div>
</div>
<!-- <div class="xpanel-wrapper xpanel-wrapper-45">
<div class="xpanel xpanel-r-b">
<div class="title"></div>
</div>
</div> -->
</div>
</div>
</div>
<!-- JS 部分 -->
<!-- bootstrap-table -->
<script src="./js/mapbox.js"></script>
<script src="./js/dataGet.js"></script>
</body>
<!-- <script>
mapboxgl.accessToken = 'pk.eyJ1Ijoid3VndW9qaWEiLCJhIjoiY2sxaHJrdHBkMGRzejNodGYzemd1dmx4ayJ9.8fy2i8p8CNdh3mf44AlZDg';
let map = new mapboxgl.Map({
style: 'mapbox://styles/mapbox/dark-v10',
center: [-74.0066, 40.7135],
zoom: 15.5,
pitch: 45,
bearing: -17.6,
container: 'map'
});
map.on('load', function() {
// Insert the layer beneath any symbol layer.
let layers = map.getStyle().layers;
let labelLayerId;
for (let i = 0; i < layers.length; i++) {
if (layers[i].type === 'symbol' && layers[i].layout['text-field']) {
labelLayerId = layers[i].id;
break;
}
}
map.addLayer({
'id': '3d-buildings',
'source': 'composite',
'source-layer': 'building',
'filter': ['==', 'extrude', 'true'],
'type': 'fill-extrusion',
'minzoom': 15,
'paint': {
'fill-extrusion-color': '#aaa',
// use an 'interpolate' expression to add a smooth transition effect to the
// buildings as the user zooms in
'fill-extrusion-height': [
"interpolate", ["linear"], ["zoom"],
15, 0,
15.05, ["get", "height"]
],
'fill-extrusion-base': [
"interpolate", ["linear"], ["zoom"],
15, 0,
15.05, ["get", "min_height"]
],
'fill-extrusion-opacity': .6
}
}, labelLayerId);
});
</script> -->
</html>