apply.vue 32 KB

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