apply.vue 34 KB

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