init
This commit is contained in:
84
app/usmobile/view/customer/activation.phtml
Executable file
84
app/usmobile/view/customer/activation.phtml
Executable file
@@ -0,0 +1,84 @@
|
||||
<!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="margin-top-90">
|
||||
<div class="login-m-a ">
|
||||
<div class="login-m-user text_center text_gray">
|
||||
<p class="text_32 margin-top-50 text_black">Activate your account</p>
|
||||
|
||||
<p class="text_24 line-height-40 margin-top-20 ">We’re excited to have you with us!</p>
|
||||
|
||||
<p class="text_24 line-height-40">We have sent an Activation Email to below Email address.</p>
|
||||
|
||||
<p class="text_24 line-height-40">Please open the mail to complete registration.</p>
|
||||
<p class="text_24 line-height-40"><?php echo $email; ?></p>
|
||||
|
||||
<span class="cursor_p"><p class="activation text_24 margin-bottom-60 margin-top-50" onclick="register()">Resend the Email</p></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</div>
|
||||
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function register()
|
||||
{
|
||||
var time = 10;
|
||||
var email = '<?php echo isset($email) ? $email : ''; ?>';
|
||||
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
|
||||
if (!arg.test(email))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
email: email,
|
||||
re_send: 1
|
||||
};
|
||||
$.ajax({
|
||||
url: '/usmobile/customer/new_register',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
var timer = setInterval(function () {
|
||||
if(time == 0){
|
||||
location.href = '/usmobile/customer/activation.html?email=' + email;
|
||||
clearInterval(timer);
|
||||
}else {
|
||||
//$("#btn_send").html(time+"S");
|
||||
$("#btn_send").hide();
|
||||
time--;
|
||||
}
|
||||
},1000);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
430
app/usmobile/view/customer/bind_phone.phtml
Executable file
430
app/usmobile/view/customer/bind_phone.phtml
Executable file
@@ -0,0 +1,430 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-product" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!--top End-->
|
||||
|
||||
<!-- 新闻详情页 s -->
|
||||
<body class="bg-gray">
|
||||
<!-- 注册 -->
|
||||
<div class="login" style="margin-top:180px;">
|
||||
<div class="swt-Container">
|
||||
<div class="login_content_register">
|
||||
<div class="text-c" style="margin-bottom: 2vw"><img src="/uploads/default/logo-black.png"></div>
|
||||
<div class="title accounts blue cursor_p text-c">Retrieve Password</div>
|
||||
<div class="des accounts cursor_p text-c">We’ll send you a link so you can reset your password.</div>
|
||||
<div class="content">
|
||||
<li class="margin-b-5">
|
||||
<input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" id="email" placeholder="Email Address">
|
||||
<div id="err_email" style="color: red"></div>
|
||||
</li>
|
||||
<div class="tjdl">
|
||||
<button class="tjbtn" onclick="update_forget_pwd('update_by_email')">Sumbit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="Register">
|
||||
<a href="__ORICOROOT__<?php echo url('/register'); ?>" class="left">Registry</a>
|
||||
<a href="__ORICOROOT__<?php echo url('/login'); ?>" class="right">Login</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-c login_bottom">2015 ORICO Technologies Co.,Ltd copyright(<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" >GuangDong ICP No. 15,025,109</a>)</div>
|
||||
<!-- 注册 e -->
|
||||
|
||||
<!-- 新闻详情页 e -->
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$(".accounts").click(function(){
|
||||
hide_err_batch(2);
|
||||
update_flag = 1;
|
||||
$(this).siblings().removeClass("blue");
|
||||
$(this).addClass("blue");
|
||||
$(".content_02").hide();
|
||||
$(".content_01").show();
|
||||
})
|
||||
$(".short_letter").click(function(){
|
||||
alert('邮箱暂不可用');
|
||||
return;
|
||||
hide_err_batch(1);
|
||||
update_flag = 2;
|
||||
$(this).siblings().removeClass("blue");
|
||||
$(this).addClass("blue");
|
||||
$(".content_01").hide();
|
||||
$(".content_02").show();
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
var update_flag = 1;
|
||||
var sendsms_flag = 1;
|
||||
function get_captcha(type)
|
||||
{
|
||||
if (type == 'captcha1')
|
||||
{
|
||||
var url = '/index/customer/sendsms';
|
||||
var telephone = $("#telephone").val();
|
||||
var data = {
|
||||
telephone: telephone
|
||||
};
|
||||
|
||||
if (sendsms_flag == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_format('telephone'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (type == 'captcha2')
|
||||
{
|
||||
var url = '/index/customer/sendresetemail';
|
||||
var email = $("#email").val();
|
||||
var data = {
|
||||
email: email
|
||||
};
|
||||
|
||||
if (sendsms_flag == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_format('email'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(data) {
|
||||
if (data.code == 200) {
|
||||
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$(".Obtain").attr("disabled", "true");
|
||||
$(".Obtain").html("重新获取" + curCount + "秒");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000);
|
||||
sendsms_flag = 0;
|
||||
setTimeout(function() {
|
||||
sendsms_flag = 1;
|
||||
}, 60000);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function update_forget_pwd(type) {
|
||||
if (type == 'update_by_tel')
|
||||
{
|
||||
var telephone = $("#telephone").val();
|
||||
var captcha = $("#captcha1").val();
|
||||
var password = $("#password").val();
|
||||
var re_password = $("#re_password").val();
|
||||
var data = {
|
||||
telephone: telephone,
|
||||
captcha: captcha,
|
||||
password: password
|
||||
};
|
||||
|
||||
if (!check_format('telephone') || !check_format('password') || !check_format('re_password'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (type == 'update_by_email')
|
||||
{
|
||||
var email = $("#email").val();
|
||||
var captcha = $("#captcha2").val();
|
||||
var password = $("#password2").val();
|
||||
var re_password = $("#re_password2").val();
|
||||
var data = {
|
||||
email: email,
|
||||
captcha: captcha,
|
||||
password: password
|
||||
};
|
||||
|
||||
if (!check_format('email') || !check_format('password2') || !check_format('re_password2'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: 'index/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('captcha1', html);
|
||||
}
|
||||
else if (res.code == -5)
|
||||
{
|
||||
var html = '<span style="color: red">' + res.msg + '</span>';
|
||||
show_err('captcha2', html);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
function check_format(id)
|
||||
{
|
||||
if (id == 'password' || id == 'password2')
|
||||
{
|
||||
var flag = id == 'password' ? 1 : 0;
|
||||
var _id = flag == 1 ? 're_password' : 're_password2';
|
||||
var err_id = flag == 1 ? 'pwd' : 'pwd2';
|
||||
|
||||
var re_password = $("#" + _id).val();
|
||||
if (re_password != '')
|
||||
{
|
||||
check_format(_id);
|
||||
}
|
||||
|
||||
var password = $("#" + id).val();
|
||||
var arg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var html = '<span style="color: red">Passwords must contain 8-20 characters, numbers and letters</span>';
|
||||
show_err(err_id, html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err(err_id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (id == 're_password' || id == 're_password2')
|
||||
{
|
||||
var flag = id == 're_password' ? 1 : 0;
|
||||
var pwd_id = flag == 1 ? 'password' : 'password2';
|
||||
var err_id = flag == 1 ? 're_pwd' : 're_pwd2';
|
||||
|
||||
var password = $("#" + pwd_id).val();
|
||||
var re_password = $("#" + id).val();
|
||||
if (password != re_password)
|
||||
{
|
||||
var html = '<span style="color: red"> Two password inconsistencies </span>';
|
||||
show_err(err_id, html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err(err_id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (id == 'telephone')
|
||||
{
|
||||
var telephone = $("#telephone").val();
|
||||
var arg = /^1[3456789]\d{9}$/;
|
||||
if (!arg.test(telephone))
|
||||
{
|
||||
var html = '<span style="color: red">Please check the E-mail</span>';
|
||||
show_err('telephone', html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err('telephone');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else 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;
|
||||
var type = update_flag == 1 ? 'update_by_tel' : 'update_by_email';
|
||||
if (code == 13)
|
||||
{
|
||||
update_forget_pwd(type);
|
||||
}
|
||||
});
|
||||
</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 == 'password')
|
||||
{
|
||||
var err_id = 'err_pwd';
|
||||
var input_id = 'password';
|
||||
}
|
||||
else if (id == 're_password')
|
||||
{
|
||||
var err_id = 'err_repwd';
|
||||
var input_id = 're_password';
|
||||
}
|
||||
if (id == 'password2')
|
||||
{
|
||||
var err_id = 'err_pwd2';
|
||||
var input_id = 'password2';
|
||||
}
|
||||
else if (id == 're_password2')
|
||||
{
|
||||
var err_id = 'err_repwd2';
|
||||
var input_id = 're_password2';
|
||||
}
|
||||
else if (id == 'email')
|
||||
{
|
||||
var err_id = 'err_email';
|
||||
var input_id = 'email';
|
||||
}
|
||||
else if (id == 'telephone')
|
||||
{
|
||||
var err_id = 'err_tel';
|
||||
var input_id = 'telephone';
|
||||
}
|
||||
else if (id == 'captcha1')
|
||||
{
|
||||
var err_id = 'err_captcha1';
|
||||
var input_id = 'captcha1';
|
||||
}
|
||||
else if (id == 'captcha2')
|
||||
{
|
||||
var err_id = 'err_captcha2';
|
||||
var input_id = 'captcha2';
|
||||
}
|
||||
|
||||
$('#' + err_id).html('');
|
||||
$('#' + input_id).css('border', '1px solid #dedfe0');
|
||||
}
|
||||
|
||||
function show_err(id, html)
|
||||
{
|
||||
if (id == 'pwd')
|
||||
{
|
||||
var err_id = 'err_pwd';
|
||||
var input_id = 'password';
|
||||
}
|
||||
else if (id == 're_pwd')
|
||||
{
|
||||
var err_id = 'err_repwd';
|
||||
var input_id = 're_password';
|
||||
}
|
||||
else if (id == 'pwd2')
|
||||
{
|
||||
var err_id = 'err_pwd2';
|
||||
var input_id = 'password2';
|
||||
}
|
||||
else if (id == 're_pwd2')
|
||||
{
|
||||
var err_id = 'err_repwd2';
|
||||
var input_id = 're_password2';
|
||||
}
|
||||
else if (id == 'email')
|
||||
{
|
||||
var err_id = 'err_email';
|
||||
var input_id = 'email';
|
||||
}
|
||||
else if (id == 'telephone')
|
||||
{
|
||||
var err_id = 'err_tel';
|
||||
var input_id = 'telephone';
|
||||
}
|
||||
else if (id == 'captcha1')
|
||||
{
|
||||
var err_id = 'err_captcha1';
|
||||
var input_id = 'captcha1';
|
||||
}
|
||||
else if (id == 'captcha2')
|
||||
{
|
||||
var err_id = 'err_captcha2';
|
||||
var input_id = 'captcha2';
|
||||
}
|
||||
|
||||
$('#' + 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>
|
||||
185
app/usmobile/view/customer/forgetpwd.phtml
Executable file
185
app/usmobile/view/customer/forgetpwd.phtml
Executable file
@@ -0,0 +1,185 @@
|
||||
<!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">
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-user">
|
||||
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
|
||||
<div class="input-a">
|
||||
<input type="password" id="password" onfocus="this.placeholder=''" onblur="this.placeholder='New password'" placeholder="New password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-m-a ">
|
||||
<div class="login-m-password">
|
||||
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
|
||||
<div class="input-a">
|
||||
<input type="password" id="re_password" onfocus="this.placeholder=''" onblur="this.placeholder='Confirm New Password'" placeholder="Confirm New Password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--登录按钮-->
|
||||
<div class="login-btn margin-top-70">
|
||||
<button class="login" onclick="update_forget_pwd()">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.html'); ?>">Login?</a></span>
|
||||
</div>
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function update_forget_pwd() {
|
||||
|
||||
var password = $("#password").val();
|
||||
var re_password = $("#re_password").val();
|
||||
var token = '<?php echo isset($token) ? $token : ''; ?>';
|
||||
var data = {
|
||||
token: token,
|
||||
password: password
|
||||
};
|
||||
|
||||
if (!check_format('password') || !check_format('re_password'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/usmobile/customer/change_password',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.href = '/usmobile/customer/login.html';
|
||||
}
|
||||
else if (res.code == -3)
|
||||
{
|
||||
var html = '<span style="color: red">' + res.msg + '</span>';
|
||||
show_err('captcha1', html);
|
||||
}
|
||||
else if (res.code == -5)
|
||||
{
|
||||
var html = '<span style="color: red">' + res.msg + '</span>';
|
||||
show_err('captcha2', html);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
function check_format(id)
|
||||
{
|
||||
if (id == 'password')
|
||||
{
|
||||
var re_password = $("#re_password").val();
|
||||
if (re_password != '')
|
||||
{
|
||||
check_format('re_password');
|
||||
}
|
||||
|
||||
var password = $("#" + id).val();
|
||||
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var html = '<span style="color: red">The password must contain 8-20 characters and at least two types of characters.</span>';
|
||||
show_err('password', html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err('password');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (id == 're_password')
|
||||
{
|
||||
var password = $("#password").val();
|
||||
var re_password = $("#re_password").val();
|
||||
if (password != re_password)
|
||||
{
|
||||
var html = '<span style="color: red"> Two password inconsistencies </span>';
|
||||
show_err('re_password', html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err('re_password');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(document).keyup(function(e) {
|
||||
var code = e.keyCode;
|
||||
|
||||
if (code == 13)
|
||||
{
|
||||
update_forget_pwd();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function hide_err(id)
|
||||
{
|
||||
if (id == 'password')
|
||||
{
|
||||
var err_id = 'err_password';
|
||||
var input_id = 'password';
|
||||
}
|
||||
else if (id == 're_password')
|
||||
{
|
||||
var err_id = 'err_re_password';
|
||||
var input_id = 're_password';
|
||||
}
|
||||
|
||||
$('#' + err_id).html('');
|
||||
$('#' + input_id).css('border', '1px solid #dedfe0');
|
||||
}
|
||||
|
||||
function show_err(id, html)
|
||||
{
|
||||
if (id == 'password')
|
||||
{
|
||||
var err_id = 'err_password';
|
||||
var input_id = 'password';
|
||||
}
|
||||
else if (id == 're_password')
|
||||
{
|
||||
var err_id = 'err_re_password';
|
||||
var input_id = 're_password';
|
||||
}
|
||||
|
||||
$('#' + err_id).html(html);
|
||||
$('#' + input_id).css('border', '1px solid red');
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
156
app/usmobile/view/customer/index.phtml
Executable file
156
app/usmobile/view/customer/index.phtml
Executable file
@@ -0,0 +1,156 @@
|
||||
<!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" /}
|
||||
<!--top End-->
|
||||
<!--banner-->
|
||||
<div class="img-responsive margin-top-90"><img src="/frontend/m_web/images/user/login_banner.jpg" alt=""></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="hide_err('email')" onblur="check_format('email')" placeholder="Email Address">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-m-a ">
|
||||
<div class="login-m-password">
|
||||
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
|
||||
<div class="input-a">
|
||||
<input type="password" onfocus="hide_err('password')" id="password" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--登录按钮-->
|
||||
<div class="login-btn margin-top-70">
|
||||
<button class="login" onclick="login()">Login</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/retrieve_password'); ?>">Forget password?</a></span>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="short">
|
||||
<div class="Quick"><span>其它登录方式</span></div>
|
||||
<a onclick='toLogin()'><img src="__PUBLIC__/web/images/customer/QQ.png" height="33"></a>
|
||||
<a onclick='toLogin()'><img src="__PUBLIC__/web/images/customer/weixin.png" height="33"></a>
|
||||
</div>-->
|
||||
<!-- 登录 -->
|
||||
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function show_err(id, html)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html(html);
|
||||
$(input_id).css('border', '1px solid red');
|
||||
}
|
||||
|
||||
function hide_err(id)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html('');
|
||||
$('err_block').html('');
|
||||
$(input_id).css('border', '1px solid #dedfe0');
|
||||
}
|
||||
|
||||
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 = 'Please check the E-mail';
|
||||
show_err(id, html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err(id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
var email = $("#email").val();
|
||||
var password = $("#password").val();
|
||||
var data = {
|
||||
email: email,
|
||||
password: password
|
||||
};
|
||||
|
||||
if (!check_format('email'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/usmobile/customer/new_login',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
var redirect_uri = '<?php echo $url; ?>';
|
||||
if (redirect_uri != '')
|
||||
{
|
||||
location.href = redirect_uri;
|
||||
}
|
||||
else
|
||||
{
|
||||
location.href = '/usmobile/customer/personal';
|
||||
}
|
||||
}
|
||||
else if (res.code < 0)
|
||||
{
|
||||
var html = res.msg;
|
||||
$('#err_block').html(html);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).keyup(function(e) {
|
||||
var code = e.keyCode;
|
||||
if (code == 13)
|
||||
{
|
||||
login();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
42
app/usmobile/view/customer/information.phtml
Executable file
42
app/usmobile/view/customer/information.phtml
Executable file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-product" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Product">
|
||||
<div id="header" class="theme-black">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!--top End-->
|
||||
|
||||
<!-- 新闻详情页 s -->
|
||||
<div class="zhuce1">
|
||||
<div class="w1200">
|
||||
<ul class="w1000 zclist zclist1">
|
||||
<li>
|
||||
<p class="ts3"><?php echo $msg; ?>!</p>
|
||||
<p class="ts4">如果您不能正常登录,请联系在线客服QQ:XXXX 工作时间:09:00--18:00</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 新闻详情页 e -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
69
app/usmobile/view/customer/login.phtml
Executable file
69
app/usmobile/view/customer/login.phtml
Executable file
@@ -0,0 +1,69 @@
|
||||
<!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="__PUBLIC__/m_web/images/user/login_banner.jpg" alt=""/></div>
|
||||
<!--top End-->
|
||||
<div class="margin-60">
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-user">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
|
||||
<div class="input-a">
|
||||
<input name="email" type="text" placeholder="Email Address" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-m-a ">
|
||||
<div class="login-m-password">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
|
||||
<div class="input-a">
|
||||
<input name="password" type="password" placeholder="Please enter your password" onfocus="this.placeholder=''" onblur="this.placeholder='Please enter your password'" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class=" login-btn">
|
||||
<button class="login">Login</button>
|
||||
</div>
|
||||
<div class="login-text"><a href="/usmobile/customer/register.html">Rapid registration</a> <span class="floa_r"><a href="/usmobile/customer/retrieve_password.html">Forget password?</a></span></div>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".login").click(function() {
|
||||
var email = $("input[name = 'email']").val();
|
||||
var password = $("input[name = 'password']").val();
|
||||
$.ajax({
|
||||
url: '/usmobile/customer/new_login',
|
||||
type: 'post',
|
||||
data: {email: email, password: password},
|
||||
dataType: 'json',
|
||||
success: function(res) {
|
||||
if (res.code === 200) {
|
||||
alert('Login Successful');
|
||||
location.href = '/usmobile/customer/personal.html';
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
189
app/usmobile/view/customer/my_collection.phtml
Executable file
189
app/usmobile/view/customer/my_collection.phtml
Executable file
@@ -0,0 +1,189 @@
|
||||
<!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 style="background: #f4f5f5;">
|
||||
<!--top-->
|
||||
<div id="content">
|
||||
{include file="include/top-collection" /}
|
||||
<div class="img-responsive personal-all margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
|
||||
<div class="personal_header">
|
||||
<?php if (!empty($customer_info)): ?>
|
||||
<?php
|
||||
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
|
||||
?>
|
||||
<div class="m_Container">
|
||||
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
|
||||
<div class="right text_28">
|
||||
<p>User: <?php echo $customer_info['firstname']; ?></p>
|
||||
<p class="margin-top-14">Status: Logged in</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!--收藏内容-->
|
||||
<div class="personal-bg margin-top-20 margin-bottom-10 overflow-h">
|
||||
<div class="m_Container">
|
||||
<!--导航-->
|
||||
<div class="collection_c margin-bottom-14 margin-top-10 text_black " id="collection_c">
|
||||
<div class="scroller">
|
||||
<ul class="clearfix text_28">
|
||||
|
||||
<li class="<?php if ($cid == 0): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection.html" class=""><span>All</span></a></li>
|
||||
<?php if (!empty($productCategory)): ?>
|
||||
|
||||
<?php foreach($productCategory as $key => $value): ?>
|
||||
<li class="<?php if ($cid == $value['id']): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection/cid/<?php echo $value['id']; ?>" class=""><span><?php echo $value['name']; ?></span></a></li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--列表-->
|
||||
<div class="collection_l f_weight_100">
|
||||
<?php if (!empty($list)): ?>
|
||||
<ul>
|
||||
<?php foreach($list as $key => $value): ?>
|
||||
<a href="/usmobile/product/detail/id/<?php echo $value['id']; ?>.html">
|
||||
<li class="">
|
||||
<div class="Batch_select" style="display: none;">
|
||||
<input id="" name="check_box" type="checkbox" class="check_box" value="<?php echo $value['id']; ?>"><label></label>
|
||||
</div>
|
||||
<div class="left img-responsive"><img src="<?php echo $value['product_two_img']; ?>"></div>
|
||||
<div class="right">
|
||||
<p class="text_28 margin-top-14"><?php echo $value['name']?></p>
|
||||
<p class="text_24 text_gray margin-top-20"><?php echo $value['brand_id']; ?></p>
|
||||
</div>
|
||||
</li>
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<!--无收藏-->
|
||||
<div class="margin-top-90 margin-bottom-90 text_32 text_center">You haven't collected any products yet.</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collection_b text_24" style="display: none;">
|
||||
<div class="m_container margin-bottom-20 margin-top-30 text_gray overflow-h">
|
||||
<div class="collection_b_left img-responsive"><input type="checkbox" class="check" name="check" value=""><label></label>Select All</div>
|
||||
<div class="collection_b_right delete">Delete</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="all_del Popup img-responsive" style="display: none">
|
||||
<div class="all_delect content text_center">
|
||||
<p class="text_28 margin-bottom-30">Confirm Delete?</p>
|
||||
<p class="all_del_left">
|
||||
<span class="bg_red u_button_blue text_24">Confirm</span>
|
||||
<span class="bg_gray u_button_gray text_24">Cancel</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/iscroll.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/navbarscroll.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*导航滚动*/
|
||||
$(function(){
|
||||
//demo示例一到四 通过lass调取,一句可以搞定,用于页面中可能有多个导航的情况
|
||||
$('.collection_c').navbarscroll();
|
||||
});
|
||||
/*批量删除*/
|
||||
$(function(){
|
||||
$(".Batch").click(function(){
|
||||
$(".Batch_select").toggle();
|
||||
$(".collection_b").toggle();
|
||||
//$(".u_admin01").hide();
|
||||
//$(".u_admin02").show();
|
||||
//$(".u_product .check_B").show();
|
||||
//$(".u_product .s_del").removeClass('u_del');
|
||||
});
|
||||
$(".u_admin02 .cancel").click(function(){
|
||||
//$(".u_admin02").hide();
|
||||
//$(".u_admin01").show();
|
||||
//$(".u_product .check_B").hide();
|
||||
//$(".u_product .s_del").addClass('u_del');
|
||||
});
|
||||
})
|
||||
|
||||
/*全选*/
|
||||
$(document).ready(function(){
|
||||
$(".collection_b_left input[name='check']").click(function(){
|
||||
if($(this).is(":checked")){
|
||||
$(".Batch_select input[type='checkbox']").prop("checked",true);
|
||||
}else{
|
||||
$(".Batch_select input[type='checkbox']").prop("checked",false);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
/*批量管量*/
|
||||
var checked = [];
|
||||
$(document).ready(function(){
|
||||
$(".delete").click(function(){
|
||||
$('input[name="check_box"]:checked').each(function() {
|
||||
checked.push($(this).val());
|
||||
});
|
||||
$(".all_del").show();
|
||||
});
|
||||
$(".all_delect .bg_gray").click(function(){
|
||||
$(".all_del").hide();
|
||||
checked = [];
|
||||
});
|
||||
$(".all_delect .bg_red").click(function(){
|
||||
var product_ids = checked;
|
||||
cancel_collection(product_ids, 1);
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function cancel_collection(product_id, type=0)
|
||||
{
|
||||
if (product_id == '')
|
||||
{
|
||||
alert(' Please choose the product first. ');
|
||||
$(".all_del").hide();
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
type: 1,
|
||||
coll_id: product_id
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/us/collection/cancel_collection',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (type == 1)
|
||||
{
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
186
app/usmobile/view/customer/my_collection20191119.phtml
Executable file
186
app/usmobile/view/customer/my_collection20191119.phtml
Executable file
@@ -0,0 +1,186 @@
|
||||
<!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 style="background: #f4f5f5;">
|
||||
<!--top-->
|
||||
<div id="content">
|
||||
{include file="include/top-collection" /}
|
||||
<div class="img-responsive personal-all margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
|
||||
<div class="personal_header">
|
||||
<?php if (!empty($customer_info)): ?>
|
||||
<?php
|
||||
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
|
||||
?>
|
||||
<div class="m_Container">
|
||||
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
|
||||
<div class="right text_28">
|
||||
<p>User: <?php echo $customer_info['firstname']; ?></p>
|
||||
<p class="margin-top-14">Status: Logged in</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!--收藏内容-->
|
||||
<div class="personal-bg margin-top-20 margin-bottom-10 overflow-h">
|
||||
<div class="m_Container">
|
||||
<!--导航-->
|
||||
<div class="collection_c margin-bottom-14 margin-top-10 text_black " id="collection_c">
|
||||
<div class="scroller">
|
||||
<ul class="clearfix text_28">
|
||||
|
||||
<li class="<?php if ($cid == 0): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection.html" class=""><span>All</span></a></li>
|
||||
<?php if (!empty($productCategory)): ?>
|
||||
|
||||
<?php foreach($productCategory as $key => $value): ?>
|
||||
<li class="<?php if ($cid == $value['id']): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection/cid/<?php echo $value['id']; ?>" class=""><span><?php echo $value['name']; ?></span></a></li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--列表-->
|
||||
<div class="collection_l f_weight_100">
|
||||
<?php if (!empty($list)): ?>
|
||||
<ul>
|
||||
<?php foreach($list as $key => $value): ?>
|
||||
<li class="">
|
||||
<div class="Batch_select" style="display: none;">
|
||||
<input id="" name="check_box" type="checkbox" class="check_box" value="<?php echo $value['id']; ?>"><label></label>
|
||||
</div>
|
||||
<div class="left img-responsive"><img src="<?php echo $value['product_two_img']; ?>"></div>
|
||||
<div class="right">
|
||||
<p class="text_28 margin-top-14"><?php echo $value['name']?></p>
|
||||
<p class="text_24 text_gray margin-top-20"><?php echo $value['brand_id']; ?></p>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<!--无收藏-->
|
||||
<div class="margin-top-90 margin-bottom-90 text_32 text_center">You haven't collected any products yet.</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collection_b text_24" style="display: none;">
|
||||
<div class="m_container margin-bottom-20 margin-top-30 text_gray overflow-h">
|
||||
<div class="collection_b_left img-responsive"><input type="checkbox" class="check" name="check" value=""><label></label>Select All</div>
|
||||
<div class="collection_b_right delete">Delete</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="all_del Popup img-responsive" style="display: none">
|
||||
<div class="all_delect content text_center">
|
||||
<p class="text_28 margin-bottom-30">Confirm Delete?</p>
|
||||
<p class="all_del_left">
|
||||
<span class="bg_red u_button_blue text_24">Confirm</span>
|
||||
<span class="bg_gray u_button_gray text_24">Cancel</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/iscroll.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/navbarscroll.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*导航滚动*/
|
||||
$(function(){
|
||||
//demo示例一到四 通过lass调取,一句可以搞定,用于页面中可能有多个导航的情况
|
||||
$('.collection_c').navbarscroll();
|
||||
});
|
||||
/*批量删除*/
|
||||
$(function(){
|
||||
$(".Batch").click(function(){
|
||||
$(".Batch_select").toggle();
|
||||
$(".collection_b").toggle();
|
||||
//$(".u_admin01").hide();
|
||||
//$(".u_admin02").show();
|
||||
//$(".u_product .check_B").show();
|
||||
//$(".u_product .s_del").removeClass('u_del');
|
||||
});
|
||||
$(".u_admin02 .cancel").click(function(){
|
||||
//$(".u_admin02").hide();
|
||||
//$(".u_admin01").show();
|
||||
//$(".u_product .check_B").hide();
|
||||
//$(".u_product .s_del").addClass('u_del');
|
||||
});
|
||||
})
|
||||
|
||||
/*全选*/
|
||||
$(document).ready(function(){
|
||||
$(".collection_b_left input[name='check']").click(function(){
|
||||
if($(this).is(":checked")){
|
||||
$(".Batch_select input[type='checkbox']").prop("checked",true);
|
||||
}else{
|
||||
$(".Batch_select input[type='checkbox']").prop("checked",false);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
/*批量管量*/
|
||||
var checked = [];
|
||||
$(document).ready(function(){
|
||||
$(".delete").click(function(){
|
||||
$('input[name="check_box"]:checked').each(function() {
|
||||
checked.push($(this).val());
|
||||
});
|
||||
$(".all_del").show();
|
||||
});
|
||||
$(".all_delect .bg_gray").click(function(){
|
||||
$(".all_del").hide();
|
||||
checked = [];
|
||||
});
|
||||
$(".all_delect .bg_red").click(function(){
|
||||
var product_ids = checked;
|
||||
cancel_collection(product_ids, 1);
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function cancel_collection(product_id, type=0)
|
||||
{
|
||||
if (product_id == '')
|
||||
{
|
||||
alert(' Please choose the product first. ');
|
||||
$(".all_del").hide();
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
type: 1,
|
||||
coll_id: product_id
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/index/collection/cancel_collection',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (type == 1)
|
||||
{
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
214
app/usmobile/view/customer/personal.phtml
Executable file
214
app/usmobile/view/customer/personal.phtml
Executable file
@@ -0,0 +1,214 @@
|
||||
<!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 style="background: #f4f5f5;">
|
||||
<!--top-->
|
||||
<div id="content">
|
||||
{include file="include/top" /}
|
||||
<div class="img-responsive personal-all margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
|
||||
<div class="personal_header">
|
||||
<?php if (!empty($customer_info)): ?>
|
||||
<?php
|
||||
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
|
||||
?>
|
||||
<div class="m_Container">
|
||||
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
|
||||
<div class="right text_28">
|
||||
<p>User: <?php echo $customer_info['firstname']; ?></p>
|
||||
<p class="margin-top-14">Status: Logged in</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="personal-bg margin-top-14">
|
||||
<div class="m_Container f_weight_100">
|
||||
<div class="personal-m-a text_28 text_gray ">
|
||||
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/collection.png" alt=""/></div>
|
||||
<a href="__ORICOROOT__/customer/my_collection.html"><div class="personal-lable">Favorite</div></a>
|
||||
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<?php if (!empty($customer_info)): ?>
|
||||
<div class="personal-m-a text_28 text_gray">
|
||||
<div class="modify">
|
||||
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
|
||||
<div class="personal-lable">Change Password</div>
|
||||
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<div class="Popup">
|
||||
<div class="content password">
|
||||
<?php if ($customer_info['have_pwd']): ?>
|
||||
<div class="margin-bottom-20"><label>Original Password</label><input class="form-control input_class" id="old_password" type="password">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="margin-bottom-20"><label>New Password</label><input id="new_password" class="form-control input_class" type="password"></div>
|
||||
<div class="margin-bottom-20"><label>Confirm Password</label><input id="re_password" class="form-control input_class" type="password"></div>
|
||||
<div class="text_right"><a href="__ORICOROOT__/customer/forgetpwd.html" class="text_blue">Forget Password?</a></div>
|
||||
<div class="u_button text_22 text_center margin-top-50"><a class="u_button_blue" onclick="update_pwd()">Confirm</a><a class="u_button_gray">Cancel</a><!--<a href="http://www.orico.com.cn/forgetpwd"><span class="forget_button f_blue">忘记密码</span></a>--></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--<div class="personal-m-a text_24 text_gray">
|
||||
<div class="modify">
|
||||
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
|
||||
<div class="personal-lable">Change Email</div>
|
||||
<div class="personal-c margin-top-40"><?php echo $customer_info['email']; ?></div>
|
||||
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<div class="Popup">
|
||||
<div class="content email">
|
||||
<div class="margin-bottom-20"><label>New Email</label><input class="form-control input_class" id="email" type="text"></div>
|
||||
<div class="u_button text_22 text_center margin-top-50"><a class="u_button_blue" onclick="bind_email()">Confim</a><a class="u_button_gray">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class=" login-btn" style="margin-bottom: 1.3rem;">
|
||||
<button class="update margin-top-50" onclick="logout()">Logout</button>
|
||||
</div>
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
function logout()
|
||||
{
|
||||
$.ajax({
|
||||
'url': '/usmobile/customer/new_logout.html',
|
||||
'type': 'post',
|
||||
'success': function(res) {
|
||||
location.href = '__ORICOROOT__';
|
||||
}
|
||||
})
|
||||
}
|
||||
/*修改密码*/
|
||||
$(function(){
|
||||
$(".modify").click(function(){
|
||||
$(this).next(".Popup").show();
|
||||
});
|
||||
$(".u_button_gray").click(function(){
|
||||
$(this).parents(".Popup").hide();
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
/*修改密码*/
|
||||
function check_format(id)
|
||||
{
|
||||
if (id == 'new_password')
|
||||
{
|
||||
var re_password = $("#re_password").val();
|
||||
if (re_password != '')
|
||||
{
|
||||
check_format('re_password');
|
||||
}
|
||||
|
||||
var password = $("#new_password").val();
|
||||
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var html = 'Password must be 8 - 20 digits, letters or characters';
|
||||
show_err('new_password', html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err('new_password');
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
else if (id == 're_password')
|
||||
{
|
||||
var password = $("#new_password").val();
|
||||
var re_password = $("#re_password").val();
|
||||
if (password != re_password)
|
||||
{
|
||||
var html = 'Two password inconsistencies';
|
||||
show_err('re_password', html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err('re_password');
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function update_pwd()
|
||||
{
|
||||
var old_password = $("#old_password").val();
|
||||
var password = $("#new_password").val();
|
||||
|
||||
var data = {
|
||||
old_password: old_password,
|
||||
password: password,
|
||||
};
|
||||
|
||||
if (!check_format('new_password') || !check_format('re_password'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/us/customer/update_pwd',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.reload();
|
||||
}
|
||||
else if (res.code == -2)
|
||||
{
|
||||
var html = res.msg;
|
||||
show_err('old_password', html);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function show_err(id, html)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html(html);
|
||||
$(input_id).css('border', '1px solid red');
|
||||
}
|
||||
|
||||
function hide_err(id)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html('');
|
||||
$(input_id).css('border', '1px solid #dedfe0');
|
||||
}
|
||||
</script>
|
||||
247
app/usmobile/view/customer/register.phtml
Executable file
247
app/usmobile/view/customer/register.phtml
Executable file
@@ -0,0 +1,247 @@
|
||||
<!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="__PUBLIC__/m_web/images/user/login_banner.jpg" alt=""/></div>
|
||||
<!--top End-->
|
||||
|
||||
<!-- 注册 -->
|
||||
<div class="regist-tab">
|
||||
<!--<div class="tab">
|
||||
<a href="javascript:;" class="on">邮箱注册</a> <a href="javascript:;" class="on">手机注册</a> </div>-->
|
||||
<div class="content">
|
||||
<div class="margin-top-30">
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-password">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
|
||||
<div class="input-a"><input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" id="email" placeholder="Email Address"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-code">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
|
||||
<div class="input-a"><input type="password" onfocus="this.placeholder=''" onblur="this.placeholder='Password'" id="password" placeholder="Password"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-code">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/login-code.png" alt=""/></div>
|
||||
<div class="input-a"><input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Enter Captcha'" id="captcha" placeholder="Enter Captcha"></div>
|
||||
<div class="input-code img-responsive"><img id="verifyimg" src="/captcha/authcode.html"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="regist-form"><input type="checkbox"> 我已阅读并同意《网站服务条款》</div>-->
|
||||
<div class="margin-top-90 login-btn margin-bottom-20 overflow-h"><button class="register" onclick="register()">Registry</button></div>
|
||||
<div class="login-text"><a href="__ORICOROOT__/customer/login.html" class="float_l margin-bottom-90 overflow-h">Login</a></div>
|
||||
</div>
|
||||
|
||||
<!-- 注册 e -->
|
||||
|
||||
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
|
||||
function isNull(data) {
|
||||
return (data == "" || data == undefined || data == null) ? true : false;
|
||||
}
|
||||
function trim(str) {
|
||||
return str.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
|
||||
function validEmail(email) {
|
||||
//对电子邮件的验证
|
||||
var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
|
||||
return reg.test(email);
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function show_err(id, html)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html(html);
|
||||
$(input_id).css('border', '1px solid red');
|
||||
}
|
||||
|
||||
function hide_err(id)
|
||||
{
|
||||
var err_id = '#err_' + id;
|
||||
var input_id = '#' + id;
|
||||
|
||||
$(err_id).html('');
|
||||
$(input_id).css('border', '1px solid #dedfe0');
|
||||
}
|
||||
|
||||
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 = 'Please check the E-mail';
|
||||
show_err(id, html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err(id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (id == 'password')
|
||||
{
|
||||
var password = $("#password").val();
|
||||
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var html = 'The password must contain 8-20 characters and at least two types of characters.';
|
||||
show_err(id, html);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide_err(id);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function register()
|
||||
{
|
||||
var email = $("#email").val();
|
||||
var password = $("#password").val();
|
||||
var captcha = $("#captcha").val();
|
||||
var data = {
|
||||
email: email,
|
||||
password: password,
|
||||
captcha: captcha
|
||||
}
|
||||
|
||||
if (!check_format('email') || !check_format('password'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/usmobile/customer/new_register',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.href = '/usmobile/customer/activation.html?email=' + email;
|
||||
}
|
||||
if (res.code < 0)
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
var sendsms_flag = 1;
|
||||
function get_captcha(type)
|
||||
{
|
||||
if (type == 'captcha1')
|
||||
{
|
||||
var url = '/index/customer/sendsms';
|
||||
var telephone = $("#telephone").val();
|
||||
var data = {
|
||||
register: 1,
|
||||
telephone: telephone
|
||||
};
|
||||
|
||||
if (sendsms_flag == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!check_format('telephone'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (type == 'captcha2')
|
||||
{
|
||||
alert('邮箱注册暂不可用');
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(data) {
|
||||
if (data.code > 0) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$(".Obtain").attr("disabled", "true");
|
||||
$(".Obtain").html("Sent Again" + curCount + "S");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
sendsms_flag = 0;
|
||||
setTimeout(function() {
|
||||
sendsms_flag = 1;
|
||||
}, 60000);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
register();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#verifyimg").click(function(event) {
|
||||
event.preventDefault();
|
||||
$img = $("#verifyimg");
|
||||
$img.attr("src", "/captcha/authcode.html?t=" + Math.random());
|
||||
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
|
||||
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
|
||||
});
|
||||
</script>
|
||||
176
app/usmobile/view/customer/retrieve_password.phtml
Executable file
176
app/usmobile/view/customer/retrieve_password.phtml
Executable 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">We’ll 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>
|
||||
Reference in New Issue
Block a user