-
Notifications
You must be signed in to change notification settings - Fork 2
/
login.html
50 lines (49 loc) · 2.14 KB
/
login.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>restaurant</title>
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" charset="utf-8" data-appid="1106242693" data-redirecturi="http://119.29.148.80/callback123.html"></script>
</head>
<body style="margin:0;background:url(img/bg.jpg) top center no-repeat; background-size:cover;color:#fff;text-align:center;">
<div style="width:100%;height:100%;background-color:#333;opacity:0.4;position:absolute;z-index:-1000">.</div>
<!-- built files will be auto injected -->
<img src="img/LOGO2_null.png" width='150' alt="">
<h2 style="margin-top:-35px">味鹅</h2>
<h5 style="margin-top:-10px">悠享鹅厂好时光~</h5>
<span id="qqLoginBtn" ></span>
<footer style="position:absolute;bottom:20px;width:100%">
<img src="img/ic_qq_login.png" width='50' alt="" onclick="loginqq()">
<h5 style="margin:0">使用QQ快速登录</h5>
</footer>
<script>
// QC.Login({
// btnId:"qqLoginBtn" //插入按钮的节点id
// });
function loginqq(){
//QC.Login.showPopup()
var s = [];
for (var i = 0; i < 30; i++) {
s.push(Math.floor(Math.random() * 10));
}
localStorage.openId = s.join('');
window.location = '/';
}
//从页面收集OpenAPI必要的参数。get_user_info不需要输入参数,因此paras中没有参数
// QC.Login({
// btnId : "qqLoginBtn",//插入按钮的html标签id
// size : "B_M",//按钮尺寸
// scope : "get_user_info",//展示授权,全部可用授权可填 all
// display : "pc"//应用场景,可选
// });
// console.log(QC.Login.check())
// if(QC.Login.check()){
// QC.Login.getMe(function(openId, accessToken){
// localStorage.openId = openId
// window.location = "/"
// })
// }
</script>
</body>
</html>