information.vue 31 KB

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