Commit f9fb6dfa authored by 刘丹's avatar 刘丹

注册

parent dbc886a6
......@@ -34,6 +34,10 @@ class Index
{
return view('index/agent_detail');
}
public function agreement()
{
return view('index/agreement');
}
public function more_pingjia()
{
return view('index/more_pingjia');
......
This diff is collapsed.
......@@ -23,17 +23,17 @@
</li>
<li class="div-ranks">
<input type="number" id="ranks" class="infos1" placeholder="请输入验证码">
<a href="javascript:;" class="send1" onclick="sends.send();">获取验证码</a>
<a class="send1" onclick="sends.send();">获取验证码</a>
</li>
<li>
<span class="register-span">
密码
</span>
<input type="password" id="password" class="infos" placeholder="6-20位数字字母">
<input type="password" id="password" class="infos" placeholder="6-20位数字字母">
</li>
<div class="register-div">
<img class="zc_nor_button" src="/app/images/but_yuedu-.png">
<a>
<a href="agreement.html">
我已阅读
<span>
《同联商业服务协议》
......
......@@ -17,6 +17,7 @@ Route::group('app', [
'more_chengjiao' => [ 'app/index/more_chengjiao', [ 'method' => 'get' ] ],
'share_detail' => [ 'app/index/share_detail', [ 'method' => 'get' ] ],
'share_register' => [ 'app/index/share_register', [ 'method' => 'get' ] ],
'agreement' => [ 'app/index/agreement', [ 'method' => 'get' ] ],
'getShopDetails' => [ 'app/index/getShopDetail', [ 'method' => 'get | post' ] ],
]);
......@@ -50,7 +51,7 @@ Route::group('index', [
//login
'login' => ['index/login/login',['method'=>'get']],
'loginVerify' => ['index/login/loginVerify',['method'=>'post|get']],
'logout' =>['index/login/logout',['method'=>'get']], //退出
//watchshop 预约看铺
'watch_shop' => ['index/WatchShop/index',['method'=>'get']],
'get_watch' => ['index/WatchShop/getList',['method'=>'get']],
......@@ -61,9 +62,6 @@ Route::group('index', [
//版本管理
'version' => ['index/version/index',['method'=>'get']],
'getVersionNo' => ['index/version/getVersionNo',['method'=>'post']],
'getVersionList' => ['index/version/getVersionList',['method'=>'post']],
'addVersion' => ['index/version/addVersion',['method'=>'post']],
]);
......@@ -119,12 +117,6 @@ Route::group('api', [
'addSublet' => [ 'api/Sublet/addSublet', [ 'method' => 'post|get' ] ],
//Version
'getVersionNo' => [ 'api/Version/getVersionNo', [ 'method' => 'post' ] ],
]);
//Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
.agree{
width: 92%;
height: auto;
margin: 0 auto;
}
.agree-p{
color: #333333;
font-size: 0.3rem;
font-weight: 400;
float: left;
width: 100%;
margin-top: 0.5rem;
}
.agree-p1{
font-size: 0.24rem;
color: #666666;
float: left;
width: 100%;
margin-top: 0.16rem;
text-indent: 0.24rem;
line-height: 0.4rem;
}
#regi{
background: #FFFFFF;
}
.agree-p2{
padding-bottom: 0.5rem;
}
\ No newline at end of file
......@@ -65,14 +65,14 @@ input::-webkit-input-placeholder{
}
.send1{
font-size: 0.26rem;
color: #cccccc;
color: #ff9419;
text-align: right;
float: right;
line-height: 1rem;
}
.send0{
font-size: 0.26rem;
color: #ff9419;
color: #cccccc;
text-align: right;
float: right;
line-height: 1rem;
......@@ -117,4 +117,8 @@ input::-webkit-input-placeholder{
.div-conform a{
color: #FFFFFF;
}
#btn{
background: none;
border: none;
color: #cccccc;
}
......@@ -16,7 +16,7 @@ function getUrlStringParam(str, name) {
//手机号码格式正则验证 by xishifeng
function is_mobile(text) {
/^1[34578]\d{9}$/.test(text)?1:0;
return /^1[34578]\d{9}$/.test(text)?1:0;
}
//device判断设备是安卓还是苹果 by xishfieng 2017.04.26
......
......@@ -16,6 +16,7 @@
})();
var sends = {
checked:1,
send:function(){
......@@ -23,10 +24,15 @@ var sends = {
var val = $('#phone').val().replace(/\s+/g,""); //获取输入手机号码
if($('.div-phone').find('span').length == 0 && $('.div-ranks a').attr('class') == 'send1'){
if(!numbers.test(val) || val.length ==0){
$('.div-').append('<span class="error">手机格式错误!</span>');
$('.div-phone').append('<span class="error">手机格式错误!</span>');
return false;
}
}
if (!is_mobile(val)) {
alert("手机格式错误!")
return false;
}
if(numbers.test(val)){
$.ajax({
url: ServerHost+"/api/sendSms/"+val,
......@@ -46,17 +52,18 @@ var sends = {
}
});
var time = 60;
//$('.div-phone span').remove();
if(!sends.checked)return;
function timeCountDown(){
if(time==0){
$(".send0").attr("disabled","");
clearInterval(timer);
$('.div-ranks a').addClass('send1').removeClass('send0').html("获取验证码");
sends.checked = 1;
return true;
}
$('.error').hide();
$('.div-ranks a').html("剩余"+time+"S");
time--;
return false;
sends.checked = 0;
}
$('.div-ranks a').addClass('send0').removeClass('send1');
......@@ -66,6 +73,7 @@ var sends = {
},
conform:function(){
var zc=$(".zc_nor_button").attr("src");
if("" == $("#phone").val()) {
alert("请输入您的手机号!");
return;
......@@ -78,6 +86,12 @@ var sends = {
alert("请输入您的验证码!");
return;
}
if(zc=="/app/images/but_yuedu_nor.png")
{
alert("请勾选协议!");
return;
}
$(".conform").html("提交中...");
$.ajax({
url: ServerHost+"/api/register",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment