login_win.html
1.75 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
<!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">
<title>登录首页</title>
<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
<link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
<style>
html,
body{
}
</style>
</head>
<body>
<header style="background-color: #FFFFFF"></header>
<footer></footer>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
apiready = function(){
var header = $api.dom('header'); // 获取 header 标签元素
var footer = $api.dom('footer'); // 获取 footer 标签元素
var headerH = $api.fixStatusBar(header);
var footerH = $api.fixTabBar(footer);
setStatusBg('dark');
openFrame(headerH,footerH);
api.addEventListener({
name: 'closeLoginPage'
}, function(ret, err){
if( ret ){
api.closeWin({
name: 'login'
});
}
});
};
function openFrame(headerH,footerH) {
api.openFrame({
name: 'login_frm',
url: './login_frm.html',
rect: {
x: 0,
y: headerH,
w: api.winWidth,
h: api.winHeight-footerH-headerH
},
bounces: true,
bgColor: '#FFFFFF',
});
}
</script>
</html>