|
|
|
<!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-cz.css" rel="stylesheet" >
|
|
|
|
<link href="__CSS__/unlr.css" rel="stylesheet" >
|
|
|
|
<script src="__JS__/jquery-1.11.1.min.js"></script>
|
|
|
|
<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__/loginPhone.css">
|
|
|
|
</head>
|
|
|
|
<body class="unlr">
|
|
|
|
<div class="loginPhone">
|
|
|
|
<!-- 子页公共头部 -->
|
|
|
|
<div class="subpage-heard">手机注册
|
|
|
|
<a href="#" class="arrows"></a>
|
|
|
|
</div>
|
|
|
|
<form action="">
|
|
|
|
<div class="login-box">
|
|
|
|
<div class="login-input">
|
|
|
|
<img src="__IMG__/user/nicheng.png" alt="">
|
|
|
|
<input type="text" placeholder="请输入昵称">
|
|
|
|
</div>
|
|
|
|
<div class="login-input">
|
|
|
|
<img src="__IMG__/user/suo.png" alt="">
|
|
|
|
<input type="password" placeholder="请输入密码">
|
|
|
|
</div>
|
|
|
|
<button class="login-btn nextsubmit">下一步</button>
|
|
|
|
<div class="login-agreement">注册即表示同意<a href="{:U('News/protocol')}">《用户协议》</a></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
|
|
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
|
|
<script src="__JS__/common.js"></script>
|
|
|
|
<script>
|
|
|
|
var pmsg = $('.popmsg').pop();
|
|
|
|
$('.nextsubmit').click(function(event) {
|
|
|
|
var mobile = $.trim($('#nickname').val());
|
|
|
|
var code = $.trim($('#password').val());
|
|
|
|
var sex = $.trim($('input[name=sex]:checked').val());
|
|
|
|
var promoteId = parseInt("{:I('get.pid')}") ? parseInt("{:I('get.pid')}") : 0;
|
|
|
|
var gameId = parseInt("{:I('get.gid')}") ? parseInt("{:I('get.gid')}") : 0;
|
|
|
|
if(mobile.length == 0 ){
|
|
|
|
pmsg.msg('昵称不能为空');event.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if(code.length == 0){
|
|
|
|
pmsg.msg('密码不能为空');event.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if(mobile.length > 15 ){
|
|
|
|
pmsg.msg('昵称在15个字符以内');event.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if(code.length < 6 || code.length > 15){
|
|
|
|
pmsg.msg('密码长度6-15个字符');event.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (mobile) {
|
|
|
|
if (code) {
|
|
|
|
$.ajax({
|
|
|
|
type:'POST',
|
|
|
|
url:'{:U("User/step")}',
|
|
|
|
data:{'nickname':mobile,'password':code,'sex':sex,'promote_id':promoteId,'game_id':gameId},
|
|
|
|
dataType:"Json",
|
|
|
|
success:function(data){
|
|
|
|
console.log(data);
|
|
|
|
if(parseInt(data.status) == 1){
|
|
|
|
window.location.href = data.msg;
|
|
|
|
}else{
|
|
|
|
pmsg.msg(data.msg);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error:function(data){
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else{
|
|
|
|
pmsg.msg('请输入密码');event.preventDefault();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
pmsg.msg('请输入昵称');event.preventDefault();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|