|
@@ -69,10 +69,10 @@
|
|
<form action="${ctxPath}/system/cms/signUp/BmApp" method="post" onsubmit="return validateForm();">
|
|
<form action="${ctxPath}/system/cms/signUp/BmApp" method="post" onsubmit="return validateForm();">
|
|
<div class="bm_dialog_con">
|
|
<div class="bm_dialog_con">
|
|
<div class="bm_form">
|
|
<div class="bm_form">
|
|
- <label><span>姓名</span><input type="text" id="study_name"></label>
|
|
|
|
- <label><span>电话</span><input type="text" id="study_ph"></label>
|
|
|
|
- <label><span>身份证号</span><input type="text" id="study_sfz"></label>
|
|
|
|
- <label><span>学历</span><input type="text" id="study_eb"></label>
|
|
|
|
|
|
+ <label><span>姓名</span><input type="text" id="study_name" maxlength="10"></label>
|
|
|
|
+ <label><span>电话</span><input type="text" id="study_ph" maxlength="11"></label>
|
|
|
|
+ <label><span>身份证号</span><input type="text" id="study_sfz" maxlength="20"></label>
|
|
|
|
+ <label><span>学历</span><input type="text" id="study_eb" maxlength="5"></label>
|
|
<button class="study_btn">提交</button>
|
|
<button class="study_btn">提交</button>
|
|
</div>
|
|
</div>
|
|
<div class="bm_tel">
|
|
<div class="bm_tel">
|
|
@@ -108,9 +108,14 @@
|
|
var study_sfz = document.getElementById('study_sfz').value;
|
|
var study_sfz = document.getElementById('study_sfz').value;
|
|
var study_eb = document.getElementById('study_eb').value;
|
|
var study_eb = document.getElementById('study_eb').value;
|
|
|
|
|
|
- // 验证姓名和联系电话至少有一个有值
|
|
|
|
- if (study_name.trim() === '' && study_ph.trim() === '') {
|
|
|
|
- layer.msg('姓名与联系电话至少填写一个!');
|
|
|
|
|
|
+ // 验证姓名是否为空
|
|
|
|
+ if (study_name.trim() === '') {
|
|
|
|
+ layer.msg('姓名为必填项!');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // 验证电话是否为空
|
|
|
|
+ if (study_ph.trim() === '') {
|
|
|
|
+ layer.msg('电话为必填项!');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
// 验证手机号
|
|
// 验证手机号
|