-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (64 loc) · 2.32 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Demo</title>
<script src="http://frozenui.github.io/frozenui/lib/zepto.min.js"></script>
<script src="http://frozenui.github.io/frozenui/js/frozen.js"></script>
<script src="http://frozenui.github.io/static/jquery.js"></script>
<link rel="stylesheet" href="http://frozenui.github.io/css/base.css">
<link rel="stylesheet" href="http://frozenui.github.io/frozenui/css/frozen.css"/>
<script type="text/javascript">
function login(){
var name = $('#name').val()
var pwd = $('#pwd').val()
$.ajax({
url:"/user?$filter=name eq '"+name+"' and pwd eq '"+pwd+"'",
success: function(data) {
if(data && data.value && data.value.length > 0){
alert("登陆成功")
}else{
alert("登陆失败")
}
}
});
}
</script>
<style type="text/css">
.input{
background:rgba(255,255,255,0.7);
text-align: center;
}
.input input{
text-align: center;
}
</style>
</head>
<body style="background-image:url('http://demo.noocen.com/images/back.jpg');
background-repeat: no-repeat;
background-size:100%">
<div class="ui-form-item ui-form-item-pure" style="text-align:center;
height: auto;margin:40px auto 0 auto">
<img class="img" width="60" height="60" style="border-radius: 30px;"
src="http://wx.qlogo.cn/mmopen/ajNVdqHZLLBicx33PRn81oJhJz5UFS0k8WfH2jgQqg6hJrTofKHoOQnN9KFYSjzp6UTb5JichcjRPXtWUqFdwgOw/0">
</div>
<div class="ui-form-item ui-form-item-pure input">
<div style="position: absolute; border: 2px solid #999;
border-left:0px;border-top:0px;right:0px;
margin-top: 10px;
margin-right:30px;
transform:rotate(45deg) scale(1);
width:10px;height:10px;">
</div>
<input id="name" type="text" />
</div>
<div class="ui-form-item ui-form-item-pure input" style="margin-top: 1px;">
<input id="pwd" type="password" />
</div>
<div class="ui-row ui-whitespace" style="margin-top: 10px;">
<button onclick="login()"
class="ui-btn-lg ui-btn-primary">登录<button>
</div>
</body>
</html>