You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.4 KiB
104 lines
3.4 KiB
<!DOCTYPE html>
|
|
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
|
|
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
|
|
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>忘记密码 {$site_name} </title>
|
|
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
|
|
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
|
|
{include file="public:head" /}
|
|
</head>
|
|
|
|
<body class="body-white">
|
|
<div class="wrap">
|
|
{include file="public:nav" /}
|
|
<div id="main-cmf">
|
|
<div class="content">
|
|
<div class="container">
|
|
<div class="row login">
|
|
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr login_wrap">
|
|
<h2 class="text-center"><i class="fa fa-question-circle" ></i> 忘记密码</h2>
|
|
<form id="login" class="form-light verify-ajax-form" action="{:url('home/Login/runforgot_pwd')}" method="post">
|
|
<div>
|
|
<input type="text" id="input_username" name="member_list_username" placeholder="手机号/邮箱" class="form-control h28" required>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
|
<input type="text" maxlength="6" class="form-control" placeholder="6位验证码" id="verify-m" style="height:40px;" name="verify" required>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 nopadding-left">
|
|
<span class="btn btn-primary red-btn verify-code">获取验证码</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 login-sumit">下一步</button>
|
|
</div>
|
|
<div class="register-forget">
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
|
<a href="{:url('home/Login/index')}">立即登录</a>
|
|
</div>
|
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
|
<a href="{:url('home/Register/index')}">注册账号</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="public:footer"/}
|
|
{include file="public:scripts"/}
|
|
<script>
|
|
$('.verify-code').click(function(){
|
|
var account = $("input[name='member_list_username']"),obj=$(this);
|
|
if(!account.val()){
|
|
account.focus();return false;
|
|
}else if(!account.val().match(/^(((13[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/)){
|
|
if(!account.val().match(/\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}/)){
|
|
layer.alert('非邮箱或手机格式', {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
account.val('').focus();
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
var url="{:url('home/Login/get_code')}";
|
|
$.ajax({
|
|
type:"POST",
|
|
url:url,
|
|
dataType:"json",
|
|
data:{account:account.val()},
|
|
beforeSend:function()
|
|
{
|
|
obj.attr("disabled","disabled");
|
|
},
|
|
success:function(data)
|
|
{
|
|
if(data.code==1){
|
|
var numts=60;
|
|
obj.html("再获取:"+numts);
|
|
var codets=setInterval(function(){
|
|
numts--;
|
|
obj.html("再获取:"+numts);
|
|
if(numts==0)
|
|
{
|
|
obj.html("获取验证码");
|
|
clearInterval(codets);
|
|
obj.removeAttr("disabled");
|
|
}
|
|
},1000);
|
|
}else{
|
|
layer.msg(data.msg,{icon: 5});
|
|
obj.removeAttr("disabled");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|