-
Notifications
You must be signed in to change notification settings - Fork 0
/
regist-success.html
158 lines (143 loc) · 4.65 KB
/
regist-success.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>全携通</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<!-- build:css css/regist-success/regist-success.css -->
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css">
<!-- endbuild -->
<!-- build:js js/regist-success.js -->
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<!-- endbuild -->
<!-- build:js js/global/config.js -->
<script type="text/javascript" src="src/global/_config.js"></script>
<!-- endbuild -->
<style>
html, body {
font-family: Arial,SimHei,Microsoft YaHei,sans-serif;
}
h4{
color: #2685fc;
margin-top: 20px;
margin-bottom: 30px;
}
.main{
margin-top: 130px;
}
.btn{
background-color: #1b599b;
color: #ffffff;
width: 200px;
}
.btn:hover, .btn:focus{
color: #ffffff;
}
.confirm{
margin-top: 10px;
margin-bottom: 20px;
}
.register{
margin-top: 20px;
}
.to-login{
margin-right: 85px;
}
</style>
<script type="text/javascript">
//获取URL参数
function getUrlParameter(name) {
var queryString = window.location.toString().split("#");
if (queryString.length > 1) {
var params = queryString[1].split("&");
for (var i = 0; i < params.length; ++i) {
var param = params[i].split("=");
if (param[0] == name) {
return unescape(param[1]);
}
}
}
}
//errorMsg
function errorMsg(str) {
$('.errorMsg').find('p').text(str);
$('.errorMsg').css('left', ($(window).width() * 0.5 - ($('.errorMsg').width() + 50) * 0.5) + 'px');
$('.errorMsg').css('top', $(window).height() * 0.1);
$(".errorMsg").fadeIn();
setTimeout(function() {
$(".errorMsg").fadeOut();
}, 2000);
}
$(document).ready(function() {
$('#logohome').click(function(e) {
window.location.href = 'home.html';
});
var email = getUrlParameter('email')
$('#email').html(email)
$(".errorMsg .close").click(function() {
$(".errorMsg").hide();
})
$('input').focus(function() {
$(this).parents('.input-group').addClass('input-group-focus')
})
$('input').blur(function() {
$(this).parents('.input-group').removeClass('input-group-focus')
})
function resend(){
$.ajax({
url : CONFIG.API_ROOT + '/cloud/regist?act=resend&email=' + email,
type : 'POST',
dataType : 'json'
}).done(function(responseJSON) {
$(".errorMsg").removeClass('alert-danger')
$(".errorMsg").addClass('alert-success')
errorMsg("重新发送成功")
}).fail(function(xhr, status, error) {
var err = eval('(' + xhr.responseText + ')')
$(".errorMsg").removeClass('alert-success')
$(".errorMsg").addClass('alert-danger')
errorMsg(err.result)
})
}
$("#resend").click(resend)
});
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?4c3c918cadc6ad3aceb76b34c3c29302";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div class="main container text-center">
<img src="images/mail_icon.png" />
<h4>账户激活</h4>
<div>
<span>确认邮件已经发送您的邮箱:</span>
<span id="email">17121357421321@qq.com</span>
</div>
<div class="confirm">
<p>点击邮件里的确认链接即可激活账号</p>
</div>
<div>
<button class="btn" id="resend">再次发送</button>
</div>
<div class="register">
<a class="to-login" href="login.html">立即登录</a>
<a class="to-home" href="home.html">返回首页</a>
</div>
</div>
<div class="alert alert-dismissable alert-danger errorMsg" style="display: none; position: fixed; z-index: 10002;">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">
×
</button>
<p style="margin-right: 15px;">
</p>
</div>
</body>
</html>