-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
124 lines (118 loc) · 5.29 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title>乐优商城--登录页面</title>
<link rel="stylesheet" type="text/css" href="css/webbase.css"/>
<link rel="stylesheet" type="text/css" href="css/pages-login.css"/>
</head>
<body>
<div class="login-box">
<!--head-->
<div class="py-container logoArea">
<a href="" class="logo"></a>
</div>
<!--loginArea-->
<div class="loginArea" id="loginApp">
<div class="py-container login">
<div class="loginform">
<ul class="sui-nav nav-tabs tab-wraped">
<li>
<a href="#index" data-toggle="tab">
<h3>扫描登录</h3>
</a>
</li>
<li class="active">
<a href="#profile" data-toggle="tab">
<h3>账户登录</h3>
</a>
</li>
</ul>
<div class="tab-content tab-wraped">
<div id="index" class="tab-pane">
<p>二维码登录,暂为官网二维码</p>
<img src="img/wx_cz.jpg"/>
</div>
<div id="profile" class="tab-pane active">
<span v-text="msg"></span>
<form class="sui-form">
<div class="input-prepend"><span class="add-on loginname"></span>
<input id="username" type="text" placeholder="邮箱/用户名/手机号" class="span2 input-xfat"
v-model="form.username">
</div>
<div class="input-prepend"><span class="add-on loginpwd"></span>
<input id="password" type="password" placeholder="请输入密码" class="span2 input-xfat"
v-model="form.password">
</div>
<div class="setting">
<label class="checkbox inline">
<input name="m1" type="checkbox" value="2" checked="">
自动登录
</label>
<span class="forget">忘记密码?</span>
</div>
<div class="logined">
<a class="sui-btn btn-block btn-xlarge btn-danger" @click="login"
href="javascript:void(0)">登 录</a>
</div>
</form>
<div class="otherlogin">
<div class="types">
<ul>
<li><img src="img/qq.png" width="35px" height="35px"/></li>
<li><img src="img/sina.png"/></li>
<li><img src="img/ali.png"/></li>
<li><img src="img/weixin.png"/></li>
</ul>
</div>
<span class="register"><a href="register.html" target="_blank">立即注册</a></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--foot-->
<script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>
<!-- 底部栏位 -->
<!--页面底部版权信息,由js动态加载-->
<div class="Mod-copyright"></div>
<script type="text/javascript">$(".Mod-copyright").load("copyright.html");</script>
<!--页面底部END-->
</div>
<script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery.easing/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/plugins/sui/sui.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-placeholder/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="js/pages/login.js"></script>
</body>
<script src="./js/vue/vue.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/common.js"></script>
<script type="text/javascript">
var loginVm = new Vue({
el: "#loginApp",
data: {
form:{
username:'',
password:''
},
msg:''
},
methods:{
login(){
leyou.http.post("/auth/accredit",leyou.stringify(this.form))
.then(resp => {
if(resp.status === 200){
const url = leyou.getUrlParam("returnUrl");
window.location = url || 'http://www.leyou.com';
}
})
.catch(() => this.msg = '用户名或密码错误')
}
}
});
</script>
</html>