device_operate_win.html
2.86 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<meta name="referrer" content="no-referrer">
<title>操作命令_win</title>
<link rel="stylesheet" type="text/css" href="http://iot.uccc.cc:9090/app/css/api.css"/>
<link rel="stylesheet" type="text/css" href="http://iot.uccc.cc:9090/app/css/aui.css"/>
<link rel="stylesheet" type="text/css" href="http://iot.uccc.cc:9090/app/css/style.css"/>
<style>
html,
body{
background-color: #F4F6F9;
}
</style>
</head>
<body>
<header class="aui-header-bar" style="padding-top:30px;background-color:#5B7FF8">
<div class="aui-header-left" tapmode onclick="closeWin();">
<i class="aui-iconfont aui-icon-left" style="color:#FFFFFF;font-size:16px;">返回</i>
</div>
<div class="aui-title title-font" id="param_title">操作命令</div>
<div class="aui-header-right" tapmode onclick="openLog();">
<div style="color: #FFFFFF;font-size: 14px;" >操作日志</div>
</div>
</header>
<footer></footer>
</body>
<script type="text/javascript" src="http://iot.uccc.cc:9090/app/js/api.js"></script>
<script type="text/javascript">
apiready = function(){
api.parseTapmode();
var header = $api.dom('header'); // 获取 header 标签元素
var footer = $api.dom('footer'); // 获取 footer 标签元素
var headerH = $api.fixStatusBar(header);
var footerH = $api.fixTabBar(footer);
api.openFrame({
name: 'deviceOperate_frm',
// url: 'http://iot.uccc.cc:9090/app_html/store03001/device_operate_frm.html',
url: './device_operate_frm.html',
rect: {
x: 0,
y: headerH,
w: api.winWidth,
h: api.winHeight-headerH
},
bounces: false,
bgColor: '#F4F6F9',
pageParam: {
productId: api.pageParam.productId,
imei: api.pageParam.imei,
pwd: api.pageParam.pwd,
}
});
// setTimeout(() => {
// openLog()
// }, 1000);
};
function openLog() {
api.openWin({
name: 'operaterLog_win',
// url: 'http://iot.uccc.cc:9090/app_html/store03001/operater_log_win.html',
url: './operater_log_win.html',
slidBackEnabled: true,
bounces: false,
pageParam: {
productId: api.pageParam.productId,
imei: api.pageParam.imei
}
});
}
function closeWin() {
api.closeWin();
}
</script>
</html>