|
@@ -9,38 +9,38 @@ $(function () {
|
|
|
return;
|
|
|
}
|
|
|
console.log({
|
|
|
- username: username,
|
|
|
- password: password,
|
|
|
- nickname: nickname,
|
|
|
- sex: $("input[name='sex']").filter(":checked").val(),
|
|
|
- idcard: $("input[name='idcard']").val(),
|
|
|
- age: $("input[name='age']").val(),
|
|
|
- height: $("input[name='height']").val(),
|
|
|
- weight: $("input[name='weight']").val(),
|
|
|
- eduBg: $("select[name='eduBg']").val(),
|
|
|
- auth: $("input[name='auth']").val(),
|
|
|
- plan: $("select[name='plan']").val(),
|
|
|
- post: $("input[name='post']").val(),
|
|
|
- isPost: $("input[name='isPost']").filter(":checked").val(),
|
|
|
- city: $("select[name='city']").val()
|
|
|
+ "username": username,
|
|
|
+ "password": password,
|
|
|
+ "nickname": nickname,
|
|
|
+ "sex": $("input[name='sex']").filter(":checked").val(),
|
|
|
+ "idcard": $("input[name='idcard']").val(),
|
|
|
+ "age": $("input[name='age']").val(),
|
|
|
+ "height": $("input[name='height']").val(),
|
|
|
+ "weight": $("input[name='weight']").val(),
|
|
|
+ "eduBg": $("select[name='eduBg']").val(),
|
|
|
+ "auth": $("input[name='auth']").val(),
|
|
|
+ "plan": $("select[name='plan']").val(),
|
|
|
+ "post": $("input[name='post']").val(),
|
|
|
+ "isPost": $("input[name='isPost']").filter(":checked").val(),
|
|
|
+ "city": $("select[name='city']").val()
|
|
|
});
|
|
|
show_loading();
|
|
|
// ajax提交表单,#login_form为表单的ID。如:$('#login_form').ajaxSubmit(function(data)
|
|
|
$.post("/register", {
|
|
|
- username: username,
|
|
|
- password: password,
|
|
|
- nickname: nickname,
|
|
|
- sex: $("input[name='sex']").val(),
|
|
|
- idcard: $("input[name='idcard']").val(),
|
|
|
- age: $("input[name='age']").val(),
|
|
|
- height: $("input[name='height']").val(),
|
|
|
- weight: $("input[name='weight']").val(),
|
|
|
- eduBg: $("input[name='eduBg']").val(),
|
|
|
- auth: $("input[name='auth']").val(),
|
|
|
- plan: $("input[name='plan']").val(),
|
|
|
- post: $("input[name='post']").val(),
|
|
|
- isPost: $("input[name='isPost']").val(),
|
|
|
- city: $("input[name='city']").val()
|
|
|
+ "username": username,
|
|
|
+ "password": password,
|
|
|
+ "nickname": nickname,
|
|
|
+ "sex": $("input[name='sex']").filter(":checked").val(),
|
|
|
+ "idcard": $("input[name='idcard']").val(),
|
|
|
+ "age": $("input[name='age']").val(),
|
|
|
+ "height": $("input[name='height']").val(),
|
|
|
+ "weight": $("input[name='weight']").val(),
|
|
|
+ "eduBg": $("select[name='eduBg']").val(),
|
|
|
+ "auth": $("input[name='auth']").val(),
|
|
|
+ "plan": $("select[name='plan']").val(),
|
|
|
+ "post": $("input[name='post']").val(),
|
|
|
+ "isPost": $("input[name='isPost']").filter(":checked").val(),
|
|
|
+ "city": $("select[name='city']").val()
|
|
|
}, function (data) {
|
|
|
var obj = eval(data);
|
|
|
if (obj.statusCode == 200) {
|