正在显示
1 个修改的文件
包含
11 行增加
和
9 行删除
@@ -15,10 +15,11 @@ | @@ -15,10 +15,11 @@ | ||
15 | <script src="/static/js/date/Mdate.js"></script> | 15 | <script src="/static/js/date/Mdate.js"></script> |
16 | <style> | 16 | <style> |
17 | /*.box{overflow: hidden; }*/ | 17 | /*.box{overflow: hidden; }*/ |
18 | - .btn_agree{ | 18 | + .btn_agree { |
19 | margin-bottom: 2rem; | 19 | margin-bottom: 2rem; |
20 | } | 20 | } |
21 | - .hetong_box{ | 21 | + |
22 | + .hetong_box { | ||
22 | overflow: auto; | 23 | overflow: auto; |
23 | } | 24 | } |
24 | </style> | 25 | </style> |
@@ -53,7 +54,8 @@ | @@ -53,7 +54,8 @@ | ||
53 | <b class="icon_tory">*</b> | 54 | <b class="icon_tory">*</b> |
54 | <div class="info_content"> | 55 | <div class="info_content"> |
55 | <i>出生日期:</i> | 56 | <i>出生日期:</i> |
56 | - <input type="text" class="user_birth" id="dateSelectorTwo" placeholder="" value="" data-year="1990" data-month="1" data-day="1" readonly="readonly"/> | 57 | + <input type="text" class="user_birth" id="dateSelectorTwo" placeholder="" value="" data-year="1990" |
58 | + data-month="1" data-day="1" readonly="readonly"/> | ||
57 | <em></em> | 59 | <em></em> |
58 | </div> | 60 | </div> |
59 | </li> | 61 | </li> |
@@ -114,19 +116,19 @@ | @@ -114,19 +116,19 @@ | ||
114 | .parent().siblings().children('img').attr('src', '/static/image/men_off.png'); | 116 | .parent().siblings().children('img').attr('src', '/static/image/men_off.png'); |
115 | } | 117 | } |
116 | $(this).addClass('sex_active').siblings().removeClass('sex_active'); | 118 | $(this).addClass('sex_active').siblings().removeClass('sex_active'); |
117 | - | 119 | + $(".user_sex").val($(this).attr("data-sex")); |
118 | }); | 120 | }); |
119 | new Mdate("dateShowBtn", { | 121 | new Mdate("dateShowBtn", { |
120 | acceptId: "dateSelectorTwo", | 122 | acceptId: "dateSelectorTwo", |
121 | beginYear: "1930", | 123 | beginYear: "1930", |
122 | format: "-" | 124 | format: "-" |
123 | }); | 125 | }); |
124 | - $(".user_shenfen").blur(function(){ | ||
125 | - var shenfen=(/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|[x|X])$/).test($(".user_shenfen").val()) | 126 | + $(".user_shenfen").blur(function () { |
127 | + var shenfen = (/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|[x|X])$/).test($(".user_shenfen").val()) | ||
126 | console.log(shenfen); | 128 | console.log(shenfen); |
127 | - if($(".user_shenfen").val()==""){ | 129 | + if ($(".user_shenfen").val() == "") { |
128 | layer.msg("身份证为空") | 130 | layer.msg("身份证为空") |
129 | - }else if (!shenfen) { | 131 | + } else if (!shenfen) { |
130 | layer.msg("身份证格式不正确") | 132 | layer.msg("身份证格式不正确") |
131 | } | 133 | } |
132 | }); | 134 | }); |
@@ -135,7 +137,7 @@ | @@ -135,7 +137,7 @@ | ||
135 | var times = 1; | 137 | var times = 1; |
136 | var validCode = true; | 138 | var validCode = true; |
137 | $(".get_code").click(function () { | 139 | $(".get_code").click(function () { |
138 | - var phone=$(".user_phone").val(); | 140 | + var phone = $(".user_phone").val(); |
139 | var user_phone = (/^1[345789]\d{9}$/).test($(".user_phone").val()); | 141 | var user_phone = (/^1[345789]\d{9}$/).test($(".user_phone").val()); |
140 | console.log(user_phone); | 142 | console.log(user_phone); |
141 | if (!user_phone) { | 143 | if (!user_phone) { |
-
请 注册 或 登录 后发表评论