Просмотр исходного кода

微服务联调,修改注册登录, 机构资料修改

zhengjinyi 4 лет назад
Родитель
Сommit
7c1bd43355

+ 12 - 0
src/main/resources/static/js/account/register-club.js

@@ -187,6 +187,10 @@ var registerPage = new Vue({
             if (_self.loginLoading) { return false; }
             this.$nextTick(function() {
                 if (!pass) {return false;}
+                if(_self.clubUpgradeUser.cityId == ''){
+                    CAIMEI.dialog('请选择市级地区',false);
+                    return ;
+                }
                 if(_self.clubUpgradeUser.townId == ''){
                     CAIMEI.dialog('请选择具体地区',false);
                     return ;
@@ -194,12 +198,20 @@ var registerPage = new Vue({
                 if(!_self.clubUpgradeUser.businessLicense){
                     $('#formbusinessLicenseImage').parent().addClass("error").find('.checked').removeClass("show");
                     $('#formbusinessLicenseImage').siblings('.errTips').text('请上传营业执照图片').addClass("show");
+                    return  false;
                 }
                 if(!_self.clubUpgradeUser.firstClubType){
                     $('#firstClubType').parent().addClass("error");
                     $('#firstClubType').siblings('.errTips').text('请选择机构类型').addClass("show");
                     return  false;
                 }
+                if(Number(_self.clubUpgradeUser.firstClubType) == 1){
+                    if(!_self.clubUpgradeUser.medicalPracticeLicense){
+                        $('#formmedicalPracticeLicenseImage').parent().addClass("error").find('.checked').removeClass("show");
+                        $('#formmedicalPracticeLicenseImage').siblings('.errTips').text('请上传资质证书图片').addClass("show");
+                        return  false;
+                    }
+                }
                 _self.clubUpgradeUser.mainProduct = _self.userMainPros.join("/");
                 _self.loginLoading = true;
                 UserApi.ClubUpgrade(_self.clubUpgradeUser,function (response) {

+ 1 - 1
src/main/resources/templates/account/register-club.html

@@ -160,7 +160,7 @@
                             <img class="upload-img" :src="clubUpgradeUser.medicalPracticeLicense" alt="" id="medicalPracticeLicenseImg" @click="showViewerImageFn2()">
                             <i class="icon mIcon" @click="deleteMedicalImage()"></i>
                         </div>
-                        <div class="formLine-file" v-else>
+                        <div class="formLine-file" v-else id="formmedicalPracticeLicenseImage">
                             <input ref="businessMedicaImage" class="file" type="file"  accept="image/png,image/jpeg,image/gif,image/jpg" @change="uploadMedicaImageFn">
                             <i class="icon mIcon file-zizhi"></i>
                         </div>