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.
125 lines
4.6 KiB
HTML
125 lines
4.6 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" >
|
||
|
<link href="__CSS__/common.css" rel="stylesheet" >
|
||
|
<link href="__CSS__/unlr.css" rel="stylesheet" >
|
||
|
<script src="__JS__/jquery-1.11.1.min.js"></script>
|
||
|
|
||
|
</head>
|
||
|
<body class="unlr">
|
||
|
<header class="header forget-header">
|
||
|
<div class="">
|
||
|
<a href="{:U('login')}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
||
|
<h1 class="caption">注册</h1>
|
||
|
</div>
|
||
|
</header>
|
||
|
<div class="occupy"></div>
|
||
|
<section class="trunker">
|
||
|
<section class="container">
|
||
|
<div class="t-form register-form">
|
||
|
<form class="register-box">
|
||
|
<div class="form-group clearfix">
|
||
|
<div class="input-group clearfix">
|
||
|
<p class="input-mark"><span class="category">国家/地区</span><span class="country">中国</span></p>
|
||
|
</div>
|
||
|
|
||
|
<div class="input-group zonebox clearfix">
|
||
|
<span class="zone span-flex">+86</span>
|
||
|
<span class="input-fix input-suffix"><i class="iconfont icon-error clearStr"></i></span>
|
||
|
<input type="text" name="" class="txt" id="mobile" placeholder="请输入手机号">
|
||
|
</div>
|
||
|
<div class="input-group zonebox clearfix">
|
||
|
<span class="zone span-flex"><a href="javascript:;" class="getcode2 jsgetcode">获取验证码</a></span>
|
||
|
<input type="text" name="" id="code" class="txt" placeholder="请输入验证码">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="btn-group">
|
||
|
<input type="submit" class="submit" value="注册">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</section>
|
||
|
</section>
|
||
|
<div class="popmsg pop-dialog"></div>
|
||
|
<script src="__JS__/pop.lwx.min.js"></script>
|
||
|
<script src="__JS__/common.js"></script>
|
||
|
<script>
|
||
|
var pmsg = $('.popmsg').pop();
|
||
|
$(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>
|