set_pwd.html
2.59 KB
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
<!DOCTYPE html >
<html>
<head>
<meta name="Generator" content="TPshop1.2" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>密码设置-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/login.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js" ></script>
</head>
<body>
<header id="header" class='header'>
<div class="h-left"><a href="javascript:history.back(-1)"></a></div>
<div class="h-mid">找回密码</div>
</header>
<div id="tbh5v0">
<div class="find">
<section class="innercontent">
<if condition="$is_set eq 1">
<div class="find_box_end">
<p>新密码设置成功!</p>
<p>请您牢记新密码!</p>
<p class="on_go">
<a href="{:U('User/login')}" title="立即登陆" class="btn_big1" style=" color:#FFF">立即登录>></a>
</p>
</div>
<else/>
<form action="" method="post" id="formPassword" name="formPassword">
<div class="field pwd" style=" margin-top:20px">
<input name="password" id="password" type="password" placeholder="请输入密码" class="c-form-txt-normal" />
</div>
<div class="field pwd">
<input name="password2" id="comfirm_password" type="password" placeholder="请再次确认密码" class="c-form-txt-normal" />
</div>
<div class="submit-btn">
<input type="button" id="btn_submit" name="btn_submit" class="btn_big1" value="提 交" onClick="checkpwd()"/>
</div>
</form>
</if>
</section>
<script type="text/javascript">
function checkpwd() {
var new_password = $('#password').val();
var confirm_password = $('#comfirm_password').val();
if(new_password == '' || confirm_password == ''){
alert("密码不能为空");
return false;
}else if(new_password.length<6 || confirm_password.length<6){
alert("密码长度不能少于6位");
return false;
}else if(new_password != confirm_password){
alert("两次密码输入不一致");
return false;
}else{
$('#formPassword').submit();
}
}
</script>
<include file="public/footer"/>
</div>
</div>
<include file="public/footer_nav"/>
</body>
</html>