You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.1 KiB
HTML
88 lines
3.1 KiB
HTML
2 years ago
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title></title>
|
||
|
<meta name="keywords" content="" />
|
||
|
<meta name="description" content="" />
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="renderer" content="webkit">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||
|
<meta name="applicable-device" content="mobile">
|
||
|
<link href="__CSS__/iconfont.css" rel="stylesheet" >
|
||
|
<link href="__CSS__/common.css" rel="stylesheet" >
|
||
|
<link href="__CSS__/unlr.css" rel="stylesheet" >
|
||
|
<script src="__JS__/jquery-1.11.1.min.js"></script>
|
||
|
|
||
|
</head>
|
||
|
<body class="unlr">
|
||
|
<header class="header forget-header">
|
||
|
<div class="">
|
||
|
<a href="{:U('forget')}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
||
|
<h1 class="caption">设置新密码</h1>
|
||
|
</div>
|
||
|
</header>
|
||
|
<div class="occupy"></div>
|
||
|
<section class="trunker">
|
||
|
<section class="container">
|
||
|
<div class="t-form forget-form">
|
||
|
<form action="" class="forget-box">
|
||
|
<div class="form-group clearfix">
|
||
|
<div class="input-group clearfix">
|
||
|
<input type="password" id="new_pwd" name="new_pwd" class="txt" placeholder="6-12个字符" minlength="6" maxlength="12">
|
||
|
</div>
|
||
|
<div class="input-group clearfix">
|
||
|
<input type="password" id="new_pwd_confirm" name="new_pwd_confirm" class="txt" placeholder="再次输入新密码" maxlength="12">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="btn-group">
|
||
|
<input type="hidden" id="phone" name="phone" value="{:I('phone')}">
|
||
|
<input type="button" class="submit" value="完成">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</section>
|
||
|
</section>
|
||
|
<div class="popmsg pop-dialog"></div>
|
||
|
<script src="__JS__/pop.lwx.min.js"></script>
|
||
|
<script src="__JS__/common.js"></script>
|
||
|
<script>
|
||
|
$(function() {
|
||
|
var pmsg = $('.popmsg').pop();
|
||
|
$(".submit").click(function(){
|
||
|
var new_pwd = $.trim($("#new_pwd").val());
|
||
|
var new_pwd_confirm = $.trim($("#new_pwd_confirm").val());
|
||
|
if(new_pwd.length < 6 || new_pwd.length > 12){
|
||
|
pmsg.msg('密码长度6-12个字符');
|
||
|
return false;
|
||
|
}
|
||
|
if(new_pwd != new_pwd_confirm){
|
||
|
pmsg.msg('两次密码输入不一致');
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
$.ajax({
|
||
|
url:"{:U('forget1')}",
|
||
|
type:"POST",
|
||
|
dataType:"json",
|
||
|
data:{phone:$("#phone").val(),new_pwd:new_pwd},
|
||
|
success:function(result){
|
||
|
pmsg.msg(result.info);
|
||
|
if(result.status == 1){
|
||
|
setTimeout(function () {
|
||
|
window.location.href = result.url;
|
||
|
}, 2000);
|
||
|
}
|
||
|
},
|
||
|
error:function(){
|
||
|
alert("服务器异常");
|
||
|
}
|
||
|
})
|
||
|
})
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|