1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210 |
- <template>
- <view class="container register" :style="{paddingTop:CustomBar+'px'}">
- <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
- <view class="register-error clearfix" :style="{top:CustomBar+'px'}">
- <view class="error-top animation" @click="showOpenError" :class="{'error-top--none': isOpenError}" >
- <view class="name">审核未通过原因</view>
- <view class="icon">{{ isOpenError ? '' : '查看详情'}}<text class="iconfont icon-xiangxiajiantou" :class="{'icon-xiangxiajiantou-active':isOpenError}"></text></view>
- </view>
- <view class="error-main animation" :class="{'error-main--hide':!isOpenError}"
- :style="{'transform':isOpenError?'translateY(0)':'translateY(-50%)','-webkit-transform':isOpenError?'translateY(0)':'translateY(-50%)'}">
- <view class="error-main-list">
- <view class="item" v-for="(item, index) in errorList" :key="index">
- <text class="num">{{ index+1 }}.</text>
- <text>{{ item }}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="register-main first clearfix">
- <view class="register-row">
- <view class="register-title">基本信息</view>
- </view>
- <view class="register-row clearfix">
- <view class="register-from">
- <view class="label">机构名称:</view>
- <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-from">
- <view class="label">联系人:</view>
- <input class="row-input" type="text" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-from">
- <view class="label">手机号:</view>
- <input class="row-input" type="number" v-model="mobile" placeholder="请输入手机号" maxlength="11"/>
- <view class="row-btn" @click="showCheckPhone">{{ isShowCheckPhone ? '取消修改' : '修改手机号' }}</view>
- </view>
- </view>
- <view class="register-row clearfix" v-show="isShowCheckPhone">
- <view class="register-from code">
- <input class="row-input" type="number" v-model="mobileCode" placeholder="请输入上述手机号的验证码" maxlength="6"/>
- </view>
- <view class="register-from btn" :class="[isMobileDisabled ? 'disabled' : '']">
- <button class="row-input" type="button" @click.stop="getMobileCodeFn" :disabled="isMobileDisabled">{{ mobileCodeText }}</button>
- </view>
- </view>
- <view class="register-row clearfix" v-show="isShowCheckPhone">
- <view class="register-from">
- <input class="row-input" type="number" v-model="newMobile" placeholder="请输入新手机号" maxlength="11"/>
- </view>
- </view>
- <view class="register-row clearfix" v-show="isShowCheckPhone">
- <view class="register-from code">
- <input class="row-input" type="number" v-model="newMobileCode" placeholder="请输入新手机号的验证码" maxlength="6"/>
- </view>
- <view class="register-from btn" :class="[isNewMobileDisabled ? 'disabled' : '']" >
- <button class="row-input" type="button" @click.stop="getNewMobileCodeFn" :disabled="isNewMobileDisabled">{{ newMobileCodeText }}</button>
- </view>
- </view>
- </view>
- <view class="register-main clearfix" >
- <view class="register-row">
- <view class="register-title">详细信息<text class="txt">(请尽量填写,有利于快速审核通过)</text></view>
- </view>
- </view>
- <view class="register-main detailed clearfix">
- <view class="register-row clearfix">
- <view class="register-from">
- <view class="label">机构简称:</view>
- <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-from" @click="showMulLinkageThreePicker">
- <view class="label">机构地址:</view>
- <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
- {{addressData.address}}
- </text>
- <text class="iconfont icon-xiayibu"></text>
- </view>
- </view>
- <view class="register-row text-textarea clearfix">
- <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
- <textarea v-else
- class="textarea"
- type="text"
- v-model="addressData.addressDetail"
- placeholder="详细地址:如道路、门牌号、小区等"
- placeholder-class="placeholder"
- maxlength="25"
- @input="onTextareaInput"
- :class="isShowInput ? '':''"
- />
- </view>
- <view class="register-row clearfix">
- <view class="register-from">
- <view class="label">营业执照编号:</view>
- <input class="row-input" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="16"/>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-picture">
- <view class="label">营业执照:</view>
- <view class="upload-picture">
- <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
- <view class="upload-image" v-else>
- <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
- <view class="upload-del" @click="delBusinessImage">
- <text class='iconfont icon-shanchu1'></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-picture">
- <view class="label">门头照:</view>
- <view class="upload-picture">
- <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
- <view class="upload-image" v-else>
- <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
- <view class="upload-del" @click="delMentuzImage">
- <text class='iconfont icon-shanchu1'></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="register-row clearfix">
- <view class="register-from picker">
- <view class="label">机构类型:</view>
- <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
- <text class="iconfont icon-xiayibu"></text>
- </view>
- </view>
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
- <view class="register-from radio">
- <radio-group @change="radioChange">
- <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
- <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
- <view class="row-text">{{item.name}}</view>
- </label>
- </radio-group>
- </view>
- </view>
- <view class="register-row clearfix" v-show="isDepartment">
- <view class="register-from">
- <view class="label">科室:</view>
- <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
- </view>
- </view>
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
- <view class="register-picture">
- <view class="label zz">医疗执业许可证:</view>
- <view class="upload-picture">
- <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
- <view class="upload-image" v-else>
- <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
- <view class="upload-del" @click="delMedicalImage">
- <text class='iconfont icon-shanchu1'></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="register-row clearfix" v-if="isOrganizationType == 1">
- <view class="register-from group">
- <view class="label">主营内容:</view>
- <checkbox-group class="content-class" @change="chooseMaleLike" >
- <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
- <checkbox :value="item.value"></checkbox>
- <text class="item-text">{{item.name}}</text>
- </label>
- </checkbox-group>
- </view>
- <view class="register-from group btn">
- <view class="content-class btn">
- <view class="item" @click="showAustomItem">
- <text class="item-text">其他</text>
- </view>
- </view>
- </view>
- <view class="register-from group btn" v-show="isShowAustomItem">
- <view class="content-class btn">
- <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
- <button type="default"
- class="confirm-btn"
- :class="[isDisabled === true ? 'disabled' : 'none']"
- :disabled="isDisabled"
- @click.stop="addCustomItem"
- >确认添加</button>
- </view>
- </view>
- </view>
- <view class="register-row clearfix" v-if="isOrganizationType == 2">
- <view class="register-from group">
- <view class="label">主营内容:</view>
- <checkbox-group class="content-class" @change="chooseMaleLikes">
- <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
- <checkbox :value="item.value"></checkbox>
- <text class="item-text">{{item.name}}</text>
- </label>
- </checkbox-group>
- </view>
- <view class="register-from group btn">
- <view class="content-class btn">
- <view class="item" @click="showAustomItem">
- <text class="item-text">其他</text>
- </view>
- </view>
- </view>
- <view class="register-from group btn" v-show="isShowAustomItem">
- <view class="content-class btn">
- <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
- <button type="default"
- class="confirm-btn"
- :class="[isDisabled === true ? 'disabled' : 'none']"
- :disabled="isDisabled"
- @click.stop="addCustomItem"
- >确认添加</button>
- </view>
- </view>
- </view>
- <view class="register-fiexd clearfix">
- <view class="register-agree">
- <view class="agree-text" @tap.stop="agreeCheck()">
- <button class="checkbox iconfont" :class="[isCheck ?'icon-gouxuan':'icon-weigouxuan']"></button>
- 我已阅读并同意
- <text @click.stop="this.$api.navigateTo('/pages/service/organagree')">《机构协议》</text>
- <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
- <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
- </view>
- </view>
- <view class="register-row ">
- <view class="register-btn sub" @click.stop="organizationUpdateInfo">提交审核</view>
- </view>
- </view>
- <mpvue-city-picker :themeColor="themeColor"
- ref="mpvueCityPicker"
- :pickerValueDefault="cityPickerValueDefault"
- @onCancel="onCancel"
- @onConfirm="onConfirm">
- </mpvue-city-picker>
- </view>
- </view>
- </template>
- <script>
- import { mapMutations } from 'vuex';
- import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
- import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/config/register-json.js' //本地数据
- import { organizationUpdateModifyInfo , organizationModifyUpdate } from "@/api/use.js"
- import { getClubMobileCode,getClubNewMobileCode,uploadFileImage } from "@/api/utils.js"
- export default{
- components:{
- mpvueCityPicker
- },
- data() {
- return{
- nvabarData: { //顶部自定义导航
- showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
- showSearch: 0,
- title: '修改申请信息', // 导航栏 中间的标题
- },
- CustomBar:this.CustomBar,// 顶部导航栏高度
- isOpenError:false,
- errorList:[],
- isShowCheckPhone:false, //是否显示修改手机
- tabCurrentIndex:3,
- isPreviewImage:false, //预览图片开关
- isMobileDisabled: false, //手机验证码按钮控制
- isNewMobileDisabled: false, //手机验证码按钮控制
- userID:'', //用户ID
- clubID:'', //会所ID
- count: '', //倒计时
- newCount: '', //倒计时
- codeTime: null,
- codeTimeNew: null,
- clubName:'', //机构名称
- abbreviation:'', //机构简称
- clubContact:'', //联系人
- mobile:'', //联系人手机号
- newMobile:'', //新联系人手机号
- mobileCode:'', //手机号验证码
- newMobileCode:'', //新手机号手机验证码
- mobileCodeText: '获取验证码',
- newMobileCodeText: '获取验证码',
- socialCreditCode:'', //统一社会信用代码
- isAgreed:1, //是否勾选协议
- isDisabled:true,
- isShowInput:false,
- isCheck:true, //是否勾选协议
- uploadBusinessImage:'', //营业执照图片
- uploadMentuzImage:'', //门头照图片
- uploadMedicalImage:'', //资质照图片
- department:'', //科室
- isDepartment:false, //是否显示科室
- secondClubType:'', //机构类型二级分类
- mainpro:'', //主营内容
- clubTelePhone:'', //固定电话
- clubFax:'', //传真
- companyPprofile:'', //公司简介
- firstClubType:'', //机构类型
- isOrganizationType:0,
- organizationTypeText:'请选择机构类型',
- beautyList:beautyList,//医美分类
- mentuzCampNullList:mentuzCampNullList,//医美分类
- medicaCampNullList:medicaCampNullList,//生美分类
- mentuzCampList:[], //医美主营
- medicaCampList:[], //生美主营
- typtIndex:0,
- organizationType:0,
- current:0,
- isShowAustomItem:false, //是否显示其他添加
- customItemValue:'', //自定义项目
- isMainproCheck:false,
- addressData:{
- address:'请选择机构所在地区',
- townID:'', //区ID
- cityID:'', //市ID
- provinceID:'', //省ID
- addressDetail: '', //地址详情
- },
- }
- },
- onLoad(option) {
- this.organizationInfo()
- },
- methods:{
- hanldNavigateBack(){
- this.$util.modal('','资料尚未提交审核,确定放弃修改吗?','确定','取消',true,() =>{
- uni.navigateBack({
- delta: 1
- });
- })
- },
- organizationInfo(){
- this.$api.getStorage().then((resolve) =>{
- this.userID = resolve.userID
- organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
- let organizationClub = response.data.club
- let organizationUser = response.data.user
- this.errorList =organizationUser.auditNoteList
- this.email = organizationUser.email
- this.clubID = organizationUser.clubID
- this.clubName = organizationClub.name
- this.clubContact = organizationClub.linkMan1
- this.mobile = organizationUser.bindMobile
- this.abbreviation = organizationClub.sname
- if( organizationClub.provinceID == null ){
- this.addressData.provinceID = ''
- }else{
- this.addressData.provinceID = organizationClub.provinceID
- }
- if( organizationClub.cityID == null ){
- this.addressData.cityID = ''
- }else{
- this.addressData.cityID = organizationClub.cityID
- }
- if( organizationClub.townID == null ){
- this.addressData.townID = ''
- }else{
- this.addressData.townID = organizationClub.townID
- }
- this.addressData.address = organizationClub.provincialAddress?organizationClub.provincialAddress:''
- this.addressData.addressDetail = organizationClub.address
- this.socialCreditCode = organizationClub.socialCreditCode
- this.firstClubType = organizationClub.firstClubType
- this.secondClubType = organizationClub.secondClubType
- this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
- this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
- this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
- this.department = organizationClub.department
- this.clubTelePhone = this.$reg.checkData(organizationClub. contractPhone)
- this.clubFax = this.$reg.checkData(organizationClub.fax)
- this.companyPprofile = this.$reg.checkData(organizationClub.info)
- //机构类型&&主营项目
- switch(this.firstClubType){
- case '1':
- this.organizationTypeText = '医美'
- this.isOrganizationType = 1
- break;
- case '2':
- this.organizationTypeText = '生美'
- this.isOrganizationType = 2
- break;
- case null:
- this.organizationTypeText = '请选择机构类型'
- this.isOrganizationType = 0
- break;
- }
- if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
- this.mentuzCampList = this.mentuzCampNullList
- this.medicaCampList = this.medicaCampNullList
- }else{
- if(this.firstClubType == '1'){
- this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
- this.medicaCampList = this.medicaCampNullList
-
- }else{
- this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
- this.mentuzCampList = this.mentuzCampNullList
- }
- }
- //机构类型
- switch(this.secondClubType){
- case '1':this.current = 0;break;
- case '2':this.current = 1;this.isDepartment=true;break;
- case '3':this.current = 2;this.isDepartment=true;break;
- }
- }).catch(response =>{
- this.$util.msg(response.msg,2000)
- })
- })
- },
- organizationUpdateInfo(){//提交审核
- if(!this.isCheck){
- this.$util.msg('请勾选同意协议',2000);
- return
- }
- if(!this.isMainproCheck){
- let mainproList = []
- if(this.firstClubType == '1'){
- this.mentuzCampList.forEach(item =>{
- mainproList.push(item.name)
- })
- }else{
- this.medicaCampList.forEach(item =>{
- mainproList.push(item.name)
- })
- }
- this.mainpro = mainproList.join('/')
- }
- let params ={
- userID:this.userID,
- clubID:this.clubID, //会所ID
- name:this.clubName,
- linkMan1:this.clubContact,
- contractMobile2:this.mobile,
- contractMobile:this.newMobile,
- mobileCode:this.mobileCode,
- newMobileCode:this.newMobileCode,
- sname:this.abbreviation,
- provinceID:this.addressData.provinceID,
- cityID:this.addressData.cityID,
- townID:this.addressData.townID,
- address:this.addressData.addressDetail,
- socialCreditCode:this.socialCreditCode,
- businessLicenseImage:this.uploadBusinessImage,
- headpic:this.uploadMentuzImage,
- firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
- secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
- department:this.department, //科室
- medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
- isAgreed:this.isAgreed, //是否勾选协议
- mainpro:this.mainpro,
- fax:this.clubFax,
- contractPhone:this.clubTelePhone,
- info : this.companyPprofile
- }
- organizationModifyUpdate(params).then(response =>{
- this.$util.msg('修改成功',2000,true,'success')
- setTimeout(()=>{
- this.$api.switchTabTo('/pages/tabBar/home/home')
- },2000)
- }).catch(response =>{
- this.$util.msg(response.msg,2000);
- })
- },
- getMobileCodeFn(){
- if( this.mobile == ''){
- this.$util.msg('请输入手机号',2000);
- return
- }
- if(!this.$reg.isMobile(this.mobile)){
- this.$util.msg('请输入正确的手机号',2000);
- return
- }
- let params = { mobile : this.mobile }
- this.isMobileDisabled = true;
- getClubMobileCode(params).then(response =>{
- this.$util.msg('验证短信已发送',2000);
- const TIME_COUNT = 60;
- if (!this.codeTime) {
- this.count = TIME_COUNT;
- this.isMobileDisabled = true;
- this.codeTime = setInterval(() => {
- if (this.count > 1 && this.count <= TIME_COUNT) {
- this.count--
- this.mobileCodeText = this.count +'s重新发送'
- } else {
- this.isMobileDisabled = false;
- clearInterval(this.codeTime)
- this.codeTime = null
- this.mobileCodeText = '获取验证码'
- }
- },1000)
- }
- }).catch( response =>{
- this.$util.msg(response.msg,2000);
- this.isMobileDisabled = false;
- })
- },
- getNewMobileCodeFn(){
- if( this.newMobile == ''){
- this.$util.msg('请输入手机号',2000);
- return
- }
- if(!this.$reg.isMobile(this.newMobile)){
- this.$util.msg('请输入正确的手机号',2000);
- return
- }
- let params = { newMobile : this.newMobile }
- this.isNewMobileDisabled = true;
- getClubNewMobileCode(params).then(response =>{
- this.$util.msg('验证短信已发送',2000);
- const TIME_COUNT = 60;
- if (!this.codeTimeNew) {
- this.newCount = TIME_COUNT;
- this.isNewMobileDisabled = true;
- this.codeTimeNew = setInterval(() => {
- if (this.newCount > 1 && this.newCount <= TIME_COUNT) {
- this.newCount--
- this.newMobileCodeText = this.newCount +'s重新发送'
- } else {
- this.isNewMobileDisabled = false;
- clearInterval(this.codeTimeNew)
- this.codeTimeNew = null
- this.newMobileCodeText = '获取验证码'
- }
- },1000)
- }
- }).catch( response =>{
- this.$util.msg(response.msg,2000);
- this.isNewMobileDisabled = false;
- })
- },
- // 三级联动选择
- showMulLinkageThreePicker() {
- this.isShowInput = true
- this.$refs.mpvueCityPicker.show()
- },
- onConfirm(e) {
- this.addressData.address = e.name;
- this.addressData.townID = e.townCode;
- this.addressData.cityID = e.cityCode;
- this.addressData.provinceID = e.provinceCode;
- },
- onTextareaInput(e){
- this.addressData.addressDetail = e.detail.value;
- },
- chooseBusinessImage() {//营业执照图片上传
- uploadFileImage().then(res =>{
- this.uploadBusinessImage = JSON.parse(res.data).data
- })
- },
- chooseMentuzImage() {//门头照图片上传
- uploadFileImage().then(res =>{
- this.uploadMentuzImage = JSON.parse(res.data).data
- })
- },
- chooseMedicalImage() {//资质照图片上传
- uploadFileImage().then(res =>{
- this.uploadMedicalImage = JSON.parse(res.data).data
- })
- },
- viewBusinessImage(e) {
- this.myPreviewImageFn(this.uploadBusinessImage)
- },
- viewMentuzImage(e) {
- this.myPreviewImageFn(this.uploadMentuzImage)
- },
- viewMedicalImage(e) {
- this.myPreviewImageFn(this.uploadMedicalImage)
- },
- myPreviewImageFn(url){
- this.isPreviewImage = true
- let mentuzArray = []
- mentuzArray.push(url)
- uni.previewImage({
- urls: mentuzArray,
- current: 0
- });
- },
- delBusinessImage(){
- this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
- this.uploadBusinessImage = ''
- })
- },
- delMentuzImage(){
- this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
- this.uploadMentuzImage = ''
- })
- },
- delMedicalImage(){
- this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
- this.uploadMedicalImage = ''
- })
- },
- bindPickerChange() {
- let self = this
- uni.showActionSheet({
- title:'标题',
- itemList: ['医美', '生美'],
- success: (e) => {
- self.isOrganizationType = e.tapIndex+1
- switch(e.tapIndex){
- case 0:
- this.organizationTypeText = '医美'
- break;
- case 1:
- this.organizationTypeText = '生美'
- break;
- }
- }
- })
-
- },
- bindPickerChange2(e) {
- this.typtIndex = e.target.value
- this.isOrganizationType = e.target.value
- },
- radioChange(e) {
- this.secondClubType = e.target.value;
- if( this.secondClubType == '2' || this.secondClubType == '3'){
- this.isDepartment = true
- }else{
- this.isDepartment = false
- }
- for (let i = 0; i < this.beautyList.length; i++) {
- if (this.beautyList[i].value === this.secondClubType) {
- this.current = i;
- break;
- }
- }
- },
- chooseMaleLike(e){
- this.isMainproCheck = true
- this.mainpro = this.checkLikes(e,this.mentuzCampList)
- },
- chooseMaleLikes(e){
- this.isMainproCheck = true
- this.mainpro = this.checkLikes(e,this.medicaCampList)
- },
- checkLikes(e,list){
- let items = list
- let values = e.detail.value
- let arr = []
- for (let i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- if(values.indexOf(item.value) >= 0){
- this.$set(item,'checked',true)
- arr.push(item.name)
- }else{
- this.$set(item,'checked',false)
- }
- }
- return arr.join('/')
- },
- agreeCheck() {
- this.isCheck = !this.isCheck
- if(this.isCheck){
- this.isAgreed = 1
- }else{
- this.isAgreed = 0
- }
- },
- onBlurInput(e){//
- if(e.detail.value ===''){
- this.isDisabled = true
- }else{
- this.isDisabled = false
- }
- },
- showAustomItem() {
- this.isShowAustomItem = !this.isShowAustomItem
- },
- setNewMainpro(arr){//回显处理主营内容
- let _ARRAY = []
- arr.split('/').forEach((item,index) =>{
- let _OBJ = {value:index,name:item,checked:true}
- _ARRAY.push(_OBJ)
- })
- return _ARRAY
- },
- addCustomItem(){
- if(this.isOrganizationType == 1){
- let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
- this.mentuzCampList.push(item)
- }else{
- let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
- this.medicaCampList.push(item)
- }
- },
- showOpenError(){//顶部审核信息详情
- this.isOpenError = !this.isOpenError
- },
- showCheckPhone(){//控制修改手机显隐
- this.isShowCheckPhone = !this.isShowCheckPhone
- },
- checkDataNullFn(res){
- let data;
- data = res ? res :''
- return data
- },
- steps(index) {//$attrstab切换
- this.tabCurrentIndex = index;
- }
- },
- onShow() {
- if(this.isPreviewImage){
- this.isPreviewImage = false
- return
- }
- }
- }
- </script>
- <style lang="scss">
- .register{
- width: 100%;
- height: auto;
- border-top: 1px solid #F7F7F7;
- .model-warp.none{
- display: none;
- }
- .model-warp.show{
- display: block;
- }
- .register-error{
- width: 100%;
- height: auto;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 999;
- .error-top{
- width: 702rpx;
- padding: 0 24rpx;
- height: 90rpx;
- line-height: 90rpx;
- background: #FF0000;
- border-bottom: 1px solid #F7F7F7;
- &.error-top--none{
- background:#FFFFFF;
- .name{
- color: #333333;
- }
- .icon{
- color: #333333;
- }
- }
- .name{
- font-size: $font-size-32;
- color: #FFFFFF;
- float: left;
- }
- .icon{
- float: right;
- font-size: $font-size-32;
- color: #FFFFFF;
- }
- .icon-xiangxiajiantou{
- transform: rotate(0deg);
- transform-origin: center center;
- float: right;
- font-size: $font-size-32;
- color: #FFFFFF;
- /* transition: transform 0.3s ease;*/
- transition-property: transform;
- transition-duration: 0.3s;
- transition-timing-function: ease;
- margin-left: 10rpx;
- }
- .icon-xiangxiajiantou-active{
- transform: rotate(180deg);
- color: #333333;
-
- }
- }
- .animation{
- /* transition: transform 0.3s ease;*/
- transition-property: transform;
- transition-duration: 0.2s;
- transition-timing-function: ease;
- }
- .error-main{
- width: 702rpx;
- height: auto;
- padding: 24rpx;
- overflow: hidden;
- background: #FFFFFF;
- .error-main-list{
- width:100% ;
- height: auto;
- background: #FFFFFF;
- .item{
- height: auto;
- line-height: 60rpx;
- font-size: $font-size-28;
- color: #FF0000;
- .num{
- margin-right: 10rpx;
- }
- }
- }
- }
- .error-main--hide {
- padding: 0 24rpx;
- height: 0px;
- line-height: 0px;
- }
- }
- .register-main{
- width: 100%;
- height: auto;
- &.detailed{
- padding-bottom: 300rpx;
- }
- &.first{
- padding-top: 110rpx;
- }
- .register-tips{
- display: flex;
- flex-direction: column;
- align-items: center;
- line-height: 44rpx;
- font-size: $font-size-24;
- color: #FF0000;
- margin-bottom: 40rpx;
- .iconfont{
- font-size: $font-size-24;
- }
- }
- .register-row{
- width: 702rpx;
- height: auto;
- padding: 0 24rpx;
- margin-bottom: 20rpx;
- .register-title{
- line-height: 60rpx;
- font-size: $font-size-32;
- color: $text-color;
- text-align: left;
- padding-left: 20rpx;
- .txt{
- font-size: $font-size-26;
- }
- }
- .row-btn{
- position: absolute;
- right: 24rpx;
- top: 0;
- line-height: 88rpx;
- text-align: center;
- font-size: $font-size-28;
- color: $color-system;
- }
- .register-from{
- width: 654rpx;
- height: 40rpx;
- padding: 24rpx;
- background: $sub-bg-color;
- border-radius: 14rpx;
- position: relative;
- .label{
- text-align: left;
- font-size: $font-size-28;
- color: #666666;
- line-height: 40rpx;
- float: left;
- }
- .row-input{
- width: 440rpx;
- padding-left:10rpx;
- font-size: $font-size-28;
- color: $text-color;
- line-height: 40rpx;
- float: left;
- height: 40rpx;
- &.none{
- color: #999999;
- }
- &.picker{
- text-align: left;
- color: #999999;
- }
- &.keshi{
- width: 550rpx;
- }
- }
- &.code{
- width: 410rpx;
- float: left;
- margin-right: 20rpx;
- .row-input{
- width: 390rpx;
- }
- }
- &.btn{
- width: 224rpx;
- height: 88rpx;
- float: left;
- background: $btn-confirm;
- padding: 0;
- .row-input{
- width: 224rpx;
- height: 88rpx;
- line-height: 88rpx;
- padding: 0;
- color: #FFFFFF;
- background: $btn-confirm;
- text-align: center;
- border-radius: 14rpx;
- &.other{
- width: 224rpx;
- background: #F7F7F7;
- margin-right: 20rpx;
- }
- &.none{
- background: #F7F7F7;
- }
- }
- &.disabled{
- background: #F7F7F7;
- .row-input{
- background: #F7F7F7;
- color: #999999;
- }
- }
- }
- &.picker{
- padding: 0 24rpx;
- width: 654rpx;
- height: 88rpx;
- line-height: 88rpx;
- .label{
- line-height: 88rpx;
- }
- .row-input{
- width: 470rpx;
- height: 88rpx;
- line-height: 88rpx;
- padding-left: 30rpx;
- }
- }
- &.radio{
- padding: 0 24rpx;
- width: 654rpx;
- height: 288rpx;
- .row-input{
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- padding-left: 0;
- }
- .row-radio{
- float: left;
- transform: scale(0.8);
- }
- .row-text{
- width: 100rpx;
- text-align: center;
- float: left;
- }
- }
- &.group{
- padding: 0 24rpx;
- width: 654rpx;
- height: auto;
- background: #FFFFFF;
- margin-top: 30rpx;
- .label{
- line-height: 76rpx;
- }
- .row-input{
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- padding-left: 0;
- }
- .row-radio{
- float: left;
- }
- .row-text{
- width: 100rpx;
- text-align: center;
- float: left;
- }
- }
- &.btn{
- margin-top: 0;
- }
- .content-class {
- margin: 20rpx auto;
- display: flex;
- flex-flow: row wrap;
- justify-content: space-between;
- align-items: center;
- &.btn{
- margin: 0 auto;
- margin-left: 126rpx;
- }
- .row-input{
- display: flex;
- width: 220rpx;
- height: 40rpx;
- padding: 24rpx;
- text-align: left;
- border-radius: 10rpx;
- font-size: $font-size-28;
- color: $text-color;
- }
- .confirm-btn{
- width: 200rpx;
- height: 88rpx;
- border-radius: 10rpx;
- line-height: 88rpx;
- text-align: center;
- &.none{
- color: #FFFFFF;
- background: $btn-confirm;
- }
- &.disabled{
- color: #999999;
- }
- }
- .item {
- width: 155rpx;
- height: 60rpx;
- font-size:$font-size-28;
- line-height: 60rpx;
- border-radius:10rpx;
- margin: 10rpx;
- text-align: center;
- box-sizing: border-box;
- border: 1rpx solid #EFEFEF;
- checkbox {
- display: none;
- }
- }
- .on {
- border-color: $color-system;
- color:$color-system;
- }
- }
- }
- .icon-xiayibu{
- width: 88rpx;
- height: 88rpx;
- position: absolute;
- right: 0;
- top: 0;
- line-height: 88rpx;
- text-align: center;
- }
- &.text-textarea{
- background: #FFFFFF;
- .textarea{
- width: 654rpx;
- height: 180rpx;
- background: #F7F7F7;
- padding: 24rpx;
- font-size: $font-size-28;
- color: $text-color;
- z-index: 1;
- border-radius: 14rpx;
- }
- .textarea.hide{
- opacity: 0;
- }
- .textarea.show{
- color: #999999;
- }
- }
- }
- .register-picture{
- height: 102rpx;
- margin: 40rpx 0 0 0;
- .label{
- float: left;
- font-size: $font-size-28;
- color: $text-color;
- line-height: 102rpx;
- width: 150rpx;
- text-align: right;
- &.zz{
- width: 230rpx;
- }
- }
- .upload-picture{
- float: left;
- height: 100rpx;
- .upload-none{
- width: 100rpx;
- height: 100rpx;
- text-align: center;
- line-height: 100rpx;
- color: #999999;
- border: 1px solid #999999;
- border-radius: 10rpx;
- margin: 0 20rpx;
- .iconfont{
- font-size: $font-size-28;
- }
- }
- .upload-image{
- width: 100rpx;
- height: 100rpx;
- border-radius: 10rpx;
- margin: 0 20rpx;
- position: relative;
- image{
- width: 100rpx;
- height: 100rpx;
- border-radius: 10rpx;
- }
- .upload-del{
- width: 40rpx;
- height: 40rpx;
- position: absolute;
- top: -20rpx;
- right: -20rpx;
- line-height: 40rpx;
- text-align: center;
- .iconfont{
- font-size: $font-size-32;
- color: #999999;
- }
- }
- }
- }
- }
- .register-input{
- width: 654rpx;
- height: 40rpx;
- padding: 24rpx;
- margin: 0 auto;
- margin-bottom: 60rpx;
- background: #F7F7F7;
- border-radius: 14rpx;
- .input{
- width: 100%;
- height: 100%;
- background: #F7F7F7;
- font-size: $font-size-28;
- line-height: 40rpx;
- color: #333333;
- border-radius: 14rpx;
- }
- }
- .register-fiexd{
- width: 100%;
- height: auto;
- padding: 20rpx 0;
- position: fixed;
- bottom: 0;
- left: 0;
- z-index: 99;
- background: #FFFFFF;
- .register-agree{
- display: flex;
- flex-direction: column;
- align-items: center;
- margin: 32rpx 0;
- .agree-text{
- .checkbox{
- float: left;
- margin: 4rpx 6rpx 0 0;
- color: #999999;
- font-size: $font-size-32;
- &.icon-gouxuan{
- color: $color-system;
- }
- }
- font-size: 20rpx;
- line-height: 44rpx;
- color: #999999;
- text{
- color:#0091FF;
- }
- }
- }
- }
- .register-btn{
- width: 702rpx;
- height: 88rpx;
- border-radius: 14rpx;
- font-size: $font-size-28;
- line-height: 88rpx;
- color: #FFFFFF;
- margin: 0 auto;
- text-align: center;
- background: $btn-confirm;
- margin-top: 96rpx;
- &.none{
- background: #FFFFFF;
- color: $text-color;
- margin-top: 0;
- }
- &.sub{
- margin-top: 0;
- }
- }
- }
- }
- </style>
|