information.vue 30 KB

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