Commit bc0f20e8 authored by 刘丹's avatar 刘丹

注册2

parent 6d025fbc
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
</span> </span>
</a> </a>
</div> </div>
<div class="div-conform"> <div class="div-conform" onclick="sends.conform();">
<a class="conform" onclick="sends.conform();">提交</a> <a class="conform" >提交</a>
</div> </div>
</ul> </ul>
</div> </div>
......
...@@ -96,14 +96,14 @@ var sends = { ...@@ -96,14 +96,14 @@ var sends = {
alert("请输入您的手机号!"); alert("请输入您的手机号!");
return; return;
} }
if("" == $("#password").val()) {
alert("请输入您的密码!");
return;
}
if("" == $("#ranks").val()) { if("" == $("#ranks").val()) {
alert("请输入您的验证码!"); alert("请输入您的验证码!");
return; return;
} }
if("" == $("#password").val()) {
alert("请输入您的密码!");
return;
}
if(zc=="/app/images/but_yuedu_nor.png") if(zc=="/app/images/but_yuedu_nor.png")
{ {
...@@ -126,7 +126,7 @@ var sends = { ...@@ -126,7 +126,7 @@ var sends = {
dataType: "json", dataType: "json",
beforeSend: function () {}, beforeSend: function () {},
success: function (response) { success: function (response) {
if (response.status == 0) { if (response.code == 200) {
//成功跳转 //成功跳转
$("input").val(''); $("input").val('');
$(".conform").html("提交."); $(".conform").html("提交.");
...@@ -135,10 +135,11 @@ var sends = { ...@@ -135,10 +135,11 @@ var sends = {
} else { } else {
alert(response.msg); alert(response.msg);
$(".conform").html("提交");
} }
}, },
error: function () { error: function () {
$(".conform").html("提交."); $(".conform").html("提交");
$('.div-').append('<span class="error">提交失败!</span>'); $('.div-').append('<span class="error">提交失败!</span>');
} }
}); });
......
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