This commit is contained in:
2024-10-29 14:04:59 +08:00
commit 48bf3e6f33
2839 changed files with 762707 additions and 0 deletions

View File

@@ -0,0 +1,176 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="/frontend/m_web/images/user/login_banner.jpg" alt=""></div>
<!--top End-->
<!--重置密码-->
<div class="margin-top-30 other_login text_center">
<div class="title text_black">Retrieve Password</div>
<div class="text_24 text_gray margin-top-20">Well send you a link so you can reset your password.</div>
</div>
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="/frontend/m_web/images/user/login-use.png" alt=""></div>
<div class="input-a">
<input type="text" id="email" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" placeholder="Email Address">
</div>
</div>
</div>
</div>
<!--登录按钮-->
<div class="login-btn margin-top-70">
<button class="login" onclick="update_by_email()">Sumbit</button>
</div>
<!--快速注册-->
<div class="login-text">
<a href="__ORICOROOT__<?php echo url('/customer/register'); ?>">Registry</a>
<span class="floa_r"><a href="__ORICOROOT__<?php echo url('/customer/login'); ?>">Login</a></span>
</div>
</body>
</html>
<script type="text/javascript">
function update_by_email()
{
var email = $("#email").val();
var data = {
email: email,
};
if (!check_format('email'))
{
return;
}
$.ajax({
url: '/usmobile/customer/update_forget_pwd',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
// location.href = '/login.html';
}
else if (res.code == -3)
{
var html = '<span style="color: red">' + res.msg + '</span>';
show_err('password', html);
}
else
{
alert(res.msg);
}
}
})
}
function check_format(id)
{
if (id == 'email')
{
var email = $("#email").val();
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
if (!arg.test(email))
{
var html = '<span style="color: red">Error Mail Form</span>';
show_err('email', html);
return false;
}
else
{
hide_err('email');
return true;
}
}
}
/*倒数计时*/
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
update_by_email();
}
});
</script>
<script type="text/javascript">
function hide_err_batch(id)
{
if (id == 1)
{
hide_err('telephone');
hide_err('captcha1');
hide_err('password');
hide_err('re_password');
}
else
{
}
}
function hide_err(id)
{
if (id == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
$('#' + err_id).html('');
$('#' + input_id).css('border', '1px solid #dedfe0');
}
}
function show_err(id, html)
{
if (id == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
$('#' + err_id).html(html);
$('#' + input_id).css('border', '1px solid red');
}
}
/*验证码倒计时*/
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
</script>