Explorar el Código

1.修改邮箱和手机注册过的,进行判断
2.邮箱注册功能
3.邮箱找回密码功能
4.手机找回密码最后一步,添加跳转登录页面

xuchunyang %!s(int64=8) %!d(string=hace) años
padre
commit
7827a4cab5

+ 9 - 5
src/main/webapp/bind-mail.html

17

17

18
<body>
18
<body>
19

19

20
<div class="completedcover">
20
<div class="completedcover" id="completedcover">
21
    <!--/*是否完善信息提示*/-->
21
    <!--/*是否完善信息提示*/-->
22
    <div class="vercompleted">
22
    <div class="vercompleted">
23
        <h3>已经完成注册,是否现在去完善个人信息?</h3>
23
        <h3>已经完成注册,是否现在去完善个人信息?</h3>
24
        <div class="verbtnbox">
24
        <div class="verbtnbox">
25
            <a href="information-add.html" class="verbtn" onClick="" >现在完善</a>
26
            <a href="index.html" class="verbtn">以后再说</a>
25
            <a href="javascript:void(0)" class="verbtn" onClick="goPersonal()" >现在完善</a>
27
        </div>
26
        </div>
28
    </div>
27
    </div>
29
</div>
28
</div>
29

30
<div id="header" style="position:static;">
30
<div id="header" style="position:static;">
31
	<a href="index.html" alt="科袖" class="logo"></a>	
31
	<a href="index.html" alt="科袖" class="logo"></a>	
32
</div>
32
</div>
40
            <dd class="msgnotice">
40
            <dd class="msgnotice">
41
                <h4 class="noticecon">验证邮箱,完成注册</h4>
41
                <h4 class="noticecon">验证邮箱,完成注册</h4>
42
                <div class="emailus">
42
                <div class="emailus">
43
                    我们已将验证邮件发送至邮箱:<a title="2648054714@qq.com">2648054714@qq.com</a>
43
                    我们已将验证邮件发送至邮箱:<a id='receiveMail'></a>
44
                    <br> 点击邮件内的链接即可完成注册,完善信息即可使用科袖网所有功能。
44
                    <br> 点击邮件内的链接即可完成注册,完善信息即可使用科袖网所有功能。
45
                </div>
45
                </div>
46
                <a href="https://mail.qq.com/" class="maillink" target="_blank">登录邮箱验证</a>
46
                <a href="https://mail.qq.com/" class="maillink" target="_blank">登录邮箱验证</a>
48
            <dd class="msgnotice">
48
            <dd class="msgnotice">
49
                <h5>没有收到验证邮件,怎么办?</h5>
49
                <h5>没有收到验证邮件,怎么办?</h5>
50
                <div class="contacttip">
50
                <div class="contacttip">
51
                    邮箱填写错误? <a href="">换个邮箱</a>
51
                    邮箱填写错误? <a href="register.html">换个邮箱</a>
52
                    <br> 看看是否在邮箱的垃圾邮件、广告邮件目录里
52
                    <br> 看看是否在邮箱的垃圾邮件、广告邮件目录里
53
                    <br> 稍等几分钟,若还未收到验证邮件, <a href="javascript:void(0)" id="resend_main">重新发送验证邮件</a>
53
                    <br> 稍等几分钟,若还未收到验证邮件, <a href="javascript:void(0)" id="resend_main">重新发送验证邮件</a>
54
                </div>
54
                </div>
85
</div>
85
</div>
86

86

87
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
87
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
88
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
89
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
90
<script type="text/javascript" src="js/common.js"></script>
91
<script type="text/javascript" src="js/bind-mail.js"></script>
88
</body>
92
</body>
89
</html>
93
</html>

+ 66 - 0
src/main/webapp/js/bind-mail.js

1
/**
2
 * 邮箱注册二三步
3
 */
4

5
//获取邮箱传值
6
var mailVal = $.cookie('mailVal');
7
console.log(mailVal);  
8
var userId  = $.cookie('userId');
9
var mailCode = GetQueryString('sc');
10
//初始化
11
emailSuccess();	
12
//获取邮箱验证码传值注册
13
if(mailCode!=''){
14
    $.ajax("/ajax/regmail/"+mailCode,{
15
			type:"POST",
16
			async: true,
17
			success:function(data){ 
18
			   $('#completedcover').show(); 
19
			},
20
			error:function(){
21
			   $.MsgBox.Alert('消息','邮箱注册失败')
22
			},
23
			data:{"mail":mailVal,"userId":userId},			
24
		 	dataType: 'json'}
25
	); 	 
26
 }
27

28
//重新发送验证邮件
29
$("#resend_main").click(function(){
30
	emailResend();
31
});
32
	
33

34
function emailSuccess()
35
{
36
    $('#receiveMail').text(mailVal);
37
	$(".maillink").each(function() {  
38
        var url = mailVal.split('@')[1];
39
        for (var j in hash){  
40
            $(this).attr("href", hash[url]);  
41
        }  
42
     });
43
}
44

45
function goPersonal()
46
{
47
	 location.href="information-add.html?id="+userId;
48
}
49

50
function emailResend()
51
{
52
	
53
    console.log(mailVal); 
54
	$.ajax("/ajax/resendMail",{
55
			type:"GET",
56
			success:function(data){
57
			   // console.log(data);  
58
				$.MsgBox.Alert('消息','验证邮件重新发送成功,点击登录邮箱验证')
59
			},
60
			error:function(){
61
				$.MsgBox.Alert('消息','邮箱发送失败')
62
			},
63
			data:{"mail":mailVal},		
64
		 	dataType: 'json'}
65
		);
66
}

+ 24 - 0
src/main/webapp/js/common.js

103
} 	
103
} 	
104
//**********************//
104
//**********************//
105

105

106
//根据用户输入的Email跳转到相应的电子邮箱首页  
107
var hash={  
108
    'qq.com': 'http://mail.qq.com',  
109
    'gmail.com': 'http://mail.google.com',  
110
    'sina.com': 'http://mail.sina.com.cn',  
111
    '163.com': 'http://mail.163.com',  
112
    '126.com': 'http://mail.126.com',  
113
    'yeah.net': 'http://www.yeah.net/',  
114
    'sohu.com': 'http://mail.sohu.com/',  
115
    'tom.com': 'http://mail.tom.com/',  
116
    'sogou.com': 'http://mail.sogou.com/',  
117
    '139.com': 'http://mail.10086.cn/',  
118
    'hotmail.com': 'http://www.hotmail.com',  
119
    'live.com': 'http://login.live.com/',  
120
    'live.cn': 'http://login.live.cn/',  
121
    'live.com.cn': 'http://login.live.com.cn',  
122
    '189.com': 'http://webmail16.189.cn/webmail/',  
123
    'yahoo.com.cn': 'http://mail.cn.yahoo.com/',  
124
    'yahoo.cn': 'http://mail.cn.yahoo.com/',  
125
    'eyou.com': 'http://www.eyou.com/',  
126
    '21cn.com': 'http://mail.21cn.com/',  
127
    '188.com': 'http://www.188.com/',  
128
    'foxmail.coom': 'http://www.foxmail.com'  
129
};
106

130

107

131


+ 1 - 2
src/main/webapp/js/login-email-find01.js

30
		if(isPass){
30
		if(isPass){
31
		$.ajax("/ajax/reqRpWithEmail",{
31
		$.ajax("/ajax/reqRpWithEmail",{
32
				type:"GET",
32
				type:"GET",
33
				 async: false,
33
			    async: false,
34
				success:function(data){  
34
				success:function(data){  
35

36
					if(data.success){
35
					if(data.success){
37
						if(data.data){
36
						if(data.data){
38
							location.href="login-email-find02.html?email="+$("#email").val();
37
							location.href="login-email-find02.html?email="+$("#email").val();

+ 38 - 0
src/main/webapp/js/login-email-find02.js

1
/**
2
 * 邮箱找密码第二步
3
 */
4
$(function (){
5
	var _widht = document.documentElement.clientWidth;  //屏幕宽
6
	var _height = document.documentElement.clientHeight; //屏幕高
7
	var boxWidth = $(".email-find2").width();
8
	var boxHeight = $(".email-find2").height();
9
	$(".email-find2").css({ top: (_height - boxHeight) / 2 +"px", left: (_widht - boxWidth) / 2 + "px" });
10
	
11
	$("#email").text(GetQueryString("email")); 
12
    $("#emailGo").on("click", function(){
13
		 var url = GetQueryString("email").split('@')[1];
14
        for (var j in hash){  
15
            $(this).attr("href", hash[url]); 
16
            location.href=hash[url]; 
17
        }  
18
	});
19
	
20
	//邮箱发验证码链接,校验是否正确
21
	function sendPassword(){
22
		$.ajax("/ajax/validMailState",{
23
			type:"GET",
24
			async: false,
25
			success:function(data){  
26
				$.cookie('mailVal',mailVal); 
27
				$.cookie('userId',data.data); 
28
			    location.href="bind-mail.html";
29
			},
30
			error:function(){
31
				$.MsgBox.Alert('消息','邮箱发送失败')
32
			},
33
			data:{"mail":mailVal,"password":passwordVal},		
34
		 	dataType: 'json'}
35
		);	
36
	}
37
	
38
});

+ 104 - 0
src/main/webapp/js/login-email-find03.js

1
/**
2
 * 邮箱找回密码第三步
3
 */
4
$(function (){
5
	
6
	var _widht = document.documentElement.clientWidth;  //屏幕宽
7
	var _height = document.documentElement.clientHeight; //屏幕高
8
	var boxWidth = $(".email-find3").width();
9
	var boxHeight = $(".email-find3").height();
10
	$(".email-find3").css({top: (_height - boxHeight) / 2 +"px", left: (_widht - boxWidth) / 2 + "px" });
11

12
	//输入密码及确认密码获取
13
	var oldPass = false;
14
	var isPass = false;
15
	//校验第一个密码
16
	$("#mail_password").blur(function(){
17
		valOld();
18
	})
19
	
20
	//校验确认密码
21
	$("#mail_password1").blur(function(){
22
		valNew();
23
	})
24
	
25
	//提交重置密码
26
	$("#reset_password").click(function(){
27
		resetPassword();
28
	});
29
	
30
});
31

32

33
function valOld()
34
{
35
	var newPassword = $("#mail_password").val();
36
	if(newPassword.length==0)
37
	{
38
		$(".msg1 span").text("密码不能为空");
39
		oldPass = false;
40
	}else if(newPassword.length < 6)
41
	{
42
		$(".msg1 span").text("密码不少于6位,请输入正确的密码");
43
	}else
44
	{
45
		$(".msg1 span").text("");
46
		oldPass = true;
47
	}
48
}
49

50
function valNew()
51
{
52
	var newPassword = $("#mail_password").val();
53
	var oldPassword = $("#mail_password1").val();
54
	if(oldPassword.length==0)
55
	{
56
		 $(".msg2 span").text("密码不能为空");
57
	}
58
	else if(oldPassword.length<6)
59
	{
60
		$(".msg2 span").text("密码长度过短,至少六位");
61
	}else if(oldPassword != newPassword)
62
	{
63
		$(".msg2 span").text("两次密码不一致");
64
	} else
65
	{
66
		isPass = true;
67
		$(".msg2 span").text("");
68
	}
69
}
70

71

72

73
function resetPassword()
74
{
75
	valOld();
76
	valNew();
77
	var mailCode = GetQueryString('sc');
78
	var oldPassword = $("#mail_password1").val();
79
	$.ajax("/ajax/resetPasswordWith",{
80
			type:"post",
81
			success:function(data){ 
82
			   // console.log(data);
83
				if(data.success){
84
					if(data.data == true){
85
						$.MsgBox.Alert("消息","密码重置成功,3秒后自动调转登录页面!");
86
						 window.setTimeout(function(){    
87
		                     location.href="login.html";
88
		                 }, 3000); 
89
					}else{
90
						$(".msg3").text("设置失败,验证码超时");
91
					}
92
				}else{
93
					$(".msg2").text("系统异常!");
94
				} 
95
			},
96
			error:function(){
97
				$.MsgBox.Alert('消息','服务器链接失败')
98
			},
99
			data:{"state":mailCode,"pw":oldPassword},		
100
		 	dataType: 'json'}
101
  );	
102
}
103

104


+ 6 - 4
src/main/webapp/js/login-phone-find02.js

29
			if(password2.length==0){
29
			if(password2.length==0){
30
				 $(".msg2").text("密码不能为空");
30
				 $(".msg2").text("密码不能为空");
31
			}else if(password2 != password){
31
			}else if(password2 != password){
32
				$(".msg2").text("两次输入密码不一致");
32
				 $(".msg2").text("两次输入密码不一致");
33
			}else{
33
			}else{
34
				isPass = true;
34
				isPass = true;
35
				$(".msg2").text("");
35
				 $(".msg2").text("");
36
			}
36
			}
37
		}
37
		}
38
		$("#password").blur(function (){
38
		$("#password").blur(function (){
52
					success:function(data){ 
52
					success:function(data){ 
53
						if(data.success){
53
						if(data.success){
54
							if(data.data == true){
54
							if(data.data == true){
55
								$.MsgBox.Alert("消息","置成功,请登录!");
56
								/*location.href="login.html";*/
55
								$.MsgBox.Alert("消息","密码重置成功,3秒后自动调转登录页面!");
56
								 window.setTimeout(function(){    
57
				                     location.href="login.html";
58
				                 }, 3000); 
57
							}else{
59
							}else{
58
								$(".msg3").text("设置失败,验证码超时");
60
								$(".msg3").text("设置失败,验证码超时");
59
							}
61
							}

+ 31 - 22
src/main/webapp/js/login.js

64
			passwordPass = true;
64
			passwordPass = true;
65
		}
65
		}
66
	}	
66
	}	
67
   
68
	//判断用户第一次登录,是否填写了个人信息
69
	function firstLogin(){
70
		var professorId = $.cookie('userid');
71
		//console.log(professorId);
72
		$.ajax({	
73
			"url":"ajax/professor/"+professorId,
74
			"type":"get",
75
			"async": false,
76
			"success":function(data){
77
				if(data.data!=null)
78
				{	
79
					location.href="index.html";
80
					//console.log(data);
81
				}
82
				else
83
				{
84
					//console.log(data);
85
					location.href="information-add.html?id="+ professorId;
86
				}
87
			},
88
			"error":function(){$.MsgBox.Alert('message','failddd')}
89
		})	
90
	}	
67
	function login(){
91
	function login(){
68
		nameVal();
92
		nameVal();
69
		passwordVal();
93
		passwordVal();
74
					success:function(data){  
98
					success:function(data){  
75

99

76
						if(data.success){
100
						if(data.success){
77
								
78
							var professorId = $.cookie('userid');
79
							console.log(professorId);
80
							$.ajax({	
81
							"url":"ajax/professor/"+professorId,
82
							"type":"get",
83
							"async": false,
84
							"success":function(data){
85
								if(data.data!=null)
86
								{	
87
									location.href="index.html";
88
									//console.log(data);
89
								}
90
								else
91
								{
92
									//console.log(data);
93
									location.href="information-add.html?id="+ professorId;
94
								}
95
							},
96
							"error":function(){$.MsgBox.Alert('message','failddd')}
97
							})
101
							if(data.data != "null" && data.data != null){
102
								firstLogin();
103
							}else{
104
								$(".msg5").text("登录账号和密码不匹配!");
105
							}
98
						}else{
106
						}else{
99
							$(".msg5").text("系统异常!");
107
							$(".msg5").text("系统异常!");
100
							// alert("系统异常!");
108
							// alert("系统异常!");
106
				});
114
				});
107
			}
115
			}
108

116

109
	}
117
	}	
118
	
110
	function restSub(data) {  
119
	function restSub(data) {  
111
         $(".msg5").text("");
120
         $(".msg5").text("");
112
     } 
121
     } 

+ 70 - 42
src/main/webapp/js/register.js

45
var phonePass = false;
45
var phonePass = false;
46
function phoneVal(){
46
function phoneVal(){
47
	var phone= $("#lp_phone").val();
47
	var phone= $("#lp_phone").val();
48
	if(phone.length==0){
49
        $(".msgphone1").text("请输入您的手机号码");
50
    }else{
51
    	var hunPhone=/^1[3|4|5|7|8]\d{9}$/; 
52
		if(hunPhone.test(phone.trim())){
53
			$(".msgphone1").text("");
54
			phonePass = true;
55
		}else{
56
			phonePass = false;
57
			$(".msgphone1").text("手机格式正确,请输入正确的手机号码");
58
		}
59
    }    
48
	$.ajax("/ajax/isReg?key="+phone,{
49
		type:"GET",
50
		async: true,
51
		success:function($data){ 
52
	    	if(phone.length==0){
53
	            $(".msgphone1").text("请输入您的手机号码");
54
	        }else{
55
	        	var hunPhone=/^1[3|4|5|7|8]\d{9}$/; 
56
	    		if(hunPhone.test(phone.trim())){
57
	    			$(".msgphone1").text("");
58
	    			phonePass = true;
59
	    			if($data.data==false){
60
	   		    	  $(".msgphone1").text("您的手机已被注册");
61
	   		        }
62
	    		}else{
63
	    			phonePass = false;
64
	    			$(".msgphone1").text("手机格式正确,请输入正确的手机号码");
65
	    		}
66
	        }    
67
		},
68
		error:function(){
69
			$.MsgBox.Alert('消息','服务器请求失败')},
70
		});
60
}
71
}
72

61
$("#lp_phone").blur(function(){
73
$("#lp_phone").blur(function(){
62
	phoneVal();
74
	phoneVal();
63
});
75
});
125
function doClick(){
137
function doClick(){
126
    removeClass(btn,'getcodeon');
138
    removeClass(btn,'getcodeon');
127
    addClass(btn,'getcodeoff');
139
    addClass(btn,'getcodeoff');
128
    btn.innerHTML="10s后重新获取";
140
    btn.innerHTML="120s后重新获取";
129
    var clickTime = new Date().getTime();
141
    var clickTime = new Date().getTime();
130
    var Timer = setInterval(function(){
142
    var Timer = setInterval(function(){
131
        var nowTime = new Date().getTime();
143
        var nowTime = new Date().getTime();
132
        var second  = Math.ceil(10-(nowTime-clickTime)/1000);
144
        var second  = Math.ceil(120-(nowTime-clickTime)/1000);
133
        if(second>0){
145
        if(second>0){
134
            btn.innerHTML = second+"s后重新获取";
146
            btn.innerHTML = second+"s后重新获取";
135
        }else{
147
        }else{
278
	});
290
	});
279
}
291
}
280

292

293

281
//邮箱注册模块
294
//邮箱注册模块
282
//邮箱验证
295
//邮箱验证
283
var emailPass = false;
296
var emailPass = false;
285
{
298
{
286
	var email = $("#lp_email").val();
299
	var email = $("#lp_email").val();
287
	var gunf=/^\w+@\w+\.((cn)|(com)|(com\.cn))$/;
300
	var gunf=/^\w+@\w+\.((cn)|(com)|(com\.cn))$/;
288
    if(gunf.test(email.trim())){
289
       $(".msgema1 span").text("");
290
       emailPass = true;
291
    }else{
292
    	/*alert("请输入正确是邮箱地址");*/
293
    	$(".msgema1 span").text("请输入正确是邮箱地址");
294
    	emailPass = false;
295
    }
301
	$.ajax("/ajax/isReg?key="+email,{
302
		type:"GET",
303
		async: true,
304
		success:function($data){ 
305
		    if($data.data==false){
306
		    	 $(".msgema1 span").text("您的邮箱已被注册");
307
		    }else{
308
		       if(gunf.test(email.trim())){
309
				       $(".msgema1 span").text("");
310
				       emailPass = true;
311
				    }else{
312
				    	/*alert("请输入正确是邮箱地址");*/
313
				    	$(".msgema1 span").text("请输入正确是邮箱地址");
314
				    	emailPass = false;
315
				    }
316
		        }
317
		},
318
		error:function(){
319
			$.MsgBox.Alert('消息','服务器请求失败')},
320
		}
321
	);
296
}
322
}
323

297
$("#lp_email").blur(function(){
324
$("#lp_email").blur(function(){
298
	valEmail();
325
	valEmail();
299
});
326
});
327

300
//输入密码及确认密码
328
//输入密码及确认密码
301
var oldPass = false;
329
var oldPass = false;
302
var isPass = false;
330
var isPass = false;
339
		$(".msgema3 span").text("");
367
		$(".msgema3 span").text("");
340
	}
368
	}
341
}
369
}
370

342
$("#mail_password1").blur(function(){
371
$("#mail_password1").blur(function(){
343
	valNew();
372
	valNew();
344
})
373
})
374

345
//邮箱注册提交
375
//邮箱注册提交
346
//$("#btnn1").click(function(){
347
// if(isPass&& emailPass)
348
// {
349
//		$.ajax("/ajax/reg",{
350
//			type:"POST",
351
//			 async: false,
352
//			success:function(data){  
353
//				location.href="information-add.html?id="+data.data;
354
//			},
355
//			error:function(){$.MsgBox.Alert('message','fail')},
356
//			data:{"email":$("#lp_email").val(),"password":$("#mail_password1").val()},		
357
//		 	dataType: 'json'}
358
//		);
359
// }
360
//});
361
$("#btnn1").click(function(){
376
function mailRegistration()
377
{
378
	var mailVal = $("#lp_email").val();
379
	var passwordVal = $("#mail_password1").val();
362
	if(isPass&& emailPass)
380
	if(isPass&& emailPass)
363
	{
381
	{
364
		$.ajax("/ajax/regmail",{
382
		$.ajax("/ajax/regmail",{
365
			type:"GET",
383
			type:"GET",
366
			async: false,
384
			async: false,
367
			success:function(data){  
385
			success:function(data){  
368
				location.href="bind-mail.html";
386
				//console.log(data);
387
				$.cookie('mailVal',mailVal); 
388
				$.cookie('userId',data.data); 
389
			    location.href="bind-mail.html";
369
			},
390
			},
370
			error:function(){$.MsgBox.Alert('message','fail')},
371
			data:{"mail":$("#lp_email").val()},		
391
			error:function(){
392
				$.MsgBox.Alert('消息','邮箱发送失败')
393
			},
394
			data:{"mail":mailVal,"password":passwordVal},		
372
		 	dataType: 'json'}
395
		 	dataType: 'json'}
373
		);
396
		);
374
	 }
397
	 }
375
});
398
}
399

400
$("#btnn1").click(function(){
401
	mailRegistration();
402
});
403


+ 2 - 22
src/main/webapp/login-email-find02.html

1
 <!DOCTYPE html>
1
 <!DOCTYPE html>
2
<html>
2
<html>
3
<head>
3
<head>
4
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">
5
-->
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
8

9
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
10
<title>科袖-密码找回-邮箱</title>
7
<title>科袖-密码找回-邮箱</title>
11

12
<link rel="stylesheet" href="css/reset.css" />
8
<link rel="stylesheet" href="css/reset.css" />
13
<link type="text/css" href="css/login.css" rel="stylesheet">
9
<link type="text/css" href="css/login.css" rel="stylesheet">
14

15
</head>
10
</head>
16

11

17
<body>
12
<body>
45
				<div class="welcome">密码重置邮件已发送至您的邮箱:<br><span class="professor" id="email">183****0528@163.com</span></div>
40
				<div class="welcome">密码重置邮件已发送至您的邮箱:<br><span class="professor" id="email">183****0528@163.com</span></div>
46
				<div class="remind">请在10分钟内登录您的邮箱接收邮件,<br>点击链接后即可重置密码</div>
41
				<div class="remind">请在10分钟内登录您的邮箱接收邮件,<br>点击链接后即可重置密码</div>
47
				<div class="password-input">
42
				<div class="password-input">
48
                	
49
						<input type="button" value="登录邮箱并查看" class="inputtxt submitBtn">
50
                   
43
					<input type="button" value="登录邮箱并查看" class="inputtxt submitBtn" id="emailGo">
51
				</div>	
44
				</div>	
52
				    
45
				    
53
		</div>
46
		</div>
54
</div>		
47
</div>		
55
<div id="header"></div>
48
<div id="header"></div>
56
<div id="footer"></div>
49
<div id="footer"></div>
57

58
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
50
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
59
<script type="text/javascript" src="js/common.js"></script>
51
<script type="text/javascript" src="js/common.js"></script>
60
<!--<script type="text/javascript" src="js/form.js"></script>-->
61
<script type="text/javascript">
62
$(function (){
63
	var _widht = document.documentElement.clientWidth;  //屏幕宽
64
	var _height = document.documentElement.clientHeight; //屏幕高
65
	var boxWidth = $(".email-find2").width();
66
	var boxHeight = $(".email-find2").height();
67
	$(".email-find2").css({ top: (_height - boxHeight) / 2 +"px", left: (_widht - boxWidth) / 2 + "px" });
68
	
69
	 $("#email").text(GetQueryString("email")); 
70
});
71
     
72
</script>
52
<script type="text/javascript" src="js/login-email-find02.js"></script>
73
</body>
53
</body>
74
</html>
54
</html>

+ 10 - 19
src/main/webapp/login-email-find03.html

45
			<div class="login-input">
45
			<div class="login-input">
46
			<form  name="f1" action="login-email-find02.html" method="post">
46
			<form  name="f1" action="login-email-find02.html" method="post">
47
                <div class="frmbox">			
47
                <div class="frmbox">			
48
                    <input class="inputtxt" type="text" placeholder="请输入新密码">
49
                    <div class="msg" ><span></span></div>				
50
                    <input class="inputtxt" type="text" placeholder="请再次输入密码">
51
                    <div class="msg" ><span></span></div>	
52
                    <input type="button" value="重置密码" class="inputtxt submitBtn">
48
                    <input class="inputtxt" type="password" placeholder="请输入新密码" id="mail_password">
49
                    <div class="msg msg1" ><span></span></div>				
50
                    <input class="inputtxt" type="password" placeholder="请再次输入密码" id="mail_password1">
51
                    <div class="msg msg2" ><span></span></div>	
52
                    <input type="button" value="重置密码" class="inputtxt submitBtn" id="reset_password">
53
                    <div class="msg msg3"><span></span></div>
53
                </div>
54
                </div>
54
			</form>	
55
			</form>	
55
			</div>
56
			</div>
58

59

59
<div id="header"></div>
60
<div id="header"></div>
60
<div id="footer"></div>
61
<div id="footer"></div>
61

62
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
62
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
63
<script type="text/javascript" src="js/index.js"></script>
64
<script type="text/javascript" src="js/form.js"></script>
65
<script type="text/javascript">
66
$(function (){
67
	var _widht = document.documentElement.clientWidth;  //屏幕宽
68
	var _height = document.documentElement.clientHeight; //屏幕高
69
	var boxWidth = $(".email-find3").width();
70
	var boxHeight = $(".email-find3").height();
71
	$(".email-find3").css({top: (_height - boxHeight) / 2 +"px", left: (_widht - boxWidth) / 2 + "px" });
72
	
73
});
74
     
75
</script>
63
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
64
<script type="text/javascript" src="js/common.js"></script>
65
<script type="text/javascript" src="js/login-email-find03.js"></script>
66

76
</body>
67
</body>
77
</html>
68
</html>

+ 1 - 0
src/main/webapp/login-phone-find02.html

46
                     </div>	
46
                     </div>	
47
                </form>	
47
                </form>	
48
                 <input type="button" value="重置密码" class="inputtxt submitBtn" id="resetPw" />
48
                 <input type="button" value="重置密码" class="inputtxt submitBtn" id="resetPw" />
49
                  <div class="msg msg3" ><span></span></div>
49
			</div>
50
			</div>
50
		</div>
51
		</div>
51
</div>
52
</div>