|
@@ -17,6 +17,7 @@ Register.enterpriseUserRegister = function () {
|
|
var street = $("#street").val();
|
|
var street = $("#street").val();
|
|
var address = $("#address").val();
|
|
var address = $("#address").val();
|
|
var type = $("#type").val();
|
|
var type = $("#type").val();
|
|
|
|
+ var agencyType = $("#agencyType").val();
|
|
var special = $("#special").val();
|
|
var special = $("#special").val();
|
|
var agentEmail = $("#agentEmail").val();
|
|
var agentEmail = $("#agentEmail").val();
|
|
var ephone = $("#ephone").val();
|
|
var ephone = $("#ephone").val();
|
|
@@ -101,29 +102,37 @@ Register.enterpriseUserRegister = function () {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (special == 0 && type == 1) {
|
|
if (special == 0 && type == 1) {
|
|
|
|
+ if (agencyType == null || agencyType == '') {
|
|
|
|
+ Feng.info("请选择机构类型");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
var industryFieldNew = $("#industryFieldNew").val();
|
|
var industryFieldNew = $("#industryFieldNew").val();
|
|
var industryFieldOld = $("#industryFieldOld").val();
|
|
var industryFieldOld = $("#industryFieldOld").val();
|
|
- var domainImg = $("#domainImg").val();
|
|
|
|
var enterpriseTag = $("#enterpriseTag").val();
|
|
var enterpriseTag = $("#enterpriseTag").val();
|
|
var enterpriseType = $("#enterpriseType").val();
|
|
var enterpriseType = $("#enterpriseType").val();
|
|
|
|
|
|
|
|
+ switch (agencyType) {
|
|
|
|
+ case "1":
|
|
|
|
+ if (industryFieldNew == null || industryFieldNew == '') {
|
|
|
|
+ Feng.info("请选择产业领域");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (industryFieldOld == null || industryFieldOld == '') {
|
|
|
|
+ Feng.info("请选择行业领域");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case "2":
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
if (enterpriseTag == null || enterpriseTag == '') {
|
|
if (enterpriseTag == null || enterpriseTag == '') {
|
|
Feng.info("请选择企业标签!");
|
|
Feng.info("请选择企业标签!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (industryFieldNew == null || industryFieldNew == '') {
|
|
|
|
- Feng.info("请选择产业领域");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (industryFieldOld == null || industryFieldOld == '') {
|
|
|
|
- Feng.info("请选择行业领域");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
if (enterpriseType == null || enterpriseType == '') {
|
|
if (enterpriseType == null || enterpriseType == '') {
|
|
Feng.info("请选择企业类型!");
|
|
Feng.info("请选择企业类型!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(ephone)) {
|
|
if (!/(^(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})))$/.test(ephone)) {
|
|
Feng.info("单位电话格式不合法!");
|
|
Feng.info("单位电话格式不合法!");
|
|
@@ -169,9 +178,30 @@ Register.epCallBack = function (data) {
|
|
Register.typeChange = function () {
|
|
Register.typeChange = function () {
|
|
var type = $("#type").val();
|
|
var type = $("#type").val();
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
- $("#typeGroup").attr("style", "display:block");
|
|
|
|
|
|
+ $(".agencyType").attr("style", "display:block");
|
|
} else {
|
|
} else {
|
|
- $("#typeGroup").attr("style", "display:none");
|
|
|
|
|
|
+ $(".agencyType").attr("style", "display:none");
|
|
|
|
+ $("#enterpriseTag,#industryFieldNew,#industryFieldOld,#enterpriseType").val("");
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+Register.agencyTypeChange = function () {
|
|
|
|
+ var agencyType = $("#agencyType").val();
|
|
|
|
+ switch (agencyType) {
|
|
|
|
+ case "1":
|
|
|
|
+ $("#typeGroup").attr("style", "display:block");
|
|
|
|
+ $(".agencyType1").attr("style", "");
|
|
|
|
+ $(".agencyType2").attr("style", "");
|
|
|
|
+ break;
|
|
|
|
+ case "2":
|
|
|
|
+ $("#typeGroup").attr("style", "display:block");
|
|
|
|
+ $(".agencyType1").attr("style", "display:none");
|
|
|
|
+ $(".agencyType2").attr("style", "");
|
|
|
|
+ $("#industryFieldNew").val("");
|
|
|
|
+ $("#industryFieldOld").val("");
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ $("#typeGroup").attr("style", "display:none");
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Register.industryChange = function () {
|
|
Register.industryChange = function () {
|
|
@@ -206,7 +236,8 @@ $(function () {
|
|
{"name": "enterpriseTag", "code": "enterprise_tag"},
|
|
{"name": "enterpriseTag", "code": "enterprise_tag"},
|
|
{"name": "enterpriseType", "code": "enterprise_type"},
|
|
{"name": "enterpriseType", "code": "enterprise_type"},
|
|
{"name": "industryFieldNew", "code": "industry_field"},
|
|
{"name": "industryFieldNew", "code": "industry_field"},
|
|
- {"name": "industryFieldOld", "code": industryNew + "_field"}];
|
|
|
|
|
|
+ {"name": "industryFieldOld", "code": industryNew + "_field"},
|
|
|
|
+ {"name": "agencyType", "code": "agency_type"}];
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
$("select").each(function () {
|
|
$("select").each(function () {
|
|
$(this).val($(this).attr("value"));
|
|
$(this).val($(this).attr("value"));
|