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>
|
||||
Reference in New Issue
Block a user