-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.22 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
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>淘客助手APP</title>
<link rel="stylesheet" type="text/css" href="./css/api.css" />
</head>
<body>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
apiready = function() {
//1.获取用户状态
// 登陆过且状态未过期的用户 => fnOpenMain() 直接进入首页
// 未登录的用户 => fnOpenLogin() 进入登陆页面
api.setStatusBarStyle({style: 'light'});
fnOpenMain();
// fnOpenLogin();
};
function fnOpenMain() {
api.openWin({
name: 'main',
url: './html/main.html',
slidBackEnabled: false
});
}
function fnOpenLogin() {
api.openWin({
name: 'login',
url: './html/login.html',
slidBackEnabled: false,
softInputMode: 'pan',
softInputBarEnabled: false
});
}
</script>
</html>