apply.vue 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124
  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="contractEmail" 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="shortName" 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="businessLicense === ''" @click="chooseBusinessImage">
  75. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  76. </view>
  77. <view class="upload-image" v-else>
  78. <image :src="businessLicense" 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="shopPhoto === ''" @click="chooseMentuzImage">
  91. <image src="https://static.caimei365.com/app/img/upload/club-door.png"></image>
  92. </view>
  93. <view class="upload-image" v-else>
  94. <image :src="shopPhoto" 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 second">
  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="medicalPracticeLicense === ''" @click="chooseMedicalImage">
  126. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  127. </view>
  128. <view class="upload-image" v-else>
  129. <image :src="medicalPracticeLicense" 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. contractEmail:'', //邮箱
  228. clubName:'', //机构名称
  229. shortName:'', //机构简称
  230. socialCreditCode:'', //统一社会信用代码
  231. isDisabled:true,
  232. isShowInput:true,
  233. textareaFocus:false,
  234. businessLicense:'', //营业执照图片
  235. shopPhoto:'', //门头照图片
  236. medicalPracticeLicense:'', //资质照图片
  237. department:'', //科室
  238. isDepartment:false, //是否显示科室
  239. secondClubType:'', //机构类型二级分类
  240. mainProduct:'', //主营内容
  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 ? resolve.userId : 0
  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.contractEmail = organizationUser.contractEmail
  291. this.clubId = organizationUser.clubId
  292. this.clubName = this.$reg.checkData(organizationClub.name)
  293. this.shortName = this.$reg.checkData(organizationClub.shortName)
  294. if( organizationClub.provinceId==''||organizationClub.provinceId==null){
  295. this.addressData.provinceId = ''
  296. }else{
  297. this.addressData.provinceId = organizationClub.provinceId
  298. }
  299. if( organizationClub.cityId==''||organizationClub.cityId===null){
  300. this.addressData.cityId = ''
  301. }else{
  302. this.addressData.cityId = organizationClub.cityId
  303. }
  304. if( organizationClub.townId==''||organizationClub.townId==null){
  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.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
  316. this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
  317. this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
  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.mainProduct == "" || organizationClub.mainProduct == null){
  335. this.mentuzCampList = this.mentuzCampNullList
  336. this.medicaCampList = this.medicaCampNullList
  337. }else{
  338. if(this.firstClubType == '1'){
  339. this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
  340. this.medicaCampList = this.medicaCampNullList
  341. }else{
  342. this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
  343. this.mentuzCampList = this.mentuzCampNullList
  344. }
  345. this.mainProduct = organizationClub.mainProduct;
  346. }
  347. //机构类型
  348. switch(this.secondClubType){
  349. case '1':this.current = 0;break;
  350. case '2':this.current = 1;this.isDepartment=true;break;
  351. case '3':this.current = 2;this.isDepartment=true;break;
  352. }
  353. }).catch(error =>{
  354. this.$util.msg(error.msg,2000)
  355. })
  356. })
  357. },
  358. organizationUpdateInfo(){//提交审核
  359. if(!this.isMainproCheck){
  360. let mainproList = []
  361. if(this.firstClubType == '1'){
  362. this.mentuzCampList.forEach(item =>{
  363. mainproList.push(item.name)
  364. })
  365. }else{
  366. this.medicaCampList.forEach(item =>{
  367. mainproList.push(item.name)
  368. })
  369. }
  370. this.mainProduct = mainproList.join('/')
  371. }
  372. if( this.contractEmail == ''){
  373. this.$util.msg('请输入邮箱地址',2000);
  374. return
  375. }
  376. if( !this.$reg.isEmail(this.contractEmail)){
  377. this.$util.msg('请输入正确的邮箱地址',2000);
  378. return
  379. }
  380. if( this.clubName == ''){
  381. this.$util.msg('请输入机构名称',2000);
  382. return
  383. }
  384. if( this.addressData.townId == ''){
  385. this.$util.msg('请选择机构地址',2000);
  386. return
  387. }
  388. if( this.addressData.addressDetail == ''){
  389. this.$util.msg('请填写机构详细地址',2000);
  390. return
  391. }
  392. if( this.businessLicense == ''){
  393. this.$util.msg('请上传您的营业执照',2000);
  394. return
  395. }
  396. if(this.isOrganizationType!=0){
  397. if(this.mainProduct == ''){
  398. this.$util.msg('请选择住机构主营内容',2000);
  399. return
  400. }
  401. }
  402. let params ={
  403. userId:this.userId,
  404. clubId:this.clubId, //会所ID
  405. contractEmail:this.contractEmail,
  406. name:this.clubName,
  407. shortName:this.shortName,
  408. provinceId:this.addressData.provinceId,
  409. cityId:this.addressData.cityId,
  410. townId:this.addressData.townId,
  411. address:this.addressData.addressDetail,
  412. socialCreditCode:this.socialCreditCode,
  413. // businessLicense:this.businessLicense,
  414. businessLicense:'https://static.caimei365.com/app/img/upload/club-zizhi.png',
  415. shopPhoto:this.shopPhoto,
  416. firstClubType:this.isOrganizationType, //机构类型分类 医美:1和生美:2
  417. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  418. department:this.department, //科室
  419. medicalPracticeLicense:this.medicalPracticeLicense,//资质图片
  420. mainProduct:this.mainProduct,
  421. }
  422. this.UserService.OrganizationRegister(params).then(response =>{
  423. this.$util.msg('您的升级申请已提交审核',2000);
  424. setTimeout(()=>{
  425. uni.navigateBack();
  426. },2000)
  427. }).catch(error =>{
  428. this.$util.msg(error.msg,2000);
  429. })
  430. },
  431. // 三级联动选择
  432. showMulLinkageThreePicker() {
  433. this.isShowInput = true
  434. this.$refs.mpvueCityPicker.show()
  435. },
  436. onConfirm(e) {
  437. this.addressData.address = e.name;
  438. this.addressData.townId = e.townCode;
  439. this.addressData.cityId = e.cityCode;
  440. this.addressData.provinceId = e.provinceCode;
  441. },
  442. onTextareaInput(e){
  443. this.addressData.addressDetail = e.detail.value;
  444. },
  445. showTextareaFocus(){//文本框获取焦点
  446. this.isShowInput = false
  447. this.textareaFocus = true
  448. },
  449. hideTextareaFocus(){//文本框失去焦点
  450. this.isShowInput = true
  451. this.textareaFocus = false
  452. },
  453. chooseBusinessImage() {//营业执照图片上传
  454. uploadFileImage().then(res =>{
  455. this.businessLicense = JSON.parse(res.data).data
  456. })
  457. },
  458. chooseMentuzImage() {//门头照图片上传
  459. uploadFileImage().then(res =>{
  460. this.shopPhoto = JSON.parse(res.data).data
  461. })
  462. },
  463. chooseMedicalImage() {//资质照图片上传
  464. uploadFileImage().then(res =>{
  465. this.medicalPracticeLicense = JSON.parse(res.data).data
  466. })
  467. },
  468. viewBusinessImage(e) {
  469. this.myPreviewImageFn(this.businessLicense)
  470. },
  471. viewMentuzImage(e) {
  472. this.myPreviewImageFn(this.shopPhoto)
  473. },
  474. viewMedicalImage(e) {
  475. this.myPreviewImageFn(this.medicalPracticeLicense)
  476. },
  477. myPreviewImageFn(url){
  478. this.isPreviewImage = true
  479. let mentuzArray = []
  480. mentuzArray.push(url)
  481. uni.previewImage({
  482. urls: mentuzArray,
  483. current: 0
  484. });
  485. },
  486. delBusinessImage(){
  487. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  488. this.businessLicense = ''
  489. })
  490. },
  491. delMentuzImage(){
  492. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  493. this.shopPhoto = ''
  494. })
  495. },
  496. delMedicalImage(){
  497. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  498. this.medicalPracticeLicense = ''
  499. })
  500. },
  501. bindPickerChange(e) {
  502. this.isOrganizationType = e.target.value;
  503. // let self = this
  504. // uni.showActionSheet({
  505. // title:'标题',
  506. // itemList: ['医美', '生美'],
  507. // success: (e) => {
  508. // self.isOrganizationType = e.tapIndex+1
  509. // switch(e.tapIndex){
  510. // case 0:
  511. // this.organizationTypeText = '医美'
  512. // break;
  513. // case 1:
  514. // this.organizationTypeText = '生美'
  515. // break;
  516. // }
  517. // }
  518. // })
  519. },
  520. bindPickerChange2(e) {
  521. this.typtIndex = e.target.value
  522. this.isOrganizationType = e.target.value
  523. },
  524. radioChange(item) {
  525. this.secondClubType = item.value;
  526. if( this.secondClubType == '2' || this.secondClubType == '3'){
  527. this.isDepartment = true
  528. }else{
  529. this.isDepartment = false
  530. }
  531. for (let i = 0; i < this.beautyList.length; i++) {
  532. if (this.beautyList[i].value === this.secondClubType) {
  533. this.current = i;
  534. break;
  535. }
  536. }
  537. },
  538. chooseMaleLike(e){
  539. this.isMainproCheck = true
  540. this.mainProduct = this.checkLikes(e,this.mentuzCampList)
  541. },
  542. chooseMaleLikes(e){
  543. this.isMainproCheck = true
  544. this.mainProduct = this.checkLikes(e,this.medicaCampList)
  545. },
  546. checkLikes(e,list){
  547. let values = e.detail.value
  548. let arr = []
  549. list.forEach(item => {
  550. if(values.indexOf(item.value) >= 0){
  551. this.$set(item,'checked',true)
  552. arr.push(item.name)
  553. }else{
  554. this.$set(item,'checked',false)
  555. }
  556. })
  557. return arr.join('/')
  558. },
  559. // onBlurInput(e){//
  560. // if(e.detail.value ===''){
  561. // this.isDisabled = true
  562. // }else{
  563. // this.isDisabled = false
  564. // }
  565. // },
  566. showAustomItem() {
  567. this.isShowAustomItem = !this.isShowAustomItem
  568. },
  569. setNewMainpro(arr){//回显处理主营内容
  570. let _ARRAY = []
  571. arr.split('/').forEach((item,index) =>{
  572. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  573. _ARRAY.push(_OBJ)
  574. })
  575. return _ARRAY
  576. },
  577. addCustomItem(){
  578. if(this.customItemValue==''){
  579. this.$util.msg('请输入自定义主营内容',2000);
  580. }else{
  581. if(this.isOrganizationType == 1){
  582. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  583. if(this.checkedArray(this.customItemValue,this.mentuzCampList)){
  584. this.$util.msg('主营内容已存在!',2000)
  585. }else{
  586. this.mentuzCampList.push(item)
  587. }
  588. }else{
  589. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  590. if(this.checkedArray(this.customItemValue,this.medicaCampList)){
  591. this.$util.msg('主营内容已存在!',2000)
  592. }else{
  593. this.medicaCampList.push(item)
  594. }
  595. }
  596. }
  597. },
  598. checkedArray(content,arr){//判断主营内容是否已存在
  599. console.log(content,arr)
  600. for(var i in arr){
  601. if(arr[i].name == content){
  602. return true;
  603. }
  604. }
  605. return false;
  606. },
  607. },
  608. onShow() {
  609. if(this.isPreviewImage){
  610. this.isPreviewImage = false
  611. return
  612. }
  613. }
  614. }
  615. </script>
  616. <style lang="scss">
  617. .placeholder{color:#b2b2b2 ;}
  618. .register{
  619. width: 100%;
  620. height: auto;
  621. border-top: 1px solid #F7F7F7;
  622. .register-main{
  623. width: 100%;
  624. height: auto;
  625. background: #FFFFFF;
  626. padding: 20rpx 0;
  627. &.title{
  628. 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%);
  629. }
  630. &.detailed{
  631. padding-bottom: 300rpx;
  632. }
  633. &.first{
  634. padding-top: 110rpx;
  635. }
  636. .register-tips{
  637. display: flex;
  638. flex-direction: column;
  639. align-items: center;
  640. line-height: 44rpx;
  641. font-size: $font-size-24;
  642. color: #FF0000;
  643. margin-bottom: 40rpx;
  644. .iconfont{
  645. font-size: $font-size-24;
  646. }
  647. }
  648. .register-row{
  649. width: 702rpx;
  650. height: auto;
  651. padding: 0 24rpx;
  652. margin-bottom: 20rpx;
  653. .secondTyperadio{
  654. border: 2rpx solid #e1e1e1;
  655. display: inline-block;
  656. font-size: 26rpx;
  657. color: #999999;
  658. padding: 0 24rpx;
  659. border-radius: 22rpx;
  660. line-height: 42rpx;
  661. margin-right: 56rpx;
  662. float: left;
  663. &.active{
  664. border: 2rpx solid #ffe6dc;
  665. color: $color-system;
  666. }
  667. }
  668. &.none{
  669. margin-bottom: 0;
  670. }
  671. .error-title{
  672. line-height: 40rpx;
  673. font-size: $font-size-28;
  674. color: $text-color;
  675. text-align: left;
  676. }
  677. .error-main{
  678. padding: 10rpx 0;
  679. .error-item{
  680. padding:0 20rpx;
  681. margin:10rpx;
  682. background: #F53636;
  683. height: 52rpx;
  684. line-height: 52rpx;
  685. border-radius: 26rpx;
  686. font-size: $font-size-26;
  687. color: #FFFFFF;
  688. text-align: center;
  689. display: inline-block;
  690. }
  691. }
  692. .register-tip{
  693. line-height: 64rpx;
  694. font-size: $font-size-24;
  695. color: #fea785;
  696. text-align: left;
  697. }
  698. .register-title{
  699. line-height: 44rpx;
  700. font-size: $font-size-24;
  701. color: $color-system;
  702. text-align: left;
  703. }
  704. .row-btn{
  705. position: absolute;
  706. right: 24rpx;
  707. top: 0;
  708. line-height: 88rpx;
  709. text-align: center;
  710. font-size: $font-size-28;
  711. color: $color-system;
  712. }
  713. .register-from{
  714. width: 100%;
  715. height: 88rpx;
  716. background: #FFFFFF;
  717. position: relative;
  718. border-bottom: 1px solid #e1e1e1;
  719. box-sizing: border-box;
  720. &.noneborder{
  721. border: none;
  722. }
  723. &.second{
  724. padding-left: 160rpx;
  725. }
  726. .label{
  727. text-align: left;
  728. font-size: $font-size-28;
  729. color: #666666;
  730. line-height: 88rpx;
  731. float: left;
  732. }
  733. .kes-title{
  734. font-size: $font-size-28;
  735. color: #666666;
  736. line-height: 88rpx;
  737. }
  738. .row-input{
  739. width: 520rpx;
  740. padding-left:10rpx;
  741. font-size: $font-size-28;
  742. color: $text-color;
  743. line-height: 88rpx;
  744. float: right;
  745. height: 88rpx;
  746. &.code{width: 500rpx;}
  747. &.none{
  748. color: #999999;
  749. }
  750. &.picker{
  751. text-align: left;
  752. color: #333333;
  753. }
  754. }
  755. .keshi{
  756. width: 678rpx;
  757. border: 2rpx solid #b2b2b2;
  758. border-radius: 6rpx;
  759. height: 160rpx;
  760. font-size: $font-size-28;
  761. padding: 10rpx;
  762. }
  763. &.code{
  764. width: 410rpx;
  765. float: left;
  766. margin-right: 20rpx;
  767. .row-input{
  768. width: 390rpx;
  769. }
  770. }
  771. &.btn{
  772. width: 224rpx;
  773. height: 88rpx;
  774. float: left;
  775. background: $btn-confirm;
  776. padding: 0;
  777. .row-input{
  778. width: 224rpx;
  779. height: 88rpx;
  780. line-height: 88rpx;
  781. padding: 0;
  782. color: #FFFFFF;
  783. background: $btn-confirm;
  784. text-align: center;
  785. border-radius: 14rpx;
  786. &.other{
  787. width: 350rpx;
  788. background: #FFF;
  789. margin-right: 20rpx;
  790. border: 2rpx solid #b2b2b2;
  791. border-radius: 44rpx;
  792. padding: 0 24rpx;
  793. height: 64rpx;
  794. line-height: 64rpx;
  795. }
  796. &.none{
  797. background: #F7F7F7;
  798. }
  799. }
  800. &.disabled{
  801. background: #F7F7F7;
  802. .row-input{
  803. background: #F7F7F7;
  804. color: #999999;
  805. }
  806. }
  807. }
  808. &.picker{
  809. width: 100%;
  810. height: 88rpx;
  811. line-height: 88rpx;
  812. .label{
  813. line-height: 88rpx;
  814. }
  815. .label-radio{margin-right: 70rpx;}
  816. .row-radio{
  817. transform: scale(.8);
  818. }
  819. .row-input{
  820. width: 500rpx;
  821. height: 88rpx;
  822. line-height: 88rpx;
  823. padding-left: 40rpx;
  824. float: left;
  825. }
  826. }
  827. &.radio{
  828. width: 654rpx;
  829. height: 288rpx;
  830. .row-input{
  831. width: 100%;
  832. height: 88rpx;
  833. line-height: 88rpx;
  834. padding-left: 0;
  835. }
  836. .row-radio{
  837. float: left;
  838. transform: scale(0.8);
  839. }
  840. .row-text{
  841. width: 100rpx;
  842. text-align: center;
  843. float: left;
  844. }
  845. }
  846. &.group{
  847. width: 702rpx;
  848. height: auto;
  849. background: #FFFFFF;
  850. margin-top: 30rpx;
  851. .label{
  852. line-height: 76rpx;
  853. }
  854. .row-input{
  855. width: 100%;
  856. height: 88rpx;
  857. line-height: 88rpx;
  858. padding-left: 0;
  859. }
  860. .row-radio{
  861. float: left;
  862. }
  863. .row-text{
  864. width: 100rpx;
  865. text-align: center;
  866. float: left;
  867. }
  868. }
  869. &.btn{
  870. margin-top: 0;
  871. }
  872. .content-class {
  873. margin: 20rpx auto;
  874. display: flex;
  875. flex-flow: row wrap;
  876. justify-content: space-between;
  877. align-items: center;
  878. &.btn{
  879. margin: 0 auto;
  880. margin-left: 116rpx;
  881. }
  882. .row-input{
  883. display: flex;
  884. width: 220rpx;
  885. height: 40rpx;
  886. padding: 24rpx;
  887. text-align: left;
  888. border-radius: 10rpx;
  889. font-size: $font-size-28;
  890. color: $text-color;
  891. }
  892. .confirm-btn{
  893. width: 160rpx;
  894. height: 64rpx;
  895. border-radius: 45rpx;
  896. line-height: 64rpx;
  897. text-align: center;
  898. background:#ffe6dc;
  899. color: $color-system;
  900. &.other{
  901. width: 213rpx;
  902. }
  903. // &.none{
  904. // color: #FFFFFF;
  905. // }
  906. // &.disabled{
  907. // color: #999999;
  908. // }
  909. }
  910. .item {
  911. // width: 190rpx;
  912. height: 60rpx;
  913. font-size:$font-size-28;
  914. line-height: 60rpx;
  915. border-radius:10rpx;
  916. margin-left: 40rpx;
  917. box-sizing: border-box;
  918. // border: 1rpx solid #EFEFEF;
  919. float: left;
  920. // checkbox {
  921. // display: none;
  922. // }
  923. }
  924. .on {
  925. border-color: $color-system;
  926. color:$color-system;
  927. }
  928. }
  929. }
  930. .icon-xiayibu{
  931. width: 88rpx;
  932. height: 88rpx;
  933. position: absolute;
  934. right: 0;
  935. top: 0;
  936. line-height: 88rpx;
  937. text-align: center;
  938. color: #b2b2b2;
  939. }
  940. &.text-textarea{
  941. background: #FFFFFF;
  942. .textarea{
  943. width: 100%;
  944. height: 120rpx;
  945. background: #FFFFFF;
  946. padding: 24rpx 0;
  947. font-size: $font-size-28;
  948. color: $text-color;
  949. z-index: 1;
  950. border-bottom: 1px solid #E1E1E1;
  951. }
  952. .textarea.hide{
  953. opacity: 0;
  954. }
  955. .textarea.show{
  956. color: #999999;
  957. }
  958. }
  959. }
  960. .register-picture{
  961. // height: 102rpx;
  962. margin: 30rpx 0;
  963. // width: 42%;
  964. // float: left;
  965. &.zz{
  966. width: 100%;
  967. }
  968. .label{
  969. // float: left;
  970. font-size: $font-size-28;
  971. color: $text-color;
  972. line-height: 102rpx;
  973. // width: 150rpx;
  974. // text-align: left;
  975. &.zz{
  976. width: 230rpx;
  977. }
  978. }
  979. .upload-picture{
  980. // float: left;
  981. width: 200rpx;
  982. height: 180rpx;
  983. .upload-none{
  984. width: 200rpx;
  985. height: 180rpx;
  986. text-align: center;
  987. line-height: 100rpx;
  988. color: #999999;
  989. // border: 1px solid #999999;
  990. border-radius: 10rpx;
  991. // margin: 0 20rpx;
  992. // .iconfont{
  993. // font-size: $font-size-28;
  994. // }
  995. image{
  996. width: 100%;
  997. height: 100%;
  998. }
  999. }
  1000. .upload-image{
  1001. width:200rpx;
  1002. height: 180rpx;
  1003. border-radius: 10rpx;
  1004. margin: 0 20rpx;
  1005. position: relative;
  1006. image{
  1007. width:100%;
  1008. height: 100%;
  1009. border-radius: 10rpx;
  1010. }
  1011. .upload-del{
  1012. width: 40rpx;
  1013. height: 40rpx;
  1014. position: absolute;
  1015. top: -20rpx;
  1016. right: -20rpx;
  1017. line-height: 40rpx;
  1018. text-align: center;
  1019. .iconfont{
  1020. font-size: $font-size-32;
  1021. color: #999999;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. }
  1027. .register-input{
  1028. width: 654rpx;
  1029. height: 40rpx;
  1030. padding: 24rpx;
  1031. margin: 0 auto;
  1032. margin-bottom: 60rpx;
  1033. background: #F7F7F7;
  1034. border-radius: 14rpx;
  1035. .input{
  1036. width: 100%;
  1037. height: 100%;
  1038. background: #F7F7F7;
  1039. font-size: $font-size-28;
  1040. line-height: 40rpx;
  1041. color: #333333;
  1042. border-radius: 14rpx;
  1043. }
  1044. }
  1045. .register-fiexd{
  1046. width: 100%;
  1047. height: auto;
  1048. padding: 20rpx 0;
  1049. position: fixed;
  1050. bottom: 0;
  1051. left: 0;
  1052. z-index: 99;
  1053. background: #FFFFFF;
  1054. .register-agree{
  1055. display: flex;
  1056. flex-direction: column;
  1057. align-items: center;
  1058. margin: 32rpx 0;
  1059. .agree-text{
  1060. .checkbox{
  1061. float: left;
  1062. margin: 4rpx 6rpx 0 0;
  1063. color: #999999;
  1064. font-size: $font-size-32;
  1065. &.icon-gouxuan{
  1066. color: $color-system;
  1067. }
  1068. }
  1069. font-size: 20rpx;
  1070. line-height: 44rpx;
  1071. color: #999999;
  1072. text{
  1073. color:#0091FF;
  1074. }
  1075. }
  1076. }
  1077. }
  1078. .register-btn{
  1079. width: 600rpx;
  1080. height: 88rpx;
  1081. border-radius: 44rpx;
  1082. font-size: $font-size-28;
  1083. line-height: 88rpx;
  1084. color: #FFFFFF;
  1085. margin: 0 auto;
  1086. text-align: center;
  1087. background: $btn-confirm;
  1088. margin-top: 96rpx;
  1089. &.none{
  1090. background: #FFFFFF;
  1091. color: $text-color;
  1092. margin-top: 0;
  1093. }
  1094. &.sub{
  1095. margin-top: 0;
  1096. }
  1097. }
  1098. }
  1099. }
  1100. checkbox .wx-checkbox-input{
  1101. border-radius: 50%;
  1102. width: 36rpx;
  1103. height: 36rpx;
  1104. }
  1105. /* 选中后的 背景样式 */
  1106. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  1107. background: #E15616;
  1108. border: 2rpx solid #e15616;
  1109. }
  1110. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  1111. border-radius: 50%;
  1112. width: 36rpx;
  1113. height: 36rpx;
  1114. line-height: 36rpx;
  1115. text-align: center;
  1116. font-size:20rpx;
  1117. color:#fff;
  1118. transform:scale(.8);
  1119. -webkit-transform:translate(-50%, -50%) scale(1);
  1120. }
  1121. </style>