-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
385 lines (325 loc) · 16.9 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1;IE=EDGE" />
<title>易宝户外</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--<link rel="shortcut icon" href="https://flex.com/sites/default/files/flex_196x196_3.png" type="image/png" />-->
<link href="Content/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- bootstrap datepicker -->
<link href="Content/AdminLTE/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" rel="stylesheet" >
<!-- Font Awesome -->
<link href="Content/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<!-- Ionicons -->
<link href="Content/AdminLTE/bower_components/Ionicons/css/ionicons.min.css" rel="stylesheet" />
<!-- Theme style -->
<link href="Content/AdminLTE/dist/css/AdminLTE.css" rel="stylesheet" />
<!-- AdminLTE Skins. We have chosen the skin-blue for this starter
page. However, you can choose any other skin. Make sure you
apply the skin class to the body tag so the changes take effect. -->
<link href="Content/AdminLTE/dist/css/skins/skin-dark.css" rel="stylesheet" />
<link href="Content/JQueryTable/jquery.edittable.css" rel="stylesheet" />
<link href="Content/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet" />
<link href="Content/FlexStyle.css" rel="stylesheet" />
<script src="Content/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
<script src="Scripts/common.js"></script>
<script src="Scripts/Bmob-1.6.7.min.js"></script>
<script src="Scripts/mobile-detect.js"></script>
<script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<script type="text/javascript">
var Bmob ;//= require('Scripts/Bmob-1.6.7.min.js');
Bmob.initialize("fec7d0dd974411c3812cee149a03bdd4", "663683a1f30eb6458f8ed0d62e72bca8");
setInterval('DigitalClock()', 1000);
function DigitalClock() {
var CurrentDate = new Date();
$('#btnCurrentDate').text(CurrentDate.Format('yyyy-MM-dd hh:mm:ss'));
}
var ip = returnCitySN.cip;
//var ip = "TestIp";
//var PhoneOS = '';
//returnCitySN是返回的一个对象,其中包含三个属性值,以北京的IP用户为例:
//returnCitySN={cip: "124.200.177.10", cid: "110000", cname: "北京市"}
//判断数组中是否包含某字符串
Array.prototype.contains = function (needle) {
for (i in this) {
if (this[i].indexOf(needle) > 0)
return i;
}
return -1;
}
$(function () {
$('#txtLocalIP').val(ip);
var PhoneModel = GetPhoneModel();
// PhoneOS = PhoneModel;
$('#txtPhoneModel').val(PhoneModel);
console.log(ip + " " + PhoneModel);
//writeFile(ip + "," + PhoneModel);
Save(ip,PhoneModel)
})
function Save(IP,PhoneModel) {
const query = Bmob.Query('easyboot');
query.set("IP", IP)
query.set("PhoneModel", PhoneModel)
query.save().then(res => {
console.log(res)
}).catch(err => {
console.log(err)
})
}
function GetPhoneModel() {
var device_type = navigator.userAgent;//获取userAgent信息
// document.write(device_type);//打印到页面
var md = new MobileDetect(device_type);//初始化mobile-detect
var os = md.os();//获取系统
var model = "";
if (os == "iOS") {//ios系统的处理
os = md.os() + md.version("iPhone");
model = md.mobile();
} else if (os == "AndroidOS") {//Android系统的处理
os = md.os() + md.version("Android");
var sss = device_type.split(";");
var i = sss.contains("Build/");
if (i > -1) {
model = sss[i].substring(0, sss[i].indexOf("Build/"));
}
}
return model + md.os()+"";
}
function writeFile(filename, filecontent) {
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile(filename, 8, true);
f.WriteLine(filecontent);
f.Close();
alert('ok');
}
</script>
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS | skin-blue |
| | skin-black |
| | skin-purple |
| | skin-yellow |
| | skin-red |
| | skin-green |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed |
| | layout-boxed |
| | layout-top-nav |
| | sidebar-collapse |
| | sidebar-mini |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini" >
<div class="wrapper" id="divmouse">
<!-- Main Header -->
<header class="main-header">
<!-- Logo -->
<a href="http://easyboot.github.io" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>E</b>asy</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img src="Content/Images/trekking.png" width="80" height="35" /></span>
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<a href="#" class="navbar-text margin" >
<span style="font-weight:bold;font-size:20px;color:white">易宝户外</span>
</a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- Messages: style can be found in dropdown.less-->
<li class="Button">
<button class="btn btn-xs btn-block margin btn-flat no-touch btn-outline Flex-color-Special" id="btnCurrentDate">2019-01-02 08:56:00</button>
</li>
<li class="Button">
<!--<button class="btn btn-xs btn-block margin" onclick="Logout()">Logout</button>-->
</li>
<li class="Button ">
<span class="margin"> </span>
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<!-- Sidebar Menu -->
<ul class="sidebar-menu" data-widget="tree">
<li class="header"> </li>
<!-- Optionally, you can add icons to the links -->
<li class="treeview" id="MenuAssistant">
<a href="#">
<i class="fa fa-list"></i> <span>户外活动</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="treeview">
<a href="#">
<i class="fa fa-circle-o"></i> 2018年
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li id="liMenuAssetEntry"><a href="https://www.jianshu.com/p/9868d1c76cff"><i class="fa fa-sign-in"></i>吴越古道 </a></li>
<li id="liMenuAssetRelease"><a href="https://www.jianshu.com/p/cb0c1a7227e5"><i class="fa fa-sign-out"></i>武功山重装 </a></li>
<li id="liMenuVehicleCargo"><a href="#"><i class="fa fa-truck"></i>千八重装</a></li>
<li id="liMenuVehicleCargo"><a href="#"><i class="fa fa-truck"></i>清凉峰</a></li>
<li id="liMenuVehicleCargo"><a href="https://www.jianshu.com/p/e0149b76e0b6"><i class="fa fa-truck"></i>南岳衡山</a></li>
</ul>
</li>
<li class="treeview">
<a href="#">
<i class="fa fa-circle-o"></i> 2019年
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li id="liMenuEmployeeWithoutCard"><a href="#"><i class="fa fa-id-card"></i>雪爬九华山 </a></li>
</ul>
</li>
</ul>
</li>
<li class="treeview" id="MenuDataMaintenance">
<a href="#">
<i class="fa fa-th-list"></i> <span>户外装备</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li id="liMenuDataMaintenanceLogBookType"><a href="#"><i class="fa fa-book"></i>登山杖</a></li>
<li id="liMenuDataMaintenanceDriverAndLicensePlateNumber"><a href="#"><i class="fa fa-car"></i>背包</a></li>
<li id="liMenuDataMaintenanceVOPAreaAuthorizedPerson"><a href="#"><i class="fa fa-car"></i>半指手套</a></li>
<li id="liMenuDataMaintenanceTransitionPeriodEmployee"><a href="#"><i class="fa fa-user"></i>水壶</a></li>
<li id="liMenuDataMaintenanceEmergencyDoorRegion"><a href="#"><i class="fa fa-user"></i>头巾</a></li>
<li id="liMenuDataMaintenanceEmergencyDoorRegion"><a href="#"><i class="fa fa-user"></i>帽子</a></li>
</ul>
</li>
<li class="treeview" id="MenuAuthority">
<a href="#">
<i class="fa fa-th-list"></i> <span>户外安全</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li id="liMenuAuthority"><a href="#"><i class="fa fa-thumbs-up"></i>注意事项</a></li>
<li id="liMenuUsers"> <a href="#"> <i class="fa fa-user"> </i>安全保障</a></li>
<li id="liMenuRoles"> <a href="#"> <i class="fa fa-group"> </i>必须装备</a></li>
</ul>
</li>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div id="divBody" class="content-wrapper container-fluid" style="background-color:#1c1d1f">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="container-fluid" style="overflow-y:auto;" id="sectionBody">
<!--------------------------
| Your Page Content Here |
-------------------------->
<!--@RenderBody()-->
<div hidden>
<div class="row">
<span> IP地址</span>
<input type="text" id="txtLocalIP" style="color:black" />
</div>
<br />
<div class="row">
<span> 手机型号</span>
<input type="text" id="txtPhoneModel" style="color:black" />
</div>
<div class="row">
<span> 调试信息</span>
<input type="text" id="txtMessage" style="color:black" />
</div>
</div>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Main Footer -->
<footer class="main-footer bg-black">
<!-- To the right -->
<div class="pull-right hidden-xs">
Version 1.0.0.1
</div>
<!-- Default to the left -->
<strong>Copyright © 2019 <a href="https://easyboot.github.io/" target="_blank">easyboot</a>.</strong>
</footer>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 3 -->
<!-- Bootstrap 3.3.7 -->
<script src="Content/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="Content/AdminLTE/dist/js/adminlte.min.js"></script>
<!-- bootstrap datepicker -->
<script src="Content/AdminLTE/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="Content/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="Content/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="Scripts/Document/Validation.js"></script>
<script src="Scripts/echarts.js"></script>
<script src="Scripts/common.js"></script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
Both of these plugins are recommended to enhance the
user experience. -->
<script type="text/javascript">
var BeforeMouseX = 0, BeforeMouseY = 0;
var CurrentMouseX = 0, CurrentMouseY = 0;
$(function () {
//var RolesIDValue = uncompileStr(localStorage.getItem("RolesID"));
// GetUserRolesAuthority(RolesIDValue);
SetSectionHeight();
})
// function init() { element.setAttribute("AutoComplete", "off"); }
function SetSectionHeight() {
$('#sectionBody').height(screen.height - 240);
}
function move(e) {
CurrentMouseX = e.pageX;
CurrentMouseY = e.pageY;
}
</script>
</body>
</html>