1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-05 07:27:21 +00:00

fix some bug...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-20 21:05:15 +08:00
parent cdf10d5fed
commit dc534f0e8f
4 changed files with 31 additions and 29 deletions

View File

@ -33,7 +33,8 @@
</head>
<body>
<div class="header">
<a href="<?=Url('index','index')?>"> <img src="View/public/img/logo.png" class="logo" />
<a href="<?=Url('index','index')?>"> <img
src="View/public/img/logo.png" class="logo" />
</a>
</div>
<div class="row-fluid login-wrapper col-xs-12 col-md-12 col-lg-12">
@ -107,25 +108,24 @@ $("#register").click(function(){
$.ajax({ url:"<?=Url('user_public','user_check')?>", type:"GET", data:{user:username.val()}, dataType:"json",
success:function(rdata){
switch(rdata.status){
case "success":
$.ajax({url:"<?=Url('user_public','mail_check')?>", type:"GET", data:{mail:email.val()}, dataType:"json",
success:function(s){
switch(s.status){
case "success":
$.ajax({url:"<?=Url('user_public','mail_check')?>",
type:"GET",
data:{mail:email.val()},
dataType:"json",
success:function(s){
switch(s.status){
case "success":
$.ajax({
type:"POST", data:{user:username.val(), mail:email.val(),pass:pass.val()}, dataType:"json", url:"<?=Url('user_public','register')?>",
type:"POST",
data:{user:username.val(), mail:email.val(),pass:pass.val()},
dataType:"json",
url:"<?=Url('user_public','register')?>",
success:function(C){
switch(C.status){
case "success":
alert(C.info);
location.href = "<?=Url('index','index')?>";
break;
case "error":
alert(A.info);
break;
}
}
})
alert(C.info);
location.href = "<?=Url('index','index')?>";
}
})
break;
case "error":
alert(s.info);
@ -133,15 +133,17 @@ $("#register").click(function(){
}
}
})
break;
case "error":
alert(rdata.info);
return false;
break;
case "error":
alert(rdata.info);
return false;
}
},
error:function(){
alert("注册失败 请检查网络是否通畅!");
}})
}
}
)
})
</script>
</body>