|
@@ -7,7 +7,7 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">邮箱:</view>
|
|
|
- <view class="row-input">369321048@qq.com</view>
|
|
|
+ <view class="row-input">{{ email }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row">
|
|
@@ -28,7 +28,7 @@
|
|
|
<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"/>
|
|
|
+ <input class="row-input" type="number" disabled="true" v-model="mobile" placeholder="请输入手机号" maxlength="11"/>
|
|
|
<view class="row-btn" @click="showCheckPhone">{{ isShowCheckPhone ? '取消修改' : '修改手机号' }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -49,7 +49,7 @@
|
|
|
<view class="register-from code">
|
|
|
<input class="row-input" type="text" v-model="newMobileCode" placeholder="请输入新手机号的验证码" maxlength="6"/>
|
|
|
</view>
|
|
|
- <view class="register-from btn" :class="[isMobileDisabled ? 'disabled' : '']" @click.stop="getNewMobileCodeFn">
|
|
|
+ <view class="register-from btn" :class="[isNewMobileDisabled ? 'disabled' : '']" @click.stop="getNewMobileCodeFn">
|
|
|
<button class="row-input" type="button" :disabled="isNewMobileDisabled">{{ newMobileCodeText }}</button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -63,7 +63,7 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">机构简称:</view>
|
|
|
- <input class="row-input" type="text" v-model="clubContact" placeholder="请输入您的机构简称" maxlength="16"/>
|
|
|
+ <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="16"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix">
|
|
@@ -91,14 +91,14 @@
|
|
|
<view class="register-row clearfix">
|
|
|
<view class="register-from">
|
|
|
<view class="label">营业执照编号:</view>
|
|
|
- <input class="row-input" type="text" v-model="clubContact" placeholder="请填写社会统一信用代码" maxlength="16"/>
|
|
|
+ <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-none" v-if="uploadBusinessImage == null" @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">
|
|
@@ -112,7 +112,7 @@
|
|
|
<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-none" v-if="uploadMentuzImage == null" @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">
|
|
@@ -146,14 +146,14 @@
|
|
|
<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="clubContact" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
|
|
|
+ <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row clearfix" v-if="isOrganizationType == 0">
|
|
|
<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-none" v-if="uploadMedicalImage == null " @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">
|
|
@@ -256,8 +256,8 @@
|
|
|
<text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="register-row ">
|
|
|
- <view class="register-btn sub">提交审核</view>
|
|
|
+ <view class="register-row">
|
|
|
+ <view class="register-btn sub" @click.stop="organizationUpdateInfo">提交审核</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<mpvue-city-picker :themeColor="themeColor"
|
|
@@ -273,8 +273,8 @@
|
|
|
<script>
|
|
|
import { mapMutations } from 'vuex';
|
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
|
- import { organizationRegister , organizationVerifyRegisterFirst ,organizationVerifyRegisterTwo } from "@/api/use.js"
|
|
|
- import { getImageCode, getMobileCode, uploadFileImage } from "@/api/utils.js"
|
|
|
+ import { organizationUpdateModifyInfo , organizationUpdate } from "@/api/use.js"
|
|
|
+ import { getClubMobileCode,getClubNewMobileCode,uploadFileImage } from "@/api/utils.js"
|
|
|
var self;
|
|
|
export default{
|
|
|
components:{
|
|
@@ -287,8 +287,13 @@
|
|
|
isPreviewImage:false, //预览图片开关
|
|
|
isMobileDisabled: false, //手机验证码按钮控制
|
|
|
isNewMobileDisabled: false, //手机验证码按钮控制
|
|
|
+ userID:'', //用户ID
|
|
|
+ clubID:'', //会所ID
|
|
|
+ email:'', //邮箱
|
|
|
count: '', //倒计时
|
|
|
+ newCount: '', //倒计时
|
|
|
codeTime: null,
|
|
|
+ codeTimeNew: null,
|
|
|
clubName:'', //机构名称
|
|
|
abbreviation:'', //机构简称
|
|
|
clubContact:'', //联系人
|
|
@@ -313,59 +318,128 @@
|
|
|
clubTelePhone:'', //固定电话
|
|
|
clubFax:'', //传真
|
|
|
companyPprofile:'', //公司简介
|
|
|
- isOrganizationType:3,
|
|
|
+ firstClubType:'', //机构类型
|
|
|
+ isOrganizationType:2,
|
|
|
organizationTypeText:'请选择机构类型',
|
|
|
beautyList:[{value:'1',name:'诊所'},{value:'2',name:'门诊'},{value:'3',name:'医院'}],
|
|
|
- mentuzCampList:[{value:'1',name:'整形'},{value:'2',name:'轻医美'},{value:'3',name:'皮肤科'}],
|
|
|
- medicaCampList:[
|
|
|
- {value:'1',name:'美容'},
|
|
|
- {value:'2',name:'美体'},
|
|
|
- {value:'3',name:'美发'},
|
|
|
- {value:'4',name:'皮肤管理'},
|
|
|
- {value:'5',name:'光电'},
|
|
|
- {value:'6',name:'综合类'},
|
|
|
- {value:'7',name:'中医养生'},
|
|
|
- {value:'8',name:'spa'}
|
|
|
- ],
|
|
|
+ mentuzCampList:[],
|
|
|
+ medicaCampList:[],
|
|
|
typtIndex:0,
|
|
|
organizationType:0,
|
|
|
current:0,
|
|
|
isShowAustomItem:false, //是否显示其他添加
|
|
|
customItemValue:'', //自定义项目
|
|
|
+ isMainproCheck:false,
|
|
|
addressData:{
|
|
|
address:'请选择机构所在地区',
|
|
|
townID:'', //区ID
|
|
|
- cityID:'', //区ID
|
|
|
- provinceID:'', //区ID
|
|
|
- addressDetail: '', //地址
|
|
|
+ cityID:'', //市ID
|
|
|
+ provinceID:'', //省ID
|
|
|
+ addressDetail: '', //地址详情
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
console.log(option)
|
|
|
+ this.organizationInfo()
|
|
|
},
|
|
|
methods:{
|
|
|
- registerStepsTwo(){
|
|
|
- let params ={
|
|
|
- name:this.clubName,
|
|
|
- linkMan:this.clubContact,
|
|
|
- bindMobile:this.registerMobile,
|
|
|
- activationCode:this.mobileCode,
|
|
|
- whichStep:2,
|
|
|
- }
|
|
|
- organizationVerifyRegisterTwo(params).then(res =>{
|
|
|
- console.log(res)
|
|
|
- this.tabCurrentIndex = 3
|
|
|
- }).catch(res =>{
|
|
|
- this.$util.msg(res.msg,2000);
|
|
|
+ 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.email = organizationUser.email
|
|
|
+ this.clubID = organizationUser.clubID
|
|
|
+ this.clubName = organizationClub.name
|
|
|
+ this.clubContact = organizationClub.linkMan
|
|
|
+ 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
|
|
|
+ this.addressData.addressDetail = organizationClub.address
|
|
|
+ this.socialCreditCode = organizationClub.socialCreditCode
|
|
|
+ this.firstClubType = organizationClub.firstClubType
|
|
|
+ this.secondClubType = organizationClub.secondClubType
|
|
|
+ this.uploadBusinessImage = organizationClub.businessLicenseImage
|
|
|
+ this.uploadMentuzImage = organizationClub.headpic
|
|
|
+ this.uploadMedicalImage = organizationClub.medicalPracticeLicenseImg
|
|
|
+ this.department = organizationClub.department
|
|
|
+ this.clubTelePhone = organizationClub. contractPhone
|
|
|
+ this.clubFax = organizationClub.fax
|
|
|
+ this.companyPprofile = organizationClub.info
|
|
|
+ //机构类型&&主营项目
|
|
|
+ switch(this.firstClubType){
|
|
|
+ case '1':
|
|
|
+ this.organizationTypeText = '医美'
|
|
|
+ this.isOrganizationType = 0
|
|
|
+ this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
+ break;
|
|
|
+ case '2':
|
|
|
+ this.organizationTypeText = '生美'
|
|
|
+ this.isOrganizationType = 1
|
|
|
+ this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
+ break;
|
|
|
+ case null:
|
|
|
+ this.organizationTypeText = '请选择机构类型'
|
|
|
+ this.isOrganizationType = 2
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ //机构类型
|
|
|
+ switch(this.secondClubType){
|
|
|
+ case '1':
|
|
|
+ this.current = 0
|
|
|
+ break;
|
|
|
+ case '2':
|
|
|
+ this.current = 1
|
|
|
+ break;
|
|
|
+ case '3':
|
|
|
+ this.current = 2
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(response =>{
|
|
|
+ this.$util.msg(response.msg,2000)
|
|
|
})
|
|
|
},
|
|
|
- registerStepsSub(){
|
|
|
+ organizationUpdateInfo(){//提交审核
|
|
|
+ if(!this.isMainproCheck){
|
|
|
+ let mainproList = []
|
|
|
+ if(this.firstClubType == '1'){
|
|
|
+ this.mentuzCampList.forEach(item =>{
|
|
|
+ mainproList.push(item).toString()
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.medicaCampList.forEach(item =>{
|
|
|
+ mainproList.push(item).toString()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.mainpro = mainproList
|
|
|
+ }
|
|
|
let params ={
|
|
|
+ userID:this.userID,
|
|
|
+ clubID:this.clubID, //会所ID
|
|
|
name:this.clubName,
|
|
|
linkMan:this.clubContact,
|
|
|
- bindMobile:this.registerMobile,
|
|
|
- activationCode:this.mobileCode,
|
|
|
+ contractMobile2:this.mobile,
|
|
|
+ contractMobile:this.newMobile,
|
|
|
+ mobileCode:this.mobileCode,
|
|
|
+ newMobileCode:this.newMobileCode,
|
|
|
sname:this.abbreviation,
|
|
|
provinceID:this.addressData.provinceID,
|
|
|
cityID:this.addressData.cityID,
|
|
@@ -375,29 +449,28 @@
|
|
|
businessLicenseImage:this.uploadBusinessImage,
|
|
|
headpic:this.uploadMentuzImage,
|
|
|
firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
|
|
|
- secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
|
- department:this.department, //科室
|
|
|
+ secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
|
+ department:this.department, //科室
|
|
|
medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
|
isAgreed:this.isAgreed, //是否勾选协议
|
|
|
mainpro:this.mainpro,
|
|
|
- whichStep:3
|
|
|
+ fax:this.clubFax,
|
|
|
+ contractPhone:this.clubTelePhone,
|
|
|
+ info : this.companyPprofile
|
|
|
}
|
|
|
- organizationRegister(params).then(res =>{
|
|
|
- this.$util.msg('您的机构账号已提交审核',2000);
|
|
|
- this.$api.switchTabTo('/pages/tabBar/home/home')
|
|
|
- }).catch(res =>{
|
|
|
- this.$util.msg(res.msg,2000);
|
|
|
+ console.log(params)
|
|
|
+ organizationUpdate(params).then(response =>{
|
|
|
+ this.$util.msg(response.msg,2000);
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.$api.switchTabTo('/pages/tabBar/user/user')
|
|
|
+ },2000)
|
|
|
+ }).catch(response =>{
|
|
|
+ this.$util.msg(response.msg,2000);
|
|
|
})
|
|
|
},
|
|
|
getMobileCodeFn(){
|
|
|
- let params = {
|
|
|
- mobile:this.registerMobile,
|
|
|
- activateCodeType:2,
|
|
|
- platformType:2,
|
|
|
- imgCode:this.imageCode,
|
|
|
- token:this.imageCodetoken,
|
|
|
- }
|
|
|
- getMobileCode(params).then(res =>{
|
|
|
+ let params = { mobile : this.mobile }
|
|
|
+ getClubMobileCode(params).then(response =>{
|
|
|
this.$util.msg('验证短信已发送',2000);
|
|
|
const TIME_COUNT = 60;
|
|
|
if (!this.codeTime) {
|
|
@@ -415,44 +488,32 @@
|
|
|
}
|
|
|
},1000)
|
|
|
}
|
|
|
- }).catch( res =>{
|
|
|
- this.$util.msg(res.msg,2000);
|
|
|
+ }).catch( response =>{
|
|
|
+ this.$util.msg(response.msg,2000);
|
|
|
})
|
|
|
},
|
|
|
getNewMobileCodeFn(){
|
|
|
- let params = {
|
|
|
- mobile:this.registerMobile,
|
|
|
- activateCodeType:2,
|
|
|
- platformType:2,
|
|
|
- imgCode:this.imageCode,
|
|
|
- token:this.imageCodetoken,
|
|
|
- }
|
|
|
- getMobileCode(params).then(res =>{
|
|
|
+ let params = { newMobile : this.newMobile }
|
|
|
+ getClubNewMobileCode(params).then(response =>{
|
|
|
this.$util.msg('验证短信已发送',2000);
|
|
|
const TIME_COUNT = 60;
|
|
|
- if (!this.codeTime) {
|
|
|
- this.count = TIME_COUNT;
|
|
|
+ if (!this.codeTimeNew) {
|
|
|
+ this.newCount = TIME_COUNT;
|
|
|
this.isNewMobileDisabled = true;
|
|
|
- this.codeTime = setInterval(() => {
|
|
|
- if (this.count > 1 && this.count <= TIME_COUNT) {
|
|
|
- this.count--
|
|
|
- this.newMobileCodeText = this.count +'s重新发送'
|
|
|
+ this.codeTimeNew = setInterval(() => {
|
|
|
+ if (this.newCount > 1 && this.newCount <= TIME_COUNT) {
|
|
|
+ this.newCount
|
|
|
+ this.newMobileCodeText = this.newCount +'s重新发送'
|
|
|
} else {
|
|
|
this.isNewMobileDisabled = false;
|
|
|
- clearInterval(this.codeTime)
|
|
|
- this.codeTime = null
|
|
|
+ clearInterval(this.codeTimeNew)
|
|
|
+ this.codeTimeNew = null
|
|
|
this.newMobileCodeText = '获取验证码'
|
|
|
}
|
|
|
},1000)
|
|
|
}
|
|
|
}).catch( res =>{
|
|
|
- this.$util.msg(res.msg,2000);
|
|
|
- })
|
|
|
- },
|
|
|
- getVerificationCode(){//图形验证
|
|
|
- getImageCode().then(res => {
|
|
|
- this.imageCodeUrl = res.data.baseImage
|
|
|
- this.imageCodetoken = res.data.token
|
|
|
+ this.$util.msg(response.msg,2000);
|
|
|
})
|
|
|
},
|
|
|
// 三级联动选择
|
|
@@ -557,10 +618,12 @@
|
|
|
}
|
|
|
},
|
|
|
chooseMaleLike(e){
|
|
|
+ this.isMainproCheck = true
|
|
|
this.mainpro = this.checkLikes(e,this.mentuzCampList)
|
|
|
console.log(this.mainpro)
|
|
|
},
|
|
|
chooseMaleLikes(e){
|
|
|
+ this.isMainproCheck = true
|
|
|
this.mainpro = this.checkLikes(e,this.medicaCampList)
|
|
|
console.log(this.mainpro)
|
|
|
},
|
|
@@ -595,12 +658,20 @@
|
|
|
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 == 0){
|
|
|
- let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue}
|
|
|
+ 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}
|
|
|
+ let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
|
|
|
this.medicaCampList.push(item)
|
|
|
}
|
|
|
},
|
|
@@ -739,7 +810,9 @@
|
|
|
}
|
|
|
}
|
|
|
&.disabled{
|
|
|
+ background: #F7F7F7;
|
|
|
.row-input{
|
|
|
+ background: #F7F7F7;
|
|
|
color: #999999;
|
|
|
}
|
|
|
}
|