information.vue 29 KB

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