information.vue 29 KB

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