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.

115 lines
4.1 KiB
HTML

5 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" >
5 years ago
<link href="__CSS__/common-cz.css" rel="stylesheet" >
5 years ago
<link href="__CSS__/unlr.css" rel="stylesheet" >
<script src="__JS__/jquery-1.11.1.min.js"></script>
5 years ago
<script type="text/javascript" src="__JS__/getRem.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/foot_tabbar.css">
<link rel="stylesheet" type="text/css" href="__CSS__/loginPhTwo.css">
5 years ago
</head>
<body class="unlr">
5 years ago
<div class="loginPhTwo">
<!-- 子页公共头部 -->
<div class="subpage-heard">手机注册
<a href="javascript:window.history.go(-1);" class="arrows"></a>
</div>
<div class="login-box">
<div class="login-input">
<img src="__IMG__/user/shouji.png" alt="">
<input type="text" id="mobile" placeholder="请输入手机号">
5 years ago
</div>
5 years ago
<div class="login-code">
<input id="code" type="text" placeholder="输入验证码">
<div class="jsgetcode">获取验证码</div>
5 years ago
</div>
5 years ago
<button class="login-btn submit">注册</button>
</div>
</div>
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
5 years ago
<script src="__JS__/pop.lwx.min.js"></script>
<script src="__JS__/common.js"></script>
<script>
5 years ago
var pmsg = $('.popmsg').pop();
5 years ago
$(function() {
$(".clearStr").click(function(){
$("#mobile").val('');
})
$('.jsgetcode').click(function() {
var tis = this,that = $(tis);
if (that.hasClass('disabled')) {return false;}
var mobile = $.trim($('#mobile').val());
if (mobile) {
if (/^1[0-9]{10}$/.test(mobile)) {
$.ajax({
type:'POST',
url:'{:U("sendsafecode")}',
data:{'phone':mobile},
async: false,
dataType:"Json",
success:function(data){
if(parseInt(data.status) == 1){
pmsg.msg('我们已经发送验证码到你的手机<br/>'+mobile,3000);
clock(tis);
}else{
pmsg.msg(data.msg);
return false;
}
}
});
} else {
pmsg.msg('请输入正确的手机号码');
}
} else {
pmsg.msg('请输入手机号码');
}
return false;
});
});
$('.submit').click(function(event) {
var mobile = $.trim($('#mobile').val());
var code = $.trim($('#code').val());
if (mobile) {
if (code) {
$.ajax({
type:'POST',
url:'{:U("register")}',
data:{'phone':mobile,'code':code},
dataType:"Json",
success:function(data){
if(data.status == 1){
pmsg.msg(data.msg);
window.location.href = data.url;
}else{
pmsg.msg(data.msg);
return false;
}
}
});
return false;
} else{
pmsg.msg('请输入验证码');event.preventDefault();
}
} else {
pmsg.msg('请输入手机号码');event.preventDefault();
}
});
</script>
</body>
</html>