why.xingtongworld.com项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

167 lines
7.4 KiB

<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>注册 {$site_name} </title>
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
{include file="public:head" /}
</head>
<body class="body-white">
{include file="public:nav" /}
<div class="wrap">
<link href="__PUBLIC__/ppy/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/ppy/js/fileinput.js" type="text/javascript"></script>
<script src="__PUBLIC__/ppy/js/fileinput_locale_zh.js" type="text/javascript"></script>
<div id="main-cmf">
<div class="content">
<div class="container">
<div class="row register">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 col-lg-offset-4 col-md-offset-4 col-sm-offset-3 col-xs-offset-1 animate_afr register_wrap">
<h2 class="text-center"><i class="fa fa-user"></i> 用户注册</h2>
<div class="widget tabs">
<div id="horizontal-tabs">
<ul class="tabs">
<!--<li id="tab1" class="current">邮箱注册</li>-->
<li id="tab1" style="width:100%;">手机注册</li>
</ul>
<div class="contents">
<!--<div class="tabscontent" id="content1" style="display: block;">
<form class="form-light verify-ajax-form" id="reg" action="{:url('home/Register/runregister')}" method="post">
<div>
<input style="display:none;" type="text" maxlength="16" name="member_list_nickname" placeholder="昵称" class="form-control h28">
</div>
<div>
<input type="text" name="member_list_email" placeholder="邮箱" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="password" placeholder="密码(5-20位)" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="repassword" placeholder="重复密码(5-20位)" class="form-control h28" required>
</div>
<div class="row">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
<input type="text" maxlength="5" class="form-control" placeholder="" id="verify" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
<img class="verify_img" id="verify_img" src="{:url('home/Register/verify')}" onClick="this.src='{:url('home/Register/verify')}'+'?'+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;border-radius: 3px;" title="点击获取">
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">确定注册</button></div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
已有账号? <a href="{:url('home/Login/index')}">点击登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">第三方登录注册</a>
</div>
</div>
</div>
</form>
</div>-->
<div class="tabscontent" id="content1">
<form class="form-horizontal ajax-form-file2" name="form0" method="post" action="{:url('home/Register/businessCard')}">
<input name="file_one" id="file_one" type="file" class="file h28 isjpg" data-show-preview="false" data-show-upload="false" data-show-caption="true" data-allowed-file-extensions='["JPG"]'>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">上传</button>
</form>
<form class="form-light verify-ajax-form" id="reg" action="{:url('home/Register/runregister')}" method="post">
<div>
<input style="display:none;" type="text" maxlength="16" name="member_list_nickname" placeholder="昵称" class="form-control h28">
</div>
<div>
<input type="number" maxlength="11" pattern="^1[3-9]\d{9}$" name="member_list_tel" placeholder="手机号" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="password" placeholder="密码(5-20位)" class="form-control h28" required>
</div>
<div>
<input type="password" maxlength="20" name="repassword" placeholder="重复密码(5-20位)" class="form-control h28" required>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
<input type="text" class="form-control h28" placeholder="6位验证码(120s有效)" id="verify-m" style="height:40px;" name="verify" required>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 nopadding-left">
<span class="btn btn-primary red-btn verify-code">获取验证码</span>
</div>
</div>
<div>
<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12 register-sumit" type="submit" data-wait="1500">确定注册</button>
</div>
<div class="register-forget">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
已有账号? <a href="{:url('home/Login/index')}">点击登录</a>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<a href="{:url('home/Login/index')}">第三方登录注册</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{include file="public:footer"/}
{include file="public:scripts"/}
<script>
$('.verify-code').click(function(){
var account = $("input[name='member_list_tel']"),obj=$(this);
if(!account.val()){
account.focus();return false;
}else if(!(/^1[3456789]\d{9}$/.test(account.val()))){
layer.alert('手机号格式不正确', {icon: 5}, function (index) {
layer.close(index);
account.val('').focus();
});
return false;
}
var url="{:url('home/Register/sendsms')}";
$.ajax({
type:"POST",
url:url,
dataType:"json",
data:{account:account.val()},
beforeSend:function()
{
obj.attr("disabled","disabled");
},
success:function(data)
{
if(data.code==1){
var numts=120;
obj.html("再获取:"+numts);
var codets=setInterval(function(){
numts--;
obj.html("再获取:"+numts);
if(numts==0)
{
obj.html("获取验证码");
clearInterval(codets);
obj.removeAttr("disabled");
}
},1000);
}else{
layer.msg(data.msg,{icon: 5});
obj.removeAttr("disabled");
}
}
});
});
</script>
</body>
</html>