apply.vue 34 KB

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