121 lines
4.2 KiB
HTML
121 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
|
<meta name="wap-font-scale" content="no">
|
|
<meta name="full-screen" content="yes">
|
|
<meta name="x5-fullscreen" content="true">
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta http-equiv="Access-Control-Allow-Origin" content="*">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<meta name="format-detection" content="telephone=no, email=no" />
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="HandheldFriendly" content="true">
|
|
<meta name="MobileOptimized" content="320">
|
|
<meta name="screen-orientation" content="portrait">
|
|
<meta name="x5-orientation" content="portrait">
|
|
<meta name="browsermode" content="application">
|
|
<meta name="x5-page-mode" content="app">
|
|
<meta name="msapplication-tap-highlight" content="no">
|
|
<title>注册</title>
|
|
<!-- <link rel="shortcut icon" href="{$Think.ADMIN_STATIC_DOMAIN}/static/wp.ico" type="image/x-icon" /> -->
|
|
<link rel="stylesheet" type="text/css" href="/static/wapchip/css/global.css{$Think.VERSION_V}">
|
|
<link rel="stylesheet" type="text/css" href="/static/wapchip/css/public.css{$Think.VERSION_V}">
|
|
<script type="text/javascript" src="/static/wapchip/js/jquery-2.1.0.min.js"></script>
|
|
<script type="text/javascript" src="/static/wapchip/js/public.js{$Think.VERSION_V}"></script>
|
|
<script type="text/javascript">
|
|
var lang = {$lang};
|
|
</script>
|
|
<style type="text/css">
|
|
.register .login-btn{margin-top:0.2rem;}
|
|
</style>
|
|
</head>
|
|
<body class="register">
|
|
<div class="title">
|
|
<img class="logo" src="/static/agent/images/hc-logo-1.png">
|
|
</div>
|
|
<div class="input-box">
|
|
<i class="icon-img user"></i>
|
|
<input type="text" id="account" placeholder="请输入账号" autocomplete="off">
|
|
</div>
|
|
<div class="input-box">
|
|
<i class="icon-img password"></i>
|
|
<input type="password" id="pass" placeholder="请输入密码" autocomplete="off">
|
|
</div>
|
|
<div class="input-box">
|
|
<i class="icon-img password"></i>
|
|
<input type="password" id="repass" placeholder="再次入密码" autocomplete="off">
|
|
</div>
|
|
<div class="input-box">
|
|
<i class="icon-img password"></i>
|
|
<input type="text" id="mobile" placeholder="手机号码" autocomplete="off">
|
|
</div>
|
|
<div class="input-box">
|
|
<i class="icon-img password"></i>
|
|
<input type="text" id="agent" value="{$agent.username}" readonly>
|
|
</div>
|
|
<button class="login-btn" id="doregister">注 册</button>
|
|
<button class="login-btn"><a href="{$loginUrl}">去登陆</a></button>
|
|
<script type="text/javascript">
|
|
$(function (){
|
|
$('#doregister').click(function (){
|
|
var username = $('#account').val();
|
|
var pass = $('#pass').val()
|
|
var repass = $('#repass').val();
|
|
var mobile = $('#mobile').val();
|
|
var agent = $('#agent').val();
|
|
|
|
if(username == undefined || username.length <= 0){
|
|
alert_box('请输入账号');
|
|
return false;
|
|
}
|
|
if(pass == undefined || pass.length < 6){
|
|
alert_box('密码不能小于6个字符');
|
|
return false;
|
|
}
|
|
if(pass != repass){
|
|
alert_box('两次输入密码不一致');
|
|
return false;
|
|
}
|
|
|
|
var query = new Object();
|
|
query.username = username;
|
|
query.pass = pass;
|
|
query.repass = repass;
|
|
query.mobile = mobile;
|
|
query.agent = agent;
|
|
|
|
|
|
$.ajax({
|
|
url:'/login/doRegister',
|
|
data:query,
|
|
dataType:"json",
|
|
type:"POST",
|
|
success:function(data){
|
|
if(data.code == 1){
|
|
alert_box(data.msg);
|
|
setTimeout(function(){
|
|
window.location.href = data.url;
|
|
},1000)
|
|
}else{
|
|
alert_box(data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|