information.vue 33 KB

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