information.vue 30 KB

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