|
@@ -1,44 +1,101 @@
|
|
<template>
|
|
<template>
|
|
<view class="container register" :style="{paddingTop:CustomBar+'px'}">
|
|
<view class="container register" :style="{paddingTop:CustomBar+'px'}">
|
|
<cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
|
|
<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 class="register-main first clearfix" v-if="clubStatus == 92">
|
|
|
|
+ <view class="register-row none clearfix">
|
|
|
|
+ <view class="error-title">审核未通过原因:</view>
|
|
|
|
+ <view class="error-main">
|
|
|
|
+ <text class="error-item" v-for="(item, index) in errorList" :key="index">
|
|
|
|
+ {{ item }}
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-main first clearfix">
|
|
|
|
+ <view class="register-row clearfix">
|
|
|
|
+ <text class="register-title">注册信息</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 class="register-row clearfix">
|
|
|
|
+ <view class="register-from">
|
|
|
|
+ <view class="label">联系人:</view>
|
|
|
|
+ <input class="row-input" type="text" name="input" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-row clearfix">
|
|
|
|
+ <view class="register-from">
|
|
|
|
+ <view class="label">手机号:</view>
|
|
|
|
+ <view class="row-input">{{ mobile }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="register-main first clearfix">
|
|
|
|
|
|
+ <view class="register-main clearfix">
|
|
<view class="register-row">
|
|
<view class="register-row">
|
|
- <view class="register-title">基本信息</view>
|
|
|
|
|
|
+ <view class="register-title">其他信息</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
- <view class="label">机构名称:</view>
|
|
|
|
- <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
|
|
|
|
|
|
+ <view class="label">固定电话:</view>
|
|
|
|
+ <input class="row-input" type="text" v-model="clubTelePhone" placeholder="请填写机构的固定电话" maxlength="15"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
- <view class="label">联系人:</view>
|
|
|
|
- <input class="row-input" type="text" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
|
|
|
|
|
|
+ <view class="label">传真:</view>
|
|
|
|
+ <input class="row-input" type="text" v-model="clubFax" placeholder="请填写机构的传真" maxlength="15"/>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-row text-textarea clearfix">
|
|
|
|
+ <textarea class="textarea"
|
|
|
|
+ type="text"
|
|
|
|
+ v-model="companyPprofile"
|
|
|
|
+ placeholder="请填写公司简介,最多500字"
|
|
|
|
+ placeholder-class="placeholder"
|
|
|
|
+ maxlength="500"
|
|
|
|
+ @input="onTextareaInputInfo"
|
|
|
|
+ :class="isShowInput ? '':''"
|
|
|
|
+ />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-main clearfix" v-if="clubStatus == 90" :class="isUpgrade ? '' : 'detailed'">
|
|
|
|
+ <view class="register-row clearfix">
|
|
|
|
+ <view class="register-txt first"><text>您还可以填写更多信息,帮机构直接注册成为会员机构。</text></view>
|
|
|
|
+ <view class="register-txt"><text>不过这些信息需要审核。</text></view>
|
|
|
|
+ <view class="register-bet" @tap.stop="showUpgrade()" v-if="isDownUpgrade">
|
|
|
|
+ <text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-fiexd clearfix">
|
|
|
|
+ <view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
|
|
|
|
+ <text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="register-row ">
|
|
|
|
+ <view class="register-btn sub" @click.stop="organizationUpgradeInfo">{{registerBtnText}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="register-main clearfix" >
|
|
|
|
- <view class="register-row">
|
|
|
|
- <view class="register-title">详细信息<text class="txt">(请尽量填写,有利于快速审核通过)</text></view>
|
|
|
|
|
|
+ <view class="register-main clearfix" v-else>
|
|
|
|
+ <view class="register-fiexd clearfix">
|
|
|
|
+ <view class="register-row ">
|
|
|
|
+ <view class="register-btn sub" @click.stop="organizationUpdateInfo">提交审核</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="register-main detailed clearfix">
|
|
|
|
|
|
+ <view class="register-main detailed clearfix" v-if="isShowUpgrade">
|
|
|
|
+ <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" name="input" v-model="registerEmail" 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="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="register-row clearfix">
|
|
<view class="register-row clearfix">
|
|
<view class="register-from">
|
|
<view class="register-from">
|
|
<view class="label">机构简称:</view>
|
|
<view class="label">机构简称:</view>
|
|
@@ -49,7 +106,7 @@
|
|
<view class="register-from" @click="showMulLinkageThreePicker">
|
|
<view class="register-from" @click="showMulLinkageThreePicker">
|
|
<view class="label">机构地址:</view>
|
|
<view class="label">机构地址:</view>
|
|
<text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
|
|
<text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
|
|
- {{addressData.address ? addressData.address :''}}
|
|
|
|
|
|
+ {{addressData.address }}
|
|
</text>
|
|
</text>
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
</view>
|
|
</view>
|
|
@@ -86,8 +143,6 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="register-row clearfix">
|
|
|
|
<view class="register-picture">
|
|
<view class="register-picture">
|
|
<view class="label">门头照:</view>
|
|
<view class="label">门头照:</view>
|
|
<view class="upload-picture">
|
|
<view class="upload-picture">
|
|
@@ -125,7 +180,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="register-row clearfix" v-if="isOrganizationType == 1">
|
|
<view class="register-row clearfix" v-if="isOrganizationType == 1">
|
|
- <view class="register-picture">
|
|
|
|
|
|
+ <view class="register-picture zz">
|
|
<view class="label zz">医疗执业许可证:</view>
|
|
<view class="label zz">医疗执业许可证:</view>
|
|
<view class="upload-picture">
|
|
<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 === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
|
|
@@ -196,20 +251,6 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</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"
|
|
<mpvue-city-picker :themeColor="themeColor"
|
|
ref="mpvueCityPicker"
|
|
ref="mpvueCityPicker"
|
|
:pickerValueDefault="cityPickerValueDefault"
|
|
:pickerValueDefault="cityPickerValueDefault"
|
|
@@ -224,10 +265,8 @@
|
|
import { mapMutations } from 'vuex';
|
|
import { mapMutations } from 'vuex';
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
|
|
import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
|
|
- import { organizationUpdateModifyInfo } from "@/api/use.js"
|
|
|
|
|
|
+ import { organizationUpdateModifyInfo , organizationRegister ,organizationUpdate } from "@/api/use.js"
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
import { uploadFileImage } from "@/api/utils.js"
|
|
- import { sellerClubUpdate } from "@/api/seller.js"
|
|
|
|
- var self;
|
|
|
|
export default{
|
|
export default{
|
|
components:{
|
|
components:{
|
|
mpvueCityPicker
|
|
mpvueCityPicker
|
|
@@ -237,23 +276,26 @@ import { mapMutations } from 'vuex';
|
|
nvabarData: { //顶部自定义导航
|
|
nvabarData: { //顶部自定义导航
|
|
showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
showSearch: 0,
|
|
showSearch: 0,
|
|
- title: '修改申请信息', // 导航栏 中间的标题
|
|
|
|
|
|
+ title: '修改资料', // 导航栏 中间的标题
|
|
},
|
|
},
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
- isOpenError:false,
|
|
|
|
errorList:[],
|
|
errorList:[],
|
|
|
|
+ tabCurrentIndex:3,
|
|
|
|
+ clubStatus:'', //审核状态
|
|
isPreviewImage:false, //预览图片开关
|
|
isPreviewImage:false, //预览图片开关
|
|
userID:'', //用户ID
|
|
userID:'', //用户ID
|
|
clubID:'', //会所ID
|
|
clubID:'', //会所ID
|
|
- status:'', //机构状态
|
|
|
|
|
|
+ clubContact:'', //联系人姓名
|
|
|
|
+ mobile:'', //联系人手机号
|
|
|
|
+ registerEmail:'', //邮箱
|
|
clubName:'', //机构名称
|
|
clubName:'', //机构名称
|
|
abbreviation:'', //机构简称
|
|
abbreviation:'', //机构简称
|
|
- clubContact:'', //联系人
|
|
|
|
socialCreditCode:'', //统一社会信用代码
|
|
socialCreditCode:'', //统一社会信用代码
|
|
- isAgreed:1, //是否勾选协议
|
|
|
|
isDisabled:true,
|
|
isDisabled:true,
|
|
isShowInput:false,
|
|
isShowInput:false,
|
|
- isCheck:true, //是否勾选协议
|
|
|
|
|
|
+ isUpgrade:false,
|
|
|
|
+ isShowUpgrade:false,
|
|
|
|
+ isDownUpgrade:true,
|
|
uploadBusinessImage:'', //营业执照图片
|
|
uploadBusinessImage:'', //营业执照图片
|
|
uploadMentuzImage:'', //门头照图片
|
|
uploadMentuzImage:'', //门头照图片
|
|
uploadMedicalImage:'', //资质照图片
|
|
uploadMedicalImage:'', //资质照图片
|
|
@@ -267,11 +309,11 @@ import { mapMutations } from 'vuex';
|
|
firstClubType:'', //机构类型
|
|
firstClubType:'', //机构类型
|
|
isOrganizationType:0,
|
|
isOrganizationType:0,
|
|
organizationTypeText:'请选择机构类型',
|
|
organizationTypeText:'请选择机构类型',
|
|
- beautyList:beautyList,
|
|
|
|
- mentuzCampNullList:mentuzCampNullList,
|
|
|
|
- medicaCampNullList:medicaCampNullList,
|
|
|
|
- mentuzCampList:[],
|
|
|
|
- medicaCampList:[],
|
|
|
|
|
|
+ beautyList:beautyList,//医美分类
|
|
|
|
+ mentuzCampNullList:mentuzCampNullList,//医美分类
|
|
|
|
+ medicaCampNullList:medicaCampNullList,//生美分类
|
|
|
|
+ mentuzCampList:[], //医美主营
|
|
|
|
+ medicaCampList:[], //生美主营
|
|
typtIndex:0,
|
|
typtIndex:0,
|
|
organizationType:0,
|
|
organizationType:0,
|
|
current:0,
|
|
current:0,
|
|
@@ -285,16 +327,16 @@ import { mapMutations } from 'vuex';
|
|
provinceID:'', //省ID
|
|
provinceID:'', //省ID
|
|
addressDetail: '', //地址详情
|
|
addressDetail: '', //地址详情
|
|
},
|
|
},
|
|
|
|
+ registerBtnText:'确定'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
this.userID = option.userID
|
|
this.userID = option.userID
|
|
- this.status = option.status
|
|
|
|
this.organizationInfo()
|
|
this.organizationInfo()
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
hanldNavigateBack(){
|
|
hanldNavigateBack(){
|
|
- this.$util.modal('','资料尚未提交审核,确定放弃修改吗?','确定','取消',true,() =>{
|
|
|
|
|
|
+ this.$util.modal('','资料尚未提交审核,确定放弃升级吗?','确定','取消',true,() =>{
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
delta: 1
|
|
delta: 1
|
|
});
|
|
});
|
|
@@ -304,13 +346,21 @@ import { mapMutations } from 'vuex';
|
|
organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
|
|
let organizationClub = response.data.club
|
|
let organizationClub = response.data.club
|
|
let organizationUser = response.data.user
|
|
let organizationUser = response.data.user
|
|
- this.errorList =organizationUser.auditNoteList
|
|
|
|
- this.email = organizationUser.email
|
|
|
|
- this.clubID = organizationUser.clubID
|
|
|
|
- this.clubName = organizationClub.name
|
|
|
|
|
|
+ this.clubStatus = organizationClub.status
|
|
|
|
+ if(this.clubStatus === 90){
|
|
|
|
+ this.isShowUpgrade = false
|
|
|
|
+ }else{
|
|
|
|
+ this.isShowUpgrade = true
|
|
|
|
+ }
|
|
|
|
+ if(organizationUser.auditNoteList!=null){
|
|
|
|
+ this.errorList =organizationUser.auditNoteList
|
|
|
|
+ }
|
|
this.clubContact = organizationClub.linkMan1
|
|
this.clubContact = organizationClub.linkMan1
|
|
this.mobile = organizationUser.bindMobile
|
|
this.mobile = organizationUser.bindMobile
|
|
- this.abbreviation = organizationClub.sname
|
|
|
|
|
|
+ this.registerEmail = organizationUser.email
|
|
|
|
+ this.clubID = organizationUser.clubID
|
|
|
|
+ this.clubName = this.$reg.checkData(organizationClub.name)
|
|
|
|
+ this.abbreviation = this.$reg.checkData(organizationClub.sname)
|
|
if( organizationClub.provinceID == null ){
|
|
if( organizationClub.provinceID == null ){
|
|
this.addressData.provinceID = ''
|
|
this.addressData.provinceID = ''
|
|
}else{
|
|
}else{
|
|
@@ -326,18 +376,18 @@ import { mapMutations } from 'vuex';
|
|
}else{
|
|
}else{
|
|
this.addressData.townID = organizationClub.townID
|
|
this.addressData.townID = organizationClub.townID
|
|
}
|
|
}
|
|
- this.addressData.address = organizationClub.provincialAddress
|
|
|
|
- this.addressData.addressDetail = organizationClub.address
|
|
|
|
- this.socialCreditCode = organizationClub.socialCreditCode
|
|
|
|
|
|
+ this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
|
|
|
|
+ this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
|
|
|
|
+ this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
|
|
this.firstClubType = organizationClub.firstClubType
|
|
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 ? organizationClub.contractPhone : ''
|
|
|
|
- this.clubFax = organizationClub.fax ? organizationClub.fax : ''
|
|
|
|
- this.companyPprofile = organizationClub.info ? organizationClub.info : ''
|
|
|
|
|
|
+ this.secondClubType = this.$reg.checkData(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 = this.$reg.checkData(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){
|
|
switch(this.firstClubType){
|
|
case '1':
|
|
case '1':
|
|
@@ -353,11 +403,17 @@ import { mapMutations } from 'vuex';
|
|
this.isOrganizationType = 0
|
|
this.isOrganizationType = 0
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- if(organizationClub.mainpro!=null){
|
|
|
|
|
|
+ if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
|
|
|
|
+ this.mentuzCampList = this.mentuzCampNullList
|
|
|
|
+ this.medicaCampList = this.medicaCampNullList
|
|
|
|
+ }else{
|
|
if(this.firstClubType == '1'){
|
|
if(this.firstClubType == '1'){
|
|
this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
|
+ this.medicaCampList = this.medicaCampNullList
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
|
+ this.mentuzCampList = this.mentuzCampNullList
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//机构类型
|
|
//机构类型
|
|
@@ -370,11 +426,32 @@ import { mapMutations } from 'vuex';
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- organizationUpdateInfo(){//提交审核
|
|
|
|
- if(!this.isCheck){
|
|
|
|
- this.$util.msg('请勾选同意协议',2000);
|
|
|
|
- return
|
|
|
|
|
|
+ organizationUpdateInfo(){//普通机构修改资料
|
|
|
|
+ this.clubUpgradeApi()
|
|
|
|
+ },
|
|
|
|
+ organizationUpgradeInfo(){//普通机构提交审核
|
|
|
|
+ if(this.isUpgrade){
|
|
|
|
+ this.clubUpgradeApi()
|
|
|
|
+ }else{
|
|
|
|
+ let params = {
|
|
|
|
+ userID:this.userID,
|
|
|
|
+ clubID:this.clubID, //会所ID
|
|
|
|
+ linkMan1:this.clubContact,
|
|
|
|
+ fax:this.clubFax,
|
|
|
|
+ contractPhone:this.clubTelePhone,
|
|
|
|
+ info : this.companyPprofile,
|
|
|
|
+ }
|
|
|
|
+ organizationUpdate(params).then(response =>{
|
|
|
|
+ this.$util.msg('修改成功',2000,true,'success')
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ uni.navigateBack({delta: 1})
|
|
|
|
+ },2000)
|
|
|
|
+ }).catch(error =>{
|
|
|
|
+ this.$util.msg(error.msg,2000);
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ clubUpgradeApi(){
|
|
if(!this.isMainproCheck){
|
|
if(!this.isMainproCheck){
|
|
let mainproList = []
|
|
let mainproList = []
|
|
if(this.firstClubType == '1'){
|
|
if(this.firstClubType == '1'){
|
|
@@ -388,11 +465,47 @@ import { mapMutations } from 'vuex';
|
|
}
|
|
}
|
|
this.mainpro = mainproList.join('/')
|
|
this.mainpro = mainproList.join('/')
|
|
}
|
|
}
|
|
- let params ={
|
|
|
|
|
|
+ if( this.registerEmail == ''){
|
|
|
|
+ this.$util.msg('请输入邮箱地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( !this.$reg.isEmail(this.registerEmail)){
|
|
|
|
+ this.$util.msg('请输入正确的邮箱地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.clubName == ''){
|
|
|
|
+ this.$util.msg('请输入机构名称',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.addressData.townID == ''){
|
|
|
|
+ this.$util.msg('请选择机构地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.addressData.addressDetail == ''){
|
|
|
|
+ this.$util.msg('请填写机构详细地址',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.socialCreditCode == ''){
|
|
|
|
+ this.$util.msg('请填写社会统一社会信用代码',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.uploadBusinessImage == ''){
|
|
|
|
+ this.$util.msg('请上传您的营业执照',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.isOrganizationType!=0){
|
|
|
|
+ if(this.mainpro == ''){
|
|
|
|
+ this.$util.msg('请选择住机构主营内容',2000);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let params = {
|
|
userID:this.userID,
|
|
userID:this.userID,
|
|
- clubID:this.clubID, //会所ID
|
|
|
|
- name:this.clubName,
|
|
|
|
|
|
+ clubID:this.clubID, //会所ID
|
|
linkMan1:this.clubContact,
|
|
linkMan1:this.clubContact,
|
|
|
|
+ contractEmail1:this.registerEmail,
|
|
|
|
+ name:this.clubName,
|
|
sname:this.abbreviation,
|
|
sname:this.abbreviation,
|
|
provinceID:this.addressData.provinceID,
|
|
provinceID:this.addressData.provinceID,
|
|
cityID:this.addressData.cityID,
|
|
cityID:this.addressData.cityID,
|
|
@@ -401,23 +514,19 @@ import { mapMutations } from 'vuex';
|
|
socialCreditCode:this.socialCreditCode,
|
|
socialCreditCode:this.socialCreditCode,
|
|
businessLicenseImage:this.uploadBusinessImage,
|
|
businessLicenseImage:this.uploadBusinessImage,
|
|
headpic:this.uploadMentuzImage,
|
|
headpic:this.uploadMentuzImage,
|
|
- firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
|
|
|
|
|
|
+ firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
|
|
secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
|
|
department:this.department, //科室
|
|
department:this.department, //科室
|
|
medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
|
|
- isAgreed:this.isAgreed, //是否勾选协议
|
|
|
|
mainpro:this.mainpro,
|
|
mainpro:this.mainpro,
|
|
fax:this.clubFax,
|
|
fax:this.clubFax,
|
|
contractPhone:this.clubTelePhone,
|
|
contractPhone:this.clubTelePhone,
|
|
info : this.companyPprofile,
|
|
info : this.companyPprofile,
|
|
- status:this.status
|
|
|
|
}
|
|
}
|
|
- sellerClubUpdate(params).then(response =>{
|
|
|
|
- this.$util.msg('提交成功',2000,true,'success')
|
|
|
|
|
|
+ organizationRegister(params).then(response =>{
|
|
|
|
+ this.$util.msg('您的升级申请已提交审核',2000);
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
- uni.navigateBack({
|
|
|
|
- delta: 1
|
|
|
|
- });
|
|
|
|
|
|
+ uni.navigateBack({delta: 1})
|
|
},2000)
|
|
},2000)
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000);
|
|
this.$util.msg(error.msg,2000);
|
|
@@ -545,14 +654,6 @@ import { mapMutations } from 'vuex';
|
|
}
|
|
}
|
|
return arr.join('/')
|
|
return arr.join('/')
|
|
},
|
|
},
|
|
- agreeCheck() {
|
|
|
|
- this.isCheck = !this.isCheck
|
|
|
|
- if(this.isCheck){
|
|
|
|
- this.isAgreed = 1
|
|
|
|
- }else{
|
|
|
|
- this.isAgreed = 0
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
onBlurInput(e){//
|
|
onBlurInput(e){//
|
|
if(e.detail.value ===''){
|
|
if(e.detail.value ===''){
|
|
this.isDisabled = true
|
|
this.isDisabled = true
|
|
@@ -580,8 +681,19 @@ import { mapMutations } from 'vuex';
|
|
this.medicaCampList.push(item)
|
|
this.medicaCampList.push(item)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- showOpenError(){//顶部审核信息详情
|
|
|
|
- this.isOpenError = !this.isOpenError
|
|
|
|
|
|
+ showUpgrade(){
|
|
|
|
+ this.isUpgrade = true
|
|
|
|
+ this.isShowUpgrade = true
|
|
|
|
+ this.isDownUpgrade = false
|
|
|
|
+ this.registerBtnText = '提交审核'
|
|
|
|
+ },
|
|
|
|
+ hideUpgrade(){
|
|
|
|
+ this.$util.modal('提示','收起后,您填写的升级信息将会被清空确定收起吗?','确定','取消',true,() =>{
|
|
|
|
+ this.isUpgrade = false
|
|
|
|
+ this.isShowUpgrade = false
|
|
|
|
+ this.isDownUpgrade = true
|
|
|
|
+ this.registerBtnText = '确定'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -598,104 +710,16 @@ import { mapMutations } from 'vuex';
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
border-top: 1px solid #F7F7F7;
|
|
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;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ background: #EFEFEF;
|
|
.register-main{
|
|
.register-main{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
|
|
+ background: #FFFFFF;
|
|
&.detailed{
|
|
&.detailed{
|
|
- padding-bottom: 300rpx;
|
|
|
|
|
|
+ padding-bottom: 200rpx;
|
|
}
|
|
}
|
|
&.first{
|
|
&.first{
|
|
- padding-top: 110rpx;
|
|
|
|
|
|
+ padding-top: 30rpx;
|
|
}
|
|
}
|
|
.register-tips{
|
|
.register-tips{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -714,14 +738,64 @@ import { mapMutations } from 'vuex';
|
|
height: auto;
|
|
height: auto;
|
|
padding: 0 24rpx;
|
|
padding: 0 24rpx;
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
- .register-title{
|
|
|
|
- line-height: 60rpx;
|
|
|
|
- font-size: $font-size-32;
|
|
|
|
|
|
+ &.none{
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
+ }
|
|
|
|
+ .error-title{
|
|
|
|
+ line-height: 40rpx;
|
|
|
|
+ font-size: $font-size-28;
|
|
color: $text-color;
|
|
color: $text-color;
|
|
text-align: left;
|
|
text-align: left;
|
|
- padding-left: 20rpx;
|
|
|
|
- .txt{
|
|
|
|
|
|
+ }
|
|
|
|
+ .error-main{
|
|
|
|
+ padding: 10rpx 0;
|
|
|
|
+ .error-item{
|
|
|
|
+ padding:0 20rpx;
|
|
|
|
+ margin:10rpx;
|
|
|
|
+ background: #F53636;
|
|
|
|
+ height: 52rpx;
|
|
|
|
+ line-height: 52rpx;
|
|
|
|
+ border-radius: 26rpx;
|
|
font-size: $font-size-26;
|
|
font-size: $font-size-26;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ text-align: center;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .register-txt{
|
|
|
|
+ line-height: 44rpx;
|
|
|
|
+ font-size: $font-size-26;
|
|
|
|
+ color: $text-color;
|
|
|
|
+ text-align: left;
|
|
|
|
+ &.first{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .register-bet{
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ line-height: 60rpx;
|
|
|
|
+ height: 60rpx;
|
|
|
|
+ align-items: center;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ color: $color-system;
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
+ text{
|
|
|
|
+ margin: 0 5rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .register-tip{
|
|
|
|
+ line-height: 64rpx;
|
|
|
|
+ font-size: $font-size-24;
|
|
|
|
+ color: #CECECE;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .register-title{
|
|
|
|
+ font-size: $font-size-32;
|
|
|
|
+ color: $text-color;
|
|
|
|
+ text{
|
|
|
|
+ font-size: $font-size-24;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.row-btn{
|
|
.row-btn{
|
|
@@ -848,7 +922,7 @@ import { mapMutations } from 'vuex';
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
margin-top: 30rpx;
|
|
margin-top: 30rpx;
|
|
.label{
|
|
.label{
|
|
- line-height: 70rpx;
|
|
|
|
|
|
+ line-height: 76rpx;
|
|
}
|
|
}
|
|
.row-input{
|
|
.row-input{
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -876,7 +950,7 @@ import { mapMutations } from 'vuex';
|
|
align-items: center;
|
|
align-items: center;
|
|
&.btn{
|
|
&.btn{
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- margin-left: 126rpx;
|
|
|
|
|
|
+ margin-left: 116rpx;
|
|
}
|
|
}
|
|
.row-input{
|
|
.row-input{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -953,7 +1027,12 @@ import { mapMutations } from 'vuex';
|
|
}
|
|
}
|
|
.register-picture{
|
|
.register-picture{
|
|
height: 102rpx;
|
|
height: 102rpx;
|
|
- margin: 40rpx 0 0 0;
|
|
|
|
|
|
+ margin: 30rpx 0;
|
|
|
|
+ width: 42%;
|
|
|
|
+ float: left;
|
|
|
|
+ &.zz{
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
.label{
|
|
.label{
|
|
float: left;
|
|
float: left;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
@@ -1035,6 +1114,22 @@ import { mapMutations } from 'vuex';
|
|
left: 0;
|
|
left: 0;
|
|
z-index: 99;
|
|
z-index: 99;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
|
|
+ .register-bet{
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ line-height: 60rpx;
|
|
|
|
+ height: 60rpx;
|
|
|
|
+ align-items: center;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ color: $color-system;
|
|
|
|
+ .icon-xiangxiajiantou{
|
|
|
|
+ transform:rotate(180deg);
|
|
|
|
+ }
|
|
|
|
+ text{
|
|
|
|
+ margin: 0 5rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.register-agree{
|
|
.register-agree{
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|