...
|
...
|
@@ -15,10 +15,11 @@ |
|
|
<script src="/static/js/date/Mdate.js"></script>
|
|
|
<style>
|
|
|
/*.box{overflow: hidden; }*/
|
|
|
.btn_agree{
|
|
|
.btn_agree {
|
|
|
margin-bottom: 2rem;
|
|
|
}
|
|
|
.hetong_box{
|
|
|
|
|
|
.hetong_box {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
</style>
|
...
|
...
|
@@ -53,7 +54,8 @@ |
|
|
<b class="icon_tory">*</b>
|
|
|
<div class="info_content">
|
|
|
<i>出生日期:</i>
|
|
|
<input type="text" class="user_birth" id="dateSelectorTwo" placeholder="" value="" data-year="1990" data-month="1" data-day="1" readonly="readonly"/>
|
|
|
<input type="text" class="user_birth" id="dateSelectorTwo" placeholder="" value="" data-year="1990"
|
|
|
data-month="1" data-day="1" readonly="readonly"/>
|
|
|
<em></em>
|
|
|
</div>
|
|
|
</li>
|
...
|
...
|
@@ -114,19 +116,19 @@ |
|
|
.parent().siblings().children('img').attr('src', '/static/image/men_off.png');
|
|
|
}
|
|
|
$(this).addClass('sex_active').siblings().removeClass('sex_active');
|
|
|
|
|
|
$(".user_sex").val($(this).attr("data-sex"));
|
|
|
});
|
|
|
new Mdate("dateShowBtn", {
|
|
|
acceptId: "dateSelectorTwo",
|
|
|
beginYear: "1930",
|
|
|
format: "-"
|
|
|
});
|
|
|
$(".user_shenfen").blur(function(){
|
|
|
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())
|
|
|
$(".user_shenfen").blur(function () {
|
|
|
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())
|
|
|
console.log(shenfen);
|
|
|
if($(".user_shenfen").val()==""){
|
|
|
if ($(".user_shenfen").val() == "") {
|
|
|
layer.msg("身份证为空")
|
|
|
}else if (!shenfen) {
|
|
|
} else if (!shenfen) {
|
|
|
layer.msg("身份证格式不正确")
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -135,7 +137,7 @@ |
|
|
var times = 1;
|
|
|
var validCode = true;
|
|
|
$(".get_code").click(function () {
|
|
|
var phone=$(".user_phone").val();
|
|
|
var phone = $(".user_phone").val();
|
|
|
var user_phone = (/^1[345789]\d{9}$/).test($(".user_phone").val());
|
|
|
console.log(user_phone);
|
|
|
if (!user_phone) {
|
...
|
...
|
|