...
|
...
|
@@ -296,7 +296,7 @@ |
|
|
店铺名称
|
|
|
</label>
|
|
|
<div class="col-sm-11">
|
|
|
<input type="text" class="form-control" id="shopName" placeholder="请填写店铺名称">
|
|
|
<input type="text" class="form-control" id="shopName" placeholder="请填写店铺名称" onblur="testUserName()">
|
|
|
<span id="shopNameTips" class="tipsInfo"></span>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -306,7 +306,7 @@ |
|
|
公司名称
|
|
|
</label>
|
|
|
<div class="col-sm-11">
|
|
|
<input type="text" class="form-control" id="companyName" placeholder="请填写公司名称">
|
|
|
<input type="text" class="form-control" id="companyName" placeholder="请填写公司名称" onblur="testComName()">
|
|
|
<span id="companyNameTips" class="tipsInfo"></span>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -340,7 +340,7 @@ |
|
|
经营详细地址
|
|
|
</label>
|
|
|
<div class="col-sm-11">
|
|
|
<input type="text" class="form-control" id="address" placeholder="请填写经营详细地址" autocomplete="off">
|
|
|
<input type="text" class="form-control" id="address" placeholder="请填写经营详细地址" autocomplete="off" onblur="testAddress()">
|
|
|
<span id="shopAddressTips" class="tipsInfo"></span>
|
|
|
</div>
|
|
|
<ul class="search_keyword">
|
...
|
...
|
@@ -390,7 +390,7 @@ |
|
|
企业联系人
|
|
|
</label>
|
|
|
<div class="col-sm-11">
|
|
|
<input type="text" class="form-control" id="companyContacts" placeholder="请填写企业联系人">
|
|
|
<input type="text" class="form-control" id="companyContacts" placeholder="请填写企业联系人" onblur="testCompanyContacts()">
|
|
|
<span id="companyContactsTips" class="tipsInfo"></span>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -401,7 +401,7 @@ |
|
|
联系电话
|
|
|
</label>
|
|
|
<div class="col-sm-11">
|
|
|
<input type="text" class="form-control" id="phoneNum" placeholder="请填写联系电话">
|
|
|
<input type="text" class="form-control" id="phoneNum" placeholder="请填写联系电话" onblur="testPhoneNum()">
|
|
|
<span id="phoneNumTips" class="tipsInfo"></span>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -436,7 +436,7 @@ |
|
|
<div class="form-group agreementBox">
|
|
|
<div class="col-sm-12">
|
|
|
<img id="radio" src="__CDN__/assets/store/images/radioUnSelect.png" alt="radio" onclick="changeRadioState()">
|
|
|
<p>我已阅读并同意<a href="javascript:void(0)" onclick="supplierAgreement()">《供应商入驻协议》</a></p>
|
|
|
<p>我已阅读并同意<a href="javascript:void(0)" onclick="supplierAgreement()">《供应商入驻协议》</a><span id="checkboxTips" style="position: inherit;" class="tipsInfo"></span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -710,6 +710,72 @@ |
|
|
var radioFlag = false;//同意入驻协议标识
|
|
|
var idCardImgFileArr = [];
|
|
|
|
|
|
//校验店铺名称
|
|
|
function testUserName() {
|
|
|
var contactsName = $('#shopName').val();
|
|
|
if(contactsName.trim() == ''){
|
|
|
$('#shopNameTips').html('请填写店铺名称');
|
|
|
return false;
|
|
|
}
|
|
|
$('#shopNameTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验公司名称
|
|
|
function testComName() {
|
|
|
var contactsName = $('#companyName').val();
|
|
|
if(contactsName.trim() == ''){
|
|
|
$('#companyNameTips').html('请填写公司名称');
|
|
|
return false;
|
|
|
}
|
|
|
$('#companyNameTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验三证合一照片
|
|
|
function testIDCardPhoto() {
|
|
|
if(idCardImgFileArr.length == 0){
|
|
|
$('#licensePhotoTips').html('请上传三证合一照片');
|
|
|
return false;
|
|
|
}
|
|
|
$('#licensePhotoTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验经营详细地址
|
|
|
function testAddress() {
|
|
|
var address = $('#address').val();
|
|
|
if(address.trim() == ''){
|
|
|
$('#shopAddressTips').html('请填写经营详细地址');
|
|
|
return false;
|
|
|
}
|
|
|
$('#shopAddressTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验企业联系人姓名
|
|
|
function testCompanyContacts() {
|
|
|
var contactsName = $('#companyContacts').val();
|
|
|
if(contactsName.trim() == ''){
|
|
|
$('#companyContactsTips').html('请填写企业联系人');
|
|
|
return false;
|
|
|
}
|
|
|
$('#companyContactsTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验手机号
|
|
|
function testPhoneNum() {
|
|
|
var reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
|
|
|
var phoneNum = $('#phoneNum').val();
|
|
|
if(!reg.test(phoneNum)){
|
|
|
$('#phoneNumTips').html('请填写正确的联系电话');
|
|
|
return false;
|
|
|
}
|
|
|
$('#phoneNumTips').html('');
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//校验三证合一照片
|
|
|
function testIDCardPhoto() {
|
|
|
if(idCardImgFileArr.length == 0){
|
...
|
...
|
@@ -720,6 +786,14 @@ |
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function testRadioFlag(){
|
|
|
if(radioFlag == false){
|
|
|
$('#checkboxTips').html('请确认用户协议');
|
|
|
return false;
|
|
|
}
|
|
|
$('#checkboxTips').html('');
|
|
|
}
|
|
|
|
|
|
//供应商入驻协议
|
|
|
function supplierAgreement() {
|
|
|
$('#agreementModal').modal();
|
...
|
...
|
@@ -727,6 +801,12 @@ |
|
|
|
|
|
//申请入驻
|
|
|
function applySettledIn() {
|
|
|
testUserName();
|
|
|
testComName();
|
|
|
testAddress();
|
|
|
testCompanyContacts();
|
|
|
testPhoneNum();
|
|
|
testRadioFlag();
|
|
|
var idCardBox_length = $('#idCardBox').parent().prev().find('.imagesItem').length;
|
|
|
console.log(idCardBox_length);
|
|
|
var name = $('#shopName').val();//店铺名称
|
...
|
...
|
|