apply.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  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 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="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==''||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.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: 22rpx;
  661. line-height: 42rpx;
  662. margin-right: 56rpx;
  663. float: left;
  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. box-sizing: border-box;
  721. &.noneborder{
  722. border: none;
  723. }
  724. &.second{
  725. padding-left: 160rpx;
  726. }
  727. .label{
  728. text-align: left;
  729. font-size: $font-size-28;
  730. color: #666666;
  731. line-height: 88rpx;
  732. float: left;
  733. }
  734. .kes-title{
  735. font-size: $font-size-28;
  736. color: #666666;
  737. line-height: 88rpx;
  738. }
  739. .row-input{
  740. width: 520rpx;
  741. padding-left:10rpx;
  742. font-size: $font-size-28;
  743. color: $text-color;
  744. line-height: 88rpx;
  745. float: right;
  746. height: 88rpx;
  747. &.code{width: 500rpx;}
  748. &.none{
  749. color: #999999;
  750. }
  751. &.picker{
  752. text-align: left;
  753. color: #333333;
  754. }
  755. }
  756. .keshi{
  757. width: 678rpx;
  758. border: 2rpx solid #b2b2b2;
  759. border-radius: 6rpx;
  760. height: 160rpx;
  761. font-size: $font-size-28;
  762. padding: 10rpx;
  763. }
  764. &.code{
  765. width: 410rpx;
  766. float: left;
  767. margin-right: 20rpx;
  768. .row-input{
  769. width: 390rpx;
  770. }
  771. }
  772. &.btn{
  773. width: 224rpx;
  774. height: 88rpx;
  775. float: left;
  776. background: $btn-confirm;
  777. padding: 0;
  778. .row-input{
  779. width: 224rpx;
  780. height: 88rpx;
  781. line-height: 88rpx;
  782. padding: 0;
  783. color: #FFFFFF;
  784. background: $btn-confirm;
  785. text-align: center;
  786. border-radius: 14rpx;
  787. &.other{
  788. width: 350rpx;
  789. background: #FFF;
  790. margin-right: 20rpx;
  791. border: 2rpx solid #b2b2b2;
  792. border-radius: 44rpx;
  793. padding: 0 24rpx;
  794. height: 64rpx;
  795. line-height: 64rpx;
  796. }
  797. &.none{
  798. background: #F7F7F7;
  799. }
  800. }
  801. &.disabled{
  802. background: #F7F7F7;
  803. .row-input{
  804. background: #F7F7F7;
  805. color: #999999;
  806. }
  807. }
  808. }
  809. &.picker{
  810. width: 100%;
  811. height: 88rpx;
  812. line-height: 88rpx;
  813. .label{
  814. line-height: 88rpx;
  815. }
  816. .label-radio{margin-right: 70rpx;}
  817. .row-radio{
  818. transform: scale(.8);
  819. }
  820. .row-input{
  821. width: 500rpx;
  822. height: 88rpx;
  823. line-height: 88rpx;
  824. padding-left: 40rpx;
  825. float: left;
  826. }
  827. }
  828. &.radio{
  829. width: 654rpx;
  830. height: 288rpx;
  831. .row-input{
  832. width: 100%;
  833. height: 88rpx;
  834. line-height: 88rpx;
  835. padding-left: 0;
  836. }
  837. .row-radio{
  838. float: left;
  839. transform: scale(0.8);
  840. }
  841. .row-text{
  842. width: 100rpx;
  843. text-align: center;
  844. float: left;
  845. }
  846. }
  847. &.group{
  848. width: 702rpx;
  849. height: auto;
  850. background: #FFFFFF;
  851. margin-top: 30rpx;
  852. .label{
  853. line-height: 76rpx;
  854. }
  855. .row-input{
  856. width: 100%;
  857. height: 88rpx;
  858. line-height: 88rpx;
  859. padding-left: 0;
  860. }
  861. .row-radio{
  862. float: left;
  863. }
  864. .row-text{
  865. width: 100rpx;
  866. text-align: center;
  867. float: left;
  868. }
  869. }
  870. &.btn{
  871. margin-top: 0;
  872. }
  873. .content-class {
  874. margin: 20rpx auto;
  875. display: flex;
  876. flex-flow: row wrap;
  877. justify-content: space-between;
  878. align-items: center;
  879. &.btn{
  880. margin: 0 auto;
  881. margin-left: 116rpx;
  882. }
  883. .row-input{
  884. display: flex;
  885. width: 220rpx;
  886. height: 40rpx;
  887. padding: 24rpx;
  888. text-align: left;
  889. border-radius: 10rpx;
  890. font-size: $font-size-28;
  891. color: $text-color;
  892. }
  893. .confirm-btn{
  894. width: 160rpx;
  895. height: 64rpx;
  896. border-radius: 45rpx;
  897. line-height: 64rpx;
  898. text-align: center;
  899. background:#ffe6dc;
  900. color: $color-system;
  901. &.other{
  902. width: 213rpx;
  903. }
  904. // &.none{
  905. // color: #FFFFFF;
  906. // }
  907. // &.disabled{
  908. // color: #999999;
  909. // }
  910. }
  911. .item {
  912. // width: 190rpx;
  913. height: 60rpx;
  914. font-size:$font-size-28;
  915. line-height: 60rpx;
  916. border-radius:10rpx;
  917. margin-left: 40rpx;
  918. box-sizing: border-box;
  919. // border: 1rpx solid #EFEFEF;
  920. float: left;
  921. // checkbox {
  922. // display: none;
  923. // }
  924. }
  925. .on {
  926. border-color: $color-system;
  927. color:$color-system;
  928. }
  929. }
  930. }
  931. .icon-xiayibu{
  932. width: 88rpx;
  933. height: 88rpx;
  934. position: absolute;
  935. right: 0;
  936. top: 0;
  937. line-height: 88rpx;
  938. text-align: center;
  939. color: #b2b2b2;
  940. }
  941. &.text-textarea{
  942. background: #FFFFFF;
  943. .textarea{
  944. width: 100%;
  945. height: 120rpx;
  946. background: #FFFFFF;
  947. padding: 24rpx 0;
  948. font-size: $font-size-28;
  949. color: $text-color;
  950. z-index: 1;
  951. border-bottom: 1px solid #E1E1E1;
  952. }
  953. .textarea.hide{
  954. opacity: 0;
  955. }
  956. .textarea.show{
  957. color: #999999;
  958. }
  959. }
  960. }
  961. .register-picture{
  962. // height: 102rpx;
  963. margin: 30rpx 0;
  964. // width: 42%;
  965. // float: left;
  966. &.zz{
  967. width: 100%;
  968. }
  969. .label{
  970. // float: left;
  971. font-size: $font-size-28;
  972. color: $text-color;
  973. line-height: 102rpx;
  974. // width: 150rpx;
  975. // text-align: left;
  976. &.zz{
  977. width: 230rpx;
  978. }
  979. }
  980. .upload-picture{
  981. // float: left;
  982. width: 200rpx;
  983. height: 180rpx;
  984. .upload-none{
  985. width: 200rpx;
  986. height: 180rpx;
  987. text-align: center;
  988. line-height: 100rpx;
  989. color: #999999;
  990. // border: 1px solid #999999;
  991. border-radius: 10rpx;
  992. // margin: 0 20rpx;
  993. // .iconfont{
  994. // font-size: $font-size-28;
  995. // }
  996. image{
  997. width: 100%;
  998. height: 100%;
  999. }
  1000. }
  1001. .upload-image{
  1002. width:200rpx;
  1003. height: 180rpx;
  1004. border-radius: 10rpx;
  1005. margin: 0 20rpx;
  1006. position: relative;
  1007. image{
  1008. width:100%;
  1009. height: 100%;
  1010. border-radius: 10rpx;
  1011. }
  1012. .upload-del{
  1013. width: 40rpx;
  1014. height: 40rpx;
  1015. position: absolute;
  1016. top: -20rpx;
  1017. right: -20rpx;
  1018. line-height: 40rpx;
  1019. text-align: center;
  1020. .iconfont{
  1021. font-size: $font-size-32;
  1022. color: #999999;
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. .register-input{
  1029. width: 654rpx;
  1030. height: 40rpx;
  1031. padding: 24rpx;
  1032. margin: 0 auto;
  1033. margin-bottom: 60rpx;
  1034. background: #F7F7F7;
  1035. border-radius: 14rpx;
  1036. .input{
  1037. width: 100%;
  1038. height: 100%;
  1039. background: #F7F7F7;
  1040. font-size: $font-size-28;
  1041. line-height: 40rpx;
  1042. color: #333333;
  1043. border-radius: 14rpx;
  1044. }
  1045. }
  1046. .register-fiexd{
  1047. width: 100%;
  1048. height: auto;
  1049. padding: 20rpx 0;
  1050. position: fixed;
  1051. bottom: 0;
  1052. left: 0;
  1053. z-index: 99;
  1054. background: #FFFFFF;
  1055. .register-agree{
  1056. display: flex;
  1057. flex-direction: column;
  1058. align-items: center;
  1059. margin: 32rpx 0;
  1060. .agree-text{
  1061. .checkbox{
  1062. float: left;
  1063. margin: 4rpx 6rpx 0 0;
  1064. color: #999999;
  1065. font-size: $font-size-32;
  1066. &.icon-gouxuan{
  1067. color: $color-system;
  1068. }
  1069. }
  1070. font-size: 20rpx;
  1071. line-height: 44rpx;
  1072. color: #999999;
  1073. text{
  1074. color:#0091FF;
  1075. }
  1076. }
  1077. }
  1078. }
  1079. .register-btn{
  1080. width: 600rpx;
  1081. height: 88rpx;
  1082. border-radius: 44rpx;
  1083. font-size: $font-size-28;
  1084. line-height: 88rpx;
  1085. color: #FFFFFF;
  1086. margin: 0 auto;
  1087. text-align: center;
  1088. background: $btn-confirm;
  1089. margin-top: 96rpx;
  1090. &.none{
  1091. background: #FFFFFF;
  1092. color: $text-color;
  1093. margin-top: 0;
  1094. }
  1095. &.sub{
  1096. margin-top: 0;
  1097. }
  1098. }
  1099. }
  1100. }
  1101. checkbox .wx-checkbox-input{
  1102. border-radius: 50%;
  1103. width: 36rpx;
  1104. height: 36rpx;
  1105. }
  1106. /* 选中后的 背景样式 */
  1107. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  1108. background: #E15616;
  1109. border: 2rpx solid #e15616;
  1110. }
  1111. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  1112. border-radius: 50%;
  1113. width: 36rpx;
  1114. height: 36rpx;
  1115. line-height: 36rpx;
  1116. text-align: center;
  1117. font-size:20rpx;
  1118. color:#fff;
  1119. transform:scale(.8);
  1120. -webkit-transform:translate(-50%, -50%) scale(1);
  1121. }
  1122. </style>