information.vue 30 KB

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