apply.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main first clearfix" v-if="clubStatus == 92">
  5. <view class="register-row none clearfix">
  6. <view class="error-title">审核未通过原因:</view>
  7. <view class="error-main">
  8. <text class="error-item" v-for="(item, index) in errorList" :key="index">
  9. {{ item }}
  10. </text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="register-main first clearfix">
  15. <view class="register-row clearfix">
  16. <text class="register-title">注册信息</text>
  17. </view>
  18. <view class="register-row clearfix">
  19. <view class="register-from">
  20. <view class="label">联系人:</view>
  21. <input class="row-input" type="text" name="input" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
  22. </view>
  23. </view>
  24. <view class="register-row clearfix">
  25. <view class="register-from">
  26. <view class="label">手机号:</view>
  27. <view class="row-input">{{ mobile }}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="register-main clearfix">
  32. <view class="register-row">
  33. <view class="register-title">其他信息</view>
  34. </view>
  35. <view class="register-row clearfix">
  36. <view class="register-from">
  37. <view class="label">固定电话:</view>
  38. <input class="row-input" type="text" v-model="clubTelePhone" placeholder="请填写机构的固定电话" maxlength="15"/>
  39. </view>
  40. </view>
  41. <view class="register-row clearfix">
  42. <view class="register-from">
  43. <view class="label">传真:</view>
  44. <input class="row-input" type="text" v-model="clubFax" placeholder="请填写机构的传真" maxlength="15"/>
  45. </view>
  46. </view>
  47. <view class="register-row text-textarea clearfix">
  48. <textarea class="textarea"
  49. type="text"
  50. v-model="companyPprofile"
  51. placeholder="请填写公司简介,最多500字"
  52. placeholder-class="placeholder"
  53. maxlength="500"
  54. @input="onTextareaInputInfo"
  55. :class="isShowInput ? '':''"
  56. />
  57. </view>
  58. </view>
  59. <view class="register-main clearfix" v-if="clubStatus == 90" :class="isUpgrade ? '' : 'detailed'">
  60. <view class="register-row clearfix">
  61. <view class="register-txt first"><text>您还可以填写更多信息,帮机构直接注册成为会员机构。</text></view>
  62. <view class="register-txt"><text>不过这些信息需要审核。</text></view>
  63. <view class="register-bet" @tap.stop="showUpgrade()" v-if="isDownUpgrade">
  64. <text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
  65. </view>
  66. </view>
  67. <view class="register-fiexd clearfix">
  68. <view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
  69. <text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
  70. </view>
  71. <view class="register-row ">
  72. <view class="register-btn sub" @click.stop="organizationUpgradeInfo">{{registerBtnText}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="register-main clearfix" v-else>
  77. <view class="register-fiexd clearfix">
  78. <view class="register-row ">
  79. <view class="register-btn sub" @click.stop="organizationUpdateInfo">提交审核</view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="register-main detailed clearfix" v-if="isShowUpgrade">
  84. <view class="register-row">
  85. <view class="register-title">升级信息</view>
  86. </view>
  87. <view class="register-row clearfix">
  88. <view class="register-from">
  89. <view class="label">邮箱:</view>
  90. <input class="row-input" type="text" name="input" v-model="registerEmail" placeholder="请输入您的常用邮箱" maxlength="30"/>
  91. </view>
  92. </view>
  93. <view class="register-row clearfix">
  94. <view class="register-from">
  95. <view class="label">机构名称:</view>
  96. <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
  97. </view>
  98. </view>
  99. <view class="register-row clearfix">
  100. <view class="register-from">
  101. <view class="label">机构简称:</view>
  102. <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
  103. </view>
  104. </view>
  105. <view class="register-row clearfix">
  106. <view class="register-from" @click="showMulLinkageThreePicker">
  107. <view class="label">机构地址:</view>
  108. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  109. {{addressData.address }}
  110. </text>
  111. <text class="iconfont icon-xiayibu"></text>
  112. </view>
  113. </view>
  114. <view class="register-row text-textarea clearfix">
  115. <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  116. <textarea v-else
  117. class="textarea"
  118. type="text"
  119. v-model="addressData.addressDetail"
  120. placeholder="详细地址:如道路、门牌号、小区等"
  121. placeholder-class="placeholder"
  122. maxlength="25"
  123. @input="onTextareaInput"
  124. :class="isShowInput ? '':''"
  125. />
  126. </view>
  127. <view class="register-row clearfix">
  128. <view class="register-from">
  129. <view class="label">营业执照编号:</view>
  130. <input class="row-input" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="18"/>
  131. </view>
  132. </view>
  133. <view class="register-row clearfix">
  134. <view class="register-picture">
  135. <view class="label">营业执照:</view>
  136. <view class="upload-picture">
  137. <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  138. <view class="upload-image" v-else>
  139. <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
  140. <view class="upload-del" @click="delBusinessImage">
  141. <text class='iconfont icon-shanchu1'></text>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="register-picture">
  147. <view class="label">门头照:</view>
  148. <view class="upload-picture">
  149. <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
  150. <view class="upload-image" v-else>
  151. <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
  152. <view class="upload-del" @click="delMentuzImage">
  153. <text class='iconfont icon-shanchu1'></text>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="register-row clearfix">
  160. <view class="register-from picker">
  161. <view class="label">机构类型:</view>
  162. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  163. <text class="iconfont icon-xiayibu"></text>
  164. </view>
  165. </view>
  166. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  167. <view class="register-from radio">
  168. <radio-group @change="radioChange">
  169. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  170. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  171. <view class="row-text">{{item.name}}</view>
  172. </label>
  173. </radio-group>
  174. </view>
  175. </view>
  176. <view class="register-row clearfix" v-show="isDepartment">
  177. <view class="register-from">
  178. <view class="label">科室:</view>
  179. <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
  180. </view>
  181. </view>
  182. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  183. <view class="register-picture zz">
  184. <view class="label zz">医疗执业许可证:</view>
  185. <view class="upload-picture">
  186. <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
  187. <view class="upload-image" v-else>
  188. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  189. <view class="upload-del" @click="delMedicalImage">
  190. <text class='iconfont icon-shanchu1'></text>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  197. <view class="register-from group">
  198. <view class="label">主营内容:</view>
  199. <checkbox-group class="content-class" @change="chooseMaleLike" >
  200. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  201. <checkbox :value="item.value"></checkbox>
  202. <text class="item-text">{{item.name}}</text>
  203. </label>
  204. </checkbox-group>
  205. </view>
  206. <view class="register-from group btn">
  207. <view class="content-class btn">
  208. <view class="item" @click="showAustomItem">
  209. <text class="item-text">其他</text>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="register-from group btn" v-show="isShowAustomItem">
  214. <view class="content-class btn">
  215. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  216. <button type="default"
  217. class="confirm-btn"
  218. :class="[isDisabled === true ? 'disabled' : 'none']"
  219. :disabled="isDisabled"
  220. @click.stop="addCustomItem"
  221. >确认添加</button>
  222. </view>
  223. </view>
  224. </view>
  225. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  226. <view class="register-from group">
  227. <view class="label">主营内容:</view>
  228. <checkbox-group class="content-class" @change="chooseMaleLikes">
  229. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  230. <checkbox :value="item.value"></checkbox>
  231. <text class="item-text">{{item.name}}</text>
  232. </label>
  233. </checkbox-group>
  234. </view>
  235. <view class="register-from group btn">
  236. <view class="content-class btn">
  237. <view class="item" @click="showAustomItem">
  238. <text class="item-text">其他</text>
  239. </view>
  240. </view>
  241. </view>
  242. <view class="register-from group btn" v-show="isShowAustomItem">
  243. <view class="content-class btn">
  244. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  245. <button type="default"
  246. class="confirm-btn"
  247. :class="[isDisabled === true ? 'disabled' : 'none']"
  248. :disabled="isDisabled"
  249. @click.stop="addCustomItem"
  250. >确认添加</button>
  251. </view>
  252. </view>
  253. </view>
  254. <mpvue-city-picker :themeColor="themeColor"
  255. ref="mpvueCityPicker"
  256. :pickerValueDefault="cityPickerValueDefault"
  257. @onCancel="onCancel"
  258. @onConfirm="onConfirm">
  259. </mpvue-city-picker>
  260. </view>
  261. </view>
  262. </template>
  263. <script>
  264. import { mapMutations } from 'vuex';
  265. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  266. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  267. import { organizationUpdateModifyInfo , organizationRegister ,organizationUpdate } from "@/api/use.js"
  268. import { uploadFileImage } from "@/api/utils.js"
  269. export default{
  270. components:{
  271. mpvueCityPicker
  272. },
  273. data() {
  274. return{
  275. nvabarData: { //顶部自定义导航
  276. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  277. showSearch: 0,
  278. title: '修改资料', // 导航栏 中间的标题
  279. haveBack:true,
  280. textLeft:this.$store.state.isIphone
  281. },
  282. CustomBar:this.CustomBar,// 顶部导航栏高度
  283. errorList:[],
  284. tabCurrentIndex:3,
  285. clubStatus:'', //审核状态
  286. isPreviewImage:false, //预览图片开关
  287. userID:'', //用户ID
  288. clubID:'', //会所ID
  289. clubContact:'', //联系人姓名
  290. mobile:'', //联系人手机号
  291. registerEmail:'', //邮箱
  292. clubName:'', //机构名称
  293. abbreviation:'', //机构简称
  294. socialCreditCode:'', //统一社会信用代码
  295. isDisabled:true,
  296. isShowInput:false,
  297. isUpgrade:false,
  298. isShowUpgrade:false,
  299. isDownUpgrade:true,
  300. uploadBusinessImage:'', //营业执照图片
  301. uploadMentuzImage:'', //门头照图片
  302. uploadMedicalImage:'', //资质照图片
  303. department:'', //科室
  304. isDepartment:false, //是否显示科室
  305. secondClubType:'', //机构类型二级分类
  306. mainpro:'', //主营内容
  307. clubTelePhone:'', //固定电话
  308. clubFax:'', //传真
  309. companyPprofile:'', //公司简介
  310. firstClubType:'', //机构类型
  311. isOrganizationType:0,
  312. organizationTypeText:'请选择机构类型',
  313. beautyList:beautyList,//医美分类
  314. mentuzCampNullList:mentuzCampNullList,//医美分类
  315. medicaCampNullList:medicaCampNullList,//生美分类
  316. mentuzCampList:[], //医美主营
  317. medicaCampList:[], //生美主营
  318. typtIndex:0,
  319. organizationType:0,
  320. current:0,
  321. isShowAustomItem:false, //是否显示其他添加
  322. customItemValue:'', //自定义项目
  323. isMainproCheck:false,
  324. addressData:{
  325. address:'请选择机构所在地区',
  326. townID:'', //区ID
  327. cityID:'', //市ID
  328. provinceID:'', //省ID
  329. addressDetail: '', //地址详情
  330. },
  331. registerBtnText:'确定'
  332. }
  333. },
  334. onLoad(option) {
  335. this.userID = option.userID
  336. this.organizationInfo()
  337. },
  338. methods:{
  339. hanldNavigateBack(){
  340. this.$util.modal('','资料尚未提交审核,确定放弃升级吗?','确定','取消',true,() =>{
  341. uni.navigateBack({
  342. delta: 1
  343. });
  344. })
  345. },
  346. organizationInfo(){
  347. organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
  348. let organizationClub = response.data.club
  349. let organizationUser = response.data.user
  350. this.clubStatus = organizationClub.status
  351. if(this.clubStatus === 90){
  352. this.isShowUpgrade = false
  353. }else{
  354. this.isShowUpgrade = true
  355. }
  356. if(organizationUser.auditNoteList!=null){
  357. this.errorList =organizationUser.auditNoteList
  358. }
  359. this.clubContact = organizationClub.linkMan1
  360. this.mobile = organizationUser.bindMobile
  361. this.registerEmail = organizationUser.email
  362. this.clubID = organizationUser.clubID
  363. this.clubName = this.$reg.checkData(organizationClub.name)
  364. this.abbreviation = this.$reg.checkData(organizationClub.sname)
  365. if( organizationClub.provinceID == null ){
  366. this.addressData.provinceID = ''
  367. }else{
  368. this.addressData.provinceID = organizationClub.provinceID
  369. }
  370. if( organizationClub.cityID == null ){
  371. this.addressData.cityID = ''
  372. }else{
  373. this.addressData.cityID = organizationClub.cityID
  374. }
  375. if( organizationClub.townID == null ){
  376. this.addressData.townID = ''
  377. }else{
  378. this.addressData.townID = organizationClub.townID
  379. }
  380. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
  381. this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
  382. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  383. this.firstClubType = organizationClub.firstClubType
  384. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  385. this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
  386. this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
  387. this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
  388. this.department = this.$reg.checkData(organizationClub.department)
  389. this.clubTelePhone = this.$reg.checkData(organizationClub.contractPhone)
  390. this.clubFax = this.$reg.checkData(organizationClub.fax)
  391. this.companyPprofile = this.$reg.checkData(organizationClub.info)
  392. //机构类型&&主营项目
  393. switch(this.firstClubType){
  394. case '1':
  395. this.organizationTypeText = '医美'
  396. this.isOrganizationType = 1
  397. break;
  398. case '2':
  399. this.organizationTypeText = '生美'
  400. this.isOrganizationType = 2
  401. break;
  402. case null:
  403. this.organizationTypeText = '请选择机构类型'
  404. this.isOrganizationType = 0
  405. break;
  406. }
  407. if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
  408. this.mentuzCampList = this.mentuzCampNullList
  409. this.medicaCampList = this.medicaCampNullList
  410. }else{
  411. if(this.firstClubType == '1'){
  412. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  413. this.medicaCampList = this.medicaCampNullList
  414. }else{
  415. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  416. this.mentuzCampList = this.mentuzCampNullList
  417. }
  418. }
  419. //机构类型
  420. switch(this.secondClubType){
  421. case '1':this.current = 0;break;
  422. case '2':this.current = 1;this.isDepartment=true;break;
  423. case '3':this.current = 2;this.isDepartment=true;break;
  424. }
  425. }).catch(error =>{
  426. this.$util.msg(error.msg,2000)
  427. })
  428. },
  429. organizationUpdateInfo(){//普通机构修改资料
  430. this.clubUpgradeApi()
  431. },
  432. organizationUpgradeInfo(){//普通机构提交审核
  433. if(this.isUpgrade){
  434. this.clubUpgradeApi()
  435. }else{
  436. let params = {
  437. userID:this.userID,
  438. clubID:this.clubID, //会所ID
  439. linkMan1:this.clubContact,
  440. fax:this.clubFax,
  441. contractPhone:this.clubTelePhone,
  442. info : this.companyPprofile,
  443. }
  444. organizationUpdate(params).then(response =>{
  445. this.$util.msg('修改成功',2000,true,'success')
  446. setTimeout(()=>{
  447. uni.navigateBack({delta: 1})
  448. },2000)
  449. }).catch(error =>{
  450. this.$util.msg(error.msg,2000);
  451. })
  452. }
  453. },
  454. clubUpgradeApi(){
  455. if(this.isMainproCheck){
  456. let mainproList = []
  457. if(this.firstClubType == '1'){
  458. this.mentuzCampList.forEach(item =>{
  459. mainproList.push(item.name)
  460. })
  461. }else{
  462. this.medicaCampList.forEach(item =>{
  463. mainproList.push(item.name)
  464. })
  465. }
  466. this.mainpro = mainproList.join('/')
  467. }
  468. if( this.registerEmail == ''){
  469. this.$util.msg('请输入邮箱地址',2000);
  470. return
  471. }
  472. if( !this.$reg.isEmail(this.registerEmail)){
  473. this.$util.msg('请输入正确的邮箱地址',2000);
  474. return
  475. }
  476. if( this.clubName == ''){
  477. this.$util.msg('请输入机构名称',2000);
  478. return
  479. }
  480. if( this.addressData.townID == ''){
  481. this.$util.msg('请选择机构地址',2000);
  482. return
  483. }
  484. if( this.addressData.addressDetail == ''){
  485. this.$util.msg('请填写机构详细地址',2000);
  486. return
  487. }
  488. if( this.socialCreditCode == ''){
  489. this.$util.msg('请填写社会统一社会信用代码',2000);
  490. return
  491. }
  492. if( this.uploadBusinessImage == ''){
  493. this.$util.msg('请上传您的营业执照',2000);
  494. return
  495. }
  496. console.log(this.isOrganizationType)
  497. if(this.isOrganizationType!=0){
  498. if(this.mainpro == ''){
  499. this.$util.msg('请选择住机构主营内容',2000);
  500. return
  501. }
  502. }
  503. let params = {
  504. userID:this.userID,
  505. clubID:this.clubID, //会所ID
  506. linkMan1:this.clubContact,
  507. contractEmail1:this.registerEmail,
  508. name:this.clubName,
  509. sname:this.abbreviation,
  510. provinceID:this.addressData.provinceID,
  511. cityID:this.addressData.cityID,
  512. townID:this.addressData.townID,
  513. address:this.addressData.addressDetail,
  514. socialCreditCode:this.socialCreditCode,
  515. businessLicenseImage:this.uploadBusinessImage,
  516. headpic:this.uploadMentuzImage,
  517. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  518. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  519. department:this.department, //科室
  520. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  521. mainpro:this.mainpro,
  522. fax:this.clubFax,
  523. contractPhone:this.clubTelePhone,
  524. info : this.companyPprofile,
  525. }
  526. organizationRegister(params).then(response =>{
  527. this.$util.msg('您的升级申请已提交审核',2000);
  528. setTimeout(()=>{
  529. uni.navigateBack({delta: 1})
  530. },2000)
  531. }).catch(error =>{
  532. this.$util.msg(error.msg,2000);
  533. })
  534. },
  535. // 三级联动选择
  536. showMulLinkageThreePicker() {
  537. this.isShowInput = true
  538. this.$refs.mpvueCityPicker.show()
  539. },
  540. onConfirm(e) {
  541. this.addressData.address = e.name;
  542. this.addressData.townID = e.townCode;
  543. this.addressData.cityID = e.cityCode;
  544. this.addressData.provinceID = e.provinceCode;
  545. },
  546. onTextareaInput(e){
  547. this.addressData.addressDetail = e.detail.value;
  548. },
  549. chooseBusinessImage() {//营业执照图片上传
  550. uploadFileImage().then(res =>{
  551. this.uploadBusinessImage = JSON.parse(res.data).data
  552. })
  553. },
  554. chooseMentuzImage() {//门头照图片上传
  555. uploadFileImage().then(res =>{
  556. this.uploadMentuzImage = JSON.parse(res.data).data
  557. })
  558. },
  559. chooseMedicalImage() {//资质照图片上传
  560. uploadFileImage().then(res =>{
  561. this.uploadMedicalImage = JSON.parse(res.data).data
  562. })
  563. },
  564. viewBusinessImage(e) {
  565. this.myPreviewImageFn(this.uploadBusinessImage)
  566. },
  567. viewMentuzImage(e) {
  568. this.myPreviewImageFn(this.uploadMentuzImage)
  569. },
  570. viewMedicalImage(e) {
  571. this.myPreviewImageFn(this.uploadMedicalImage)
  572. },
  573. myPreviewImageFn(url){
  574. this.isPreviewImage = true
  575. let mentuzArray = []
  576. mentuzArray.push(url)
  577. uni.previewImage({
  578. urls: mentuzArray,
  579. current: 0
  580. });
  581. },
  582. delBusinessImage(){
  583. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  584. this.uploadBusinessImage = ''
  585. })
  586. },
  587. delMentuzImage(){
  588. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  589. this.uploadMentuzImage = ''
  590. })
  591. },
  592. delMedicalImage(){
  593. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  594. this.uploadMedicalImage = ''
  595. })
  596. },
  597. bindPickerChange() {
  598. let self = this
  599. uni.showActionSheet({
  600. title:'标题',
  601. itemList: ['医美', '生美'],
  602. success: (e) => {
  603. self.isOrganizationType = e.tapIndex+1
  604. switch(e.tapIndex){
  605. case 0:
  606. this.organizationTypeText = '医美'
  607. break;
  608. case 1:
  609. this.organizationTypeText = '生美'
  610. break;
  611. }
  612. }
  613. })
  614. },
  615. bindPickerChange2(e) {
  616. this.typtIndex = e.target.value
  617. this.isOrganizationType = e.target.value
  618. },
  619. radioChange(e) {
  620. this.secondClubType = e.target.value;
  621. if( this.secondClubType == '2' || this.secondClubType == '3'){
  622. this.isDepartment = true
  623. }else{
  624. this.isDepartment = false
  625. }
  626. for (let i = 0; i < this.beautyList.length; i++) {
  627. if (this.beautyList[i].value === this.secondClubType) {
  628. this.current = i;
  629. break;
  630. }
  631. }
  632. },
  633. chooseMaleLike(e){
  634. this.isMainproCheck = true
  635. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  636. },
  637. chooseMaleLikes(e){
  638. this.isMainproCheck = true
  639. this.mainpro = this.checkLikes(e,this.medicaCampList)
  640. },
  641. checkLikes(e,list){
  642. let values = e.detail.value
  643. let arr = []
  644. list.forEach(item => {
  645. if(values.indexOf(item.value) >= 0){
  646. this.$set(item,'checked',true)
  647. arr.push(item.name)
  648. }else{
  649. this.$set(item,'checked',false)
  650. }
  651. })
  652. return arr.join('/')
  653. },
  654. onBlurInput(e){//
  655. if(e.detail.value ===''){
  656. this.isDisabled = true
  657. }else{
  658. this.isDisabled = false
  659. }
  660. },
  661. showAustomItem() {
  662. this.isShowAustomItem = !this.isShowAustomItem
  663. },
  664. setNewMainpro(arr){//回显处理主营内容
  665. let _ARRAY = []
  666. arr.split('/').forEach((item,index) =>{
  667. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  668. _ARRAY.push(_OBJ)
  669. })
  670. return _ARRAY
  671. },
  672. addCustomItem(){
  673. if(this.isOrganizationType == 1){
  674. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  675. this.mentuzCampList.push(item)
  676. }else{
  677. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  678. this.medicaCampList.push(item)
  679. }
  680. },
  681. showUpgrade(){
  682. this.isUpgrade = true
  683. this.isShowUpgrade = true
  684. this.isDownUpgrade = false
  685. this.registerBtnText = '提交审核'
  686. },
  687. hideUpgrade(){
  688. this.$util.modal('提示','收起后,您填写的升级信息将会被清空确定收起吗?','确定','取消',true,() =>{
  689. this.isUpgrade = false
  690. this.isShowUpgrade = false
  691. this.isDownUpgrade = true
  692. this.registerBtnText = '确定'
  693. })
  694. }
  695. },
  696. onShow() {
  697. if(this.isPreviewImage){
  698. this.isPreviewImage = false
  699. return
  700. }
  701. }
  702. }
  703. </script>
  704. <style lang="scss">
  705. .register{
  706. width: 100%;
  707. height: auto;
  708. border-top: 1px solid #F7F7F7;
  709. background: #EFEFEF;
  710. .register-main{
  711. width: 100%;
  712. height: auto;
  713. background: #FFFFFF;
  714. &.detailed{
  715. padding-bottom: 200rpx;
  716. }
  717. &.first{
  718. padding-top: 30rpx;
  719. }
  720. .register-tips{
  721. display: flex;
  722. flex-direction: column;
  723. align-items: center;
  724. line-height: 44rpx;
  725. font-size: $font-size-24;
  726. color: #FF0000;
  727. margin-bottom: 40rpx;
  728. .iconfont{
  729. font-size: $font-size-24;
  730. }
  731. }
  732. .register-row{
  733. width: 702rpx;
  734. height: auto;
  735. padding: 0 24rpx;
  736. margin-bottom: 20rpx;
  737. &.none{
  738. margin-bottom: 0;
  739. }
  740. .error-title{
  741. line-height: 40rpx;
  742. font-size: $font-size-28;
  743. color: $text-color;
  744. text-align: left;
  745. }
  746. .error-main{
  747. padding: 10rpx 0;
  748. .error-item{
  749. padding:0 20rpx;
  750. margin:10rpx;
  751. background: #F53636;
  752. height: 52rpx;
  753. line-height: 52rpx;
  754. border-radius: 26rpx;
  755. font-size: $font-size-26;
  756. color: #FFFFFF;
  757. text-align: center;
  758. display: inline-block;
  759. }
  760. }
  761. .register-txt{
  762. line-height: 44rpx;
  763. font-size: $font-size-26;
  764. color: $text-color;
  765. text-align: left;
  766. &.first{
  767. margin-top: 20rpx;
  768. }
  769. }
  770. .register-bet{
  771. width: 100%;
  772. display: flex;
  773. line-height: 60rpx;
  774. height: 60rpx;
  775. align-items: center;
  776. flex-direction: column;
  777. font-size: $font-size-28;
  778. color: $color-system;
  779. margin-top: 40rpx;
  780. text{
  781. margin: 0 5rpx;
  782. }
  783. }
  784. .register-tip{
  785. line-height: 64rpx;
  786. font-size: $font-size-24;
  787. color: #CECECE;
  788. text-align: left;
  789. }
  790. .register-title{
  791. font-size: $font-size-32;
  792. color: $text-color;
  793. text{
  794. font-size: $font-size-24;
  795. }
  796. }
  797. .row-btn{
  798. position: absolute;
  799. right: 24rpx;
  800. top: 0;
  801. line-height: 88rpx;
  802. text-align: center;
  803. font-size: $font-size-28;
  804. color: $color-system;
  805. }
  806. .register-from{
  807. width: 654rpx;
  808. height: 40rpx;
  809. padding: 24rpx;
  810. background: $sub-bg-color;
  811. border-radius: 14rpx;
  812. position: relative;
  813. .label{
  814. text-align: left;
  815. font-size: $font-size-28;
  816. color: #666666;
  817. line-height: 40rpx;
  818. float: left;
  819. }
  820. .row-input{
  821. width: 440rpx;
  822. padding-left:10rpx;
  823. font-size: $font-size-28;
  824. color: $text-color;
  825. line-height: 40rpx;
  826. float: left;
  827. height: 40rpx;
  828. &.none{
  829. color: #999999;
  830. }
  831. &.picker{
  832. text-align: left;
  833. color: #999999;
  834. }
  835. &.keshi{
  836. width: 550rpx;
  837. }
  838. }
  839. &.code{
  840. width: 410rpx;
  841. float: left;
  842. margin-right: 20rpx;
  843. .row-input{
  844. width: 390rpx;
  845. }
  846. }
  847. &.btn{
  848. width: 224rpx;
  849. height: 88rpx;
  850. float: left;
  851. background: $btn-confirm;
  852. padding: 0;
  853. .row-input{
  854. width: 224rpx;
  855. height: 88rpx;
  856. line-height: 88rpx;
  857. padding: 0;
  858. color: #FFFFFF;
  859. background: $btn-confirm;
  860. text-align: center;
  861. border-radius: 14rpx;
  862. &.other{
  863. width: 224rpx;
  864. background: #F7F7F7;
  865. margin-right: 20rpx;
  866. }
  867. &.none{
  868. background: #F7F7F7;
  869. }
  870. }
  871. &.disabled{
  872. background: #F7F7F7;
  873. .row-input{
  874. background: #F7F7F7;
  875. color: #999999;
  876. }
  877. }
  878. }
  879. &.picker{
  880. padding: 0 24rpx;
  881. width: 654rpx;
  882. height: 88rpx;
  883. line-height: 88rpx;
  884. .label{
  885. line-height: 88rpx;
  886. }
  887. .row-input{
  888. width: 470rpx;
  889. height: 88rpx;
  890. line-height: 88rpx;
  891. padding-left: 30rpx;
  892. }
  893. }
  894. &.radio{
  895. padding: 0 24rpx;
  896. width: 654rpx;
  897. height: 288rpx;
  898. .row-input{
  899. width: 100%;
  900. height: 88rpx;
  901. line-height: 88rpx;
  902. padding-left: 0;
  903. }
  904. .row-radio{
  905. float: left;
  906. transform: scale(0.8);
  907. }
  908. .row-text{
  909. width: 100rpx;
  910. text-align: center;
  911. float: left;
  912. }
  913. }
  914. &.group{
  915. padding: 0 24rpx;
  916. width: 654rpx;
  917. height: auto;
  918. background: #FFFFFF;
  919. margin-top: 30rpx;
  920. .label{
  921. line-height: 76rpx;
  922. }
  923. .row-input{
  924. width: 100%;
  925. height: 88rpx;
  926. line-height: 88rpx;
  927. padding-left: 0;
  928. }
  929. .row-radio{
  930. float: left;
  931. }
  932. .row-text{
  933. width: 100rpx;
  934. text-align: center;
  935. float: left;
  936. }
  937. }
  938. &.btn{
  939. margin-top: 0;
  940. }
  941. .content-class {
  942. margin: 20rpx auto;
  943. display: flex;
  944. flex-flow: row wrap;
  945. justify-content: space-between;
  946. align-items: center;
  947. &.btn{
  948. margin: 0 auto;
  949. margin-left: 116rpx;
  950. }
  951. .row-input{
  952. display: flex;
  953. width: 220rpx;
  954. height: 40rpx;
  955. padding: 24rpx;
  956. text-align: left;
  957. border-radius: 10rpx;
  958. font-size: $font-size-28;
  959. color: $text-color;
  960. }
  961. .confirm-btn{
  962. width: 200rpx;
  963. height: 88rpx;
  964. border-radius: 10rpx;
  965. line-height: 88rpx;
  966. text-align: center;
  967. &.none{
  968. color: #FFFFFF;
  969. background: $btn-confirm;
  970. }
  971. &.disabled{
  972. color: #999999;
  973. }
  974. }
  975. .item {
  976. width: 155rpx;
  977. height: 60rpx;
  978. font-size:$font-size-28;
  979. line-height: 60rpx;
  980. border-radius:10rpx;
  981. margin: 10rpx;
  982. text-align: center;
  983. box-sizing: border-box;
  984. border: 1rpx solid #EFEFEF;
  985. checkbox {
  986. display: none;
  987. }
  988. }
  989. .on {
  990. border-color: $color-system;
  991. color:$color-system;
  992. }
  993. }
  994. }
  995. .icon-xiayibu{
  996. width: 88rpx;
  997. height: 88rpx;
  998. position: absolute;
  999. right: 0;
  1000. top: 0;
  1001. line-height: 88rpx;
  1002. text-align: center;
  1003. }
  1004. &.text-textarea{
  1005. background: #FFFFFF;
  1006. .textarea{
  1007. width: 654rpx;
  1008. height: 180rpx;
  1009. background: #F7F7F7;
  1010. padding: 24rpx;
  1011. font-size: $font-size-28;
  1012. color: $text-color;
  1013. z-index: 1;
  1014. border-radius: 14rpx;
  1015. }
  1016. .textarea.hide{
  1017. opacity: 0;
  1018. }
  1019. .textarea.show{
  1020. color: #999999;
  1021. }
  1022. }
  1023. }
  1024. .register-picture{
  1025. height: 102rpx;
  1026. margin: 30rpx 0;
  1027. width: 42%;
  1028. float: left;
  1029. &.zz{
  1030. width: 100%;
  1031. }
  1032. .label{
  1033. float: left;
  1034. font-size: $font-size-28;
  1035. color: $text-color;
  1036. line-height: 102rpx;
  1037. width: 150rpx;
  1038. text-align: right;
  1039. &.zz{
  1040. width: 230rpx;
  1041. }
  1042. }
  1043. .upload-picture{
  1044. float: left;
  1045. height: 100rpx;
  1046. .upload-none{
  1047. width: 100rpx;
  1048. height: 100rpx;
  1049. text-align: center;
  1050. line-height: 100rpx;
  1051. color: #999999;
  1052. border: 1px solid #999999;
  1053. border-radius: 10rpx;
  1054. margin: 0 20rpx;
  1055. .iconfont{
  1056. font-size: $font-size-28;
  1057. }
  1058. }
  1059. .upload-image{
  1060. width: 100rpx;
  1061. height: 100rpx;
  1062. border-radius: 10rpx;
  1063. margin: 0 20rpx;
  1064. position: relative;
  1065. image{
  1066. width: 100rpx;
  1067. height: 100rpx;
  1068. border-radius: 10rpx;
  1069. }
  1070. .upload-del{
  1071. width: 40rpx;
  1072. height: 40rpx;
  1073. position: absolute;
  1074. top: -20rpx;
  1075. right: -20rpx;
  1076. line-height: 40rpx;
  1077. text-align: center;
  1078. .iconfont{
  1079. font-size: $font-size-32;
  1080. color: #999999;
  1081. }
  1082. }
  1083. }
  1084. }
  1085. }
  1086. .register-input{
  1087. width: 654rpx;
  1088. height: 40rpx;
  1089. padding: 24rpx;
  1090. margin: 0 auto;
  1091. margin-bottom: 60rpx;
  1092. background: #F7F7F7;
  1093. border-radius: 14rpx;
  1094. .input{
  1095. width: 100%;
  1096. height: 100%;
  1097. background: #F7F7F7;
  1098. font-size: $font-size-28;
  1099. line-height: 40rpx;
  1100. color: #333333;
  1101. border-radius: 14rpx;
  1102. }
  1103. }
  1104. .register-fiexd{
  1105. width: 100%;
  1106. height: auto;
  1107. padding: 20rpx 0;
  1108. position: fixed;
  1109. bottom: 0;
  1110. left: 0;
  1111. z-index: 99;
  1112. background: #FFFFFF;
  1113. .register-bet{
  1114. width: 100%;
  1115. display: flex;
  1116. line-height: 60rpx;
  1117. height: 60rpx;
  1118. align-items: center;
  1119. flex-direction: column;
  1120. font-size: $font-size-28;
  1121. color: $color-system;
  1122. margin-bottom: 20rpx;
  1123. .icon-xiangxiajiantou{
  1124. transform:rotate(180deg);
  1125. }
  1126. text{
  1127. margin: 0 5rpx;
  1128. }
  1129. }
  1130. .register-agree{
  1131. display: flex;
  1132. flex-direction: column;
  1133. align-items: center;
  1134. margin: 32rpx 0;
  1135. .agree-text{
  1136. .checkbox{
  1137. float: left;
  1138. margin: 4rpx 6rpx 0 0;
  1139. color: #999999;
  1140. font-size: $font-size-32;
  1141. &.icon-gouxuan{
  1142. color: $color-system;
  1143. }
  1144. }
  1145. font-size: 20rpx;
  1146. line-height: 44rpx;
  1147. color: #999999;
  1148. text{
  1149. color:#0091FF;
  1150. }
  1151. }
  1152. }
  1153. }
  1154. .register-btn{
  1155. width: 702rpx;
  1156. height: 88rpx;
  1157. border-radius: 14rpx;
  1158. font-size: $font-size-28;
  1159. line-height: 88rpx;
  1160. color: #FFFFFF;
  1161. margin: 0 auto;
  1162. text-align: center;
  1163. background: $btn-confirm;
  1164. margin-top: 96rpx;
  1165. &.none{
  1166. background: #FFFFFF;
  1167. color: $text-color;
  1168. margin-top: 0;
  1169. }
  1170. &.sub{
  1171. margin-top: 0;
  1172. }
  1173. }
  1174. }
  1175. }
  1176. </style>