information.vue 30 KB

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