information.vue 30 KB

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