information.vue 33 KB

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