|
@@ -11,16 +11,26 @@
|
|
$("#inputForm").validate({
|
|
$("#inputForm").validate({
|
|
ignore: "",
|
|
ignore: "",
|
|
submitHandler: function (form) {
|
|
submitHandler: function (form) {
|
|
|
|
+ debugger
|
|
var bindMobile = $("#bindMobile").val();
|
|
var bindMobile = $("#bindMobile").val();
|
|
var userID = $("#userID").val();
|
|
var userID = $("#userID").val();
|
|
- $.post("${ctx}/new/user/agency/checkMobile?bindMobile="+bindMobile+"&userID="+userID, function (data) {
|
|
|
|
- if (data.code == -1) {
|
|
|
|
- alertx(data.msg);
|
|
|
|
- }else {
|
|
|
|
- loading('正在提交,请稍等...');
|
|
|
|
- form.submit();
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ var submitFlag = true;
|
|
|
|
+ var firstClubType = $('input[name=firstClubType]:checked').val();
|
|
|
|
+ var secondClubType = $('input[name=secondClubType]:checked').val();
|
|
|
|
+ if ((firstClubType == '1' && secondClubType > 4) || (firstClubType == '2' && secondClubType <= 4)) {
|
|
|
|
+ alertx("请选择机构类型");
|
|
|
|
+ submitFlag = false;
|
|
|
|
+ }
|
|
|
|
+ if (submitFlag) {
|
|
|
|
+ $.post("${ctx}/new/user/agency/checkMobile?bindMobile="+bindMobile+"&userID="+userID, function (data) {
|
|
|
|
+ if (data.code == -1) {
|
|
|
|
+ alertx(data.msg);
|
|
|
|
+ }else {
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
errorContainer: "#messageBox",
|
|
errorContainer: "#messageBox",
|
|
errorPlacement: function (error, element) {
|
|
errorPlacement: function (error, element) {
|
|
@@ -230,11 +240,14 @@
|
|
console.log(firstClubType)
|
|
console.log(firstClubType)
|
|
if (firstClubType == '1') {
|
|
if (firstClubType == '1') {
|
|
$('.med-option,.qualification').show();
|
|
$('.med-option,.qualification').show();
|
|
|
|
+ }else if (firstClubType == '2') {
|
|
|
|
+ $('.raw-option').show();
|
|
}
|
|
}
|
|
$('.medical-radio div input[name="firstClubType"]').on('click', function () {
|
|
$('.medical-radio div input[name="firstClubType"]').on('click', function () {
|
|
var html = '';
|
|
var html = '';
|
|
var nameval = $(this).val();
|
|
var nameval = $(this).val();
|
|
if (nameval == '1') {
|
|
if (nameval == '1') {
|
|
|
|
+ $('.raw-option').hide();
|
|
$('.med-option,.qualification').show();
|
|
$('.med-option,.qualification').show();
|
|
html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
|
|
@@ -243,11 +256,13 @@
|
|
$('.Main-content').show();
|
|
$('.Main-content').show();
|
|
} else if (nameval == '2') {
|
|
} else if (nameval == '2') {
|
|
$('.med-option,.qualification,.epart').hide();
|
|
$('.med-option,.qualification,.epart').hide();
|
|
|
|
+ $('.raw-option').show();
|
|
$('input[name="secondClubType"]').attr('checked', false);
|
|
$('input[name="secondClubType"]').attr('checked', false);
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
|
|
|
|
+ html += '<span class="new-tag up-club-tag" data-typeName="产后修复">产后修复</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
|
|
html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
|
|
@@ -409,6 +424,11 @@
|
|
margin: 10px 0 0 160px;
|
|
margin: 10px 0 0 160px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .raw-option {
|
|
|
|
+ display: block;
|
|
|
|
+ margin: 10px 0 0 160px;
|
|
|
|
+ }
|
|
|
|
+
|
|
.control-group .new-tag {
|
|
.control-group .new-tag {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 78px;
|
|
width: 78px;
|
|
@@ -599,10 +619,25 @@
|
|
<div class="med-beauty"><input name="secondClubType" value="3"
|
|
<div class="med-beauty"><input name="secondClubType" value="3"
|
|
type="radio" ${cmClubinfo.secondClubType == "3" ? "checked" : ""}/>医院
|
|
type="radio" ${cmClubinfo.secondClubType == "3" ? "checked" : ""}/>医院
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="med-beauty"><input name="secondClubType" value="4"
|
|
|
|
+ type="radio" ${cmClubinfo.secondClubType == "4" ? "checked" : ""}/>其他
|
|
|
|
+ </div>
|
|
|
|
+ <span class="err-tip"></span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="raw-option the-oradio" style="display: none">
|
|
|
|
+ <div class="med-beauty"><input name="secondClubType" value="5"
|
|
|
|
+ type="radio" ${cmClubinfo.secondClubType == "5" ? "checked" : ""}/>美容院
|
|
|
|
+ </div>
|
|
|
|
+ <div class="med-beauty"><input name="secondClubType" value="6"
|
|
|
|
+ type="radio" ${cmClubinfo.secondClubType == "6" ? "checked" : ""}/>养生馆
|
|
|
|
+ </div>
|
|
|
|
+ <div class="med-beauty"><input name="secondClubType" value="7"
|
|
|
|
+ type="radio" ${cmClubinfo.secondClubType == "7" ? "checked" : ""}/>其他
|
|
|
|
+ </div>
|
|
<span class="err-tip"></span>
|
|
<span class="err-tip"></span>
|
|
</div>
|
|
</div>
|
|
<div class="qualification control-group" style="display: none">
|
|
<div class="qualification control-group" style="display: none">
|
|
- <label class="control-label"><b>资质:</b></label>
|
|
|
|
|
|
+ <label class="control-label"><b>医疗许可证:</b></label>
|
|
<div class="controls" style="margin-bottom: 10px">
|
|
<div class="controls" style="margin-bottom: 10px">
|
|
<form:hidden id="medicalPracticeLicenseImg" path="medicalPracticeLicenseImg"
|
|
<form:hidden id="medicalPracticeLicenseImg" path="medicalPracticeLicenseImg"
|
|
htmlEscape="false" maxlength="255"
|
|
htmlEscape="false" maxlength="255"
|