apply.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main title clearfix">
  5. <view class="register-row none clearfix">
  6. <view class="register-title first"><text>补充以下详细信息即可升级为会员机构,享受更多更好的服务。</text></view>
  7. <view class="register-title"><text></text></view>
  8. </view>
  9. </view>
  10. <view class="register-main clearfix" v-if="clubStatus == 92">
  11. <view class="register-row none clearfix">
  12. <view class="error-title">审核未通过原因:</view>
  13. <view class="error-main">
  14. <text class="error-item" v-for="(item, index) in errorList" :key="index">
  15. {{ item }}
  16. </text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="register-main detailed clearfix">
  21. <view class="register-row none clearfix">
  22. <view class="register-from">
  23. <view class="label">邮箱</view>
  24. <input class="row-input" type="text" name="input" v-model="contractEmail" placeholder="请输入您的常用邮箱"placeholder-class="placeholder" maxlength="30"/>
  25. </view>
  26. <view class="register-tip"><text>提示:邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text></view>
  27. </view>
  28. <view class="register-row clearfix">
  29. <view class="register-from">
  30. <view class="label">机构名称</view>
  31. <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" placeholder-class="placeholder" maxlength="30"/>
  32. </view>
  33. </view>
  34. <view class="register-row clearfix">
  35. <view class="register-from">
  36. <view class="label">机构简称</view>
  37. <input class="row-input" type="text" v-model="shortName" placeholder="请输入您的机构简称" placeholder-class="placeholder" maxlength="10"/>
  38. </view>
  39. </view>
  40. <view class="register-row clearfix">
  41. <view class="register-from" @click="showMulLinkageThreePicker">
  42. <view class="label">机构地址</view>
  43. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  44. {{addressData.address }}
  45. </text>
  46. <text class="iconfont icon-xiayibu"></text>
  47. </view>
  48. </view>
  49. <view class="register-row text-textarea clearfix">
  50. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus" >{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  51. <textarea v-else
  52. class="textarea"
  53. type="text"
  54. v-model="addressData.addressDetail"
  55. placeholder="详细地址:如道路、门牌号、小区等"
  56. placeholder-class="placeholder"
  57. maxlength="25"
  58. @input="onTextareaInput"
  59. :focus="textareaFocus"
  60. @blur="hideTextareaFocus"
  61. :class="isShowInput ? '':''"
  62. />
  63. </view>
  64. <view class="register-row clearfix">
  65. <view class="register-from">
  66. <view class="label">营业执照编号</view>
  67. <input class="row-input code" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="18"/>
  68. </view>
  69. </view>
  70. <view class="register-row clearfix">
  71. <view class="register-picture">
  72. <view class="label">营业执照</view>
  73. <view class="upload-picture">
  74. <view class="upload-none" v-if="businessLicense === ''" @click="chooseBusinessImage">
  75. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  76. </view>
  77. <view class="upload-image" v-else>
  78. <image :src="businessLicense" mode="" @click="viewBusinessImage"></image>
  79. <view class="upload-del" @click="delBusinessImage">
  80. <text class='iconfont icon-shanchu1'></text>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="register-row clearfix">
  87. <view class="register-picture">
  88. <view class="label">门头照</view>
  89. <view class="upload-picture">
  90. <view class="upload-none" v-if="shopPhoto === ''" @click="chooseMentuzImage">
  91. <image src="https://static.caimei365.com/app/img/upload/club-door.png"></image>
  92. </view>
  93. <view class="upload-image" v-else>
  94. <image :src="shopPhoto" mode="" @click="viewMentuzImage"></image>
  95. <view class="upload-del" @click="delMentuzImage">
  96. <text class='iconfont icon-shanchu1'></text>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="register-row clearfix">
  103. <view class="register-from picker noneborder">
  104. <view class="label">机构类型</view>
  105. <view class="row-input picker">
  106. <radio-group @change="bindPickerChange">
  107. <label class="label-radio" v-for="(item, index) in typename" :key="item.value">
  108. <radio class="row-radio" :value="item.value" :checked="item.value === isOrganizationType" color='#E15616'/>{{item.name }}
  109. </label>
  110. </radio-group>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  115. <view class="register-from noneborder second">
  116. <view class="secondTyperadio" v-for="(item,index) in beautyList" :key="item.value" @click="radioChange(item)" :class="item.value==secondClubType?'active':''">
  117. <view class="secondRadio" >{{item.name}}</view>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  122. <view class="register-picture zz">
  123. <view class="label zz">医疗执业许可证</view>
  124. <view class="upload-picture">
  125. <view class="upload-none" v-if="medicalPracticeLicense === ''" @click="chooseMedicalImage">
  126. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  127. </view>
  128. <view class="upload-image" v-else>
  129. <image :src="medicalPracticeLicense" mode="" @click="viewMedicalImage"></image>
  130. <view class="upload-del" @click="delMedicalImage">
  131. <text class='iconfont icon-shanchu1'></text>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="register-row clearfix" v-show="isDepartment">
  138. <view class="register-from" style="height: auto;border: 0;">
  139. <view class="kes-title" >科室</view>
  140. <textarea class="keshi" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="department" maxlength="16"></textarea>
  141. </view>
  142. </view>
  143. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  144. <view class="register-from group"style="height: auto;border: 0;">
  145. <view class="label">主营内容</view>
  146. <view class="content-class">
  147. <checkbox-group @change="chooseMaleLike" >
  148. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  149. <checkbox class="item-checkbox" :value="item.value"></checkbox>
  150. <text class="item-text">{{item.name}}</text>
  151. </label>
  152. </checkbox-group>
  153. </view>
  154. </view>
  155. <view class="register-from group btn" style="height: auto;border: 0;">
  156. <view class="content-class btn">
  157. <input class="row-input other" type="text" v-model="customItemValue" placeholder-style="placeholder" placeholder="请输入自定义主营内容" maxlength="5"/>
  158. <button type="default"
  159. class="confirm-btn"
  160. @click.stop="addCustomItem"
  161. >确认添加</button>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  166. <view class="register-from group" style="height: auto;border: 0;">
  167. <view class="label">主营内容</view>
  168. <view class="content-class">
  169. <checkbox-group @change="chooseMaleLikes">
  170. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  171. <checkbox class="item-checkbox" :value="item.value" :checked="item.checked"></checkbox>
  172. <text class="item-text">{{item.name}}</text>
  173. </label>
  174. </checkbox-group>
  175. </view>
  176. </view>
  177. <view class="register-from group btn" style="height: auto;border: 0;">
  178. <view class="content-class btn">
  179. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义主营内容" placeholder-style="placeholder" maxlength="5"/>
  180. <button type="default"
  181. class="confirm-btn"
  182. @click.stop="addCustomItem"
  183. >确认添加</button>
  184. </view>
  185. </view>
  186. </view>
  187. <view class="register-fiexd clearfix" :style="{paddingBottom :isIphoneX ? '68rpx' : '36rpx'}">
  188. <view class="register-row ">
  189. <view class="register-btn sub" @click.stop="organizationUpdateInfo">确认升级并提交审核</view>
  190. </view>
  191. </view>
  192. <mpvue-city-picker :themeColor="themeColor"
  193. ref="mpvueCityPicker"
  194. :pickerValueDefault="cityPickerValueDefault"
  195. @onCancel="onCancel"
  196. @onConfirm="onConfirm">
  197. </mpvue-city-picker>
  198. </view>
  199. <!-- 提交审核提示弹窗 -->
  200. <view class="tui-alert-box" v-if="isConfirmShow">
  201. <view class="tui-alert-content">
  202. <view class="tui-alert-main">升级信息提交成功,审核通过后您的身份将成为会员机构,并且获得<text class="red">100</text>采美豆的奖励</view>
  203. <view class="tui-alert-btn" @click="handleClick">知道了</view>
  204. </view>
  205. </view>
  206. </view>
  207. </template>
  208. <script>
  209. import { mapMutations } from 'vuex';
  210. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  211. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  212. import { uploadFileImage } from "@/services/public.js"
  213. export default{
  214. components:{
  215. mpvueCityPicker
  216. },
  217. data() {
  218. return{
  219. nvabarData: { //顶部自定义导航
  220. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  221. showSearch: 0,
  222. title: '升级会员机构', // 导航栏 中间的标题
  223. haveBack:true,
  224. textLeft:this.$store.state.isIphone
  225. },
  226. isIphoneX:this.$store.state.isIphoneX,
  227. CustomBar:this.CustomBar,// 顶部导航栏高度
  228. errorList:[],
  229. tabCurrentIndex:3,
  230. clubStatus:'', //审核状态
  231. isPreviewImage:false, //预览图片开关
  232. userId:'', //用户ID
  233. clubId:'', //会所ID
  234. contractEmail:'', //邮箱
  235. clubName:'', //机构名称
  236. shortName:'', //机构简称
  237. socialCreditCode:'', //统一社会信用代码
  238. isDisabled:true,
  239. isShowInput:true,
  240. textareaFocus:false,
  241. businessLicense:'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1306508493,2006189766&fm=26&gp=0.jpg', //营业执照图片
  242. shopPhoto:'', //门头照图片
  243. medicalPracticeLicense:'', //资质照图片
  244. department:'', //科室
  245. isDepartment:false, //是否显示科室
  246. secondClubType:'', //机构类型二级分类
  247. mainProduct:'', //主营内容
  248. firstClubType:'', //机构类型
  249. isOrganizationType:0,
  250. organizationTypeText:'请选择机构类型',
  251. beautyList:beautyList,//医美分类
  252. mentuzCampNullList:mentuzCampNullList,//医美分类
  253. medicaCampNullList:medicaCampNullList,//生美分类
  254. mentuzCampList:[], //医美主营
  255. medicaCampList:[], //生美主营
  256. typtIndex:0,
  257. organizationType:0,
  258. current:0,
  259. isShowAustomItem:false, //是否显示其他添加
  260. customItemValue:'', //自定义项目
  261. isMainproCheck:false,
  262. isConfirmShow:false,
  263. addressData:{
  264. address:'请选择机构所在地区',
  265. townId:'', //区ID
  266. cityId:'', //市ID
  267. provinceId:'', //省ID
  268. addressDetail: '', //地址详情
  269. },
  270. typename:[
  271. {name:'医美',value:1},
  272. {name:'生美',value:2}
  273. ],
  274. }
  275. },
  276. onLoad(option) {
  277. this.clubStatus = option.clubStatus
  278. console.log(this.clubStatus)
  279. this.organizationInfo()
  280. },
  281. methods:{
  282. hanldNavigateBack(){
  283. this.$util.modal('','资料尚未提交审核,确定放弃升级吗?','确定','取消',true,() =>{
  284. uni.navigateBack({
  285. delta: 1
  286. });
  287. })
  288. },
  289. organizationInfo(){
  290. this.$api.getStorage().then((resolve) =>{
  291. this.userId = resolve.userId ? resolve.userId : 0
  292. this.UserService.OrganizationUpdateModifyInfo({userId:this.userId}).then(response =>{
  293. let organizationClub = response.data.club
  294. let organizationUser = response.data.user
  295. if(organizationUser.auditNoteList!=null){
  296. this.errorList =organizationUser.auditNoteList
  297. }
  298. this.contractEmail = organizationClub.contractEmail
  299. console.log(this.contractEmail)
  300. this.clubId = organizationUser.clubId
  301. if(this.contractEmail){
  302. this.clubName = this.$reg.checkData(organizationClub.name)
  303. }else{
  304. this.clubName = ''
  305. }
  306. this.shortName = this.$reg.checkData(organizationClub.shortName)
  307. if( organizationClub.provinceId==''||organizationClub.provinceId==null){
  308. this.addressData.provinceId = ''
  309. }else{
  310. this.addressData.provinceId = organizationClub.provinceId
  311. }
  312. if( organizationClub.cityId==''||organizationClub.cityId===null){
  313. this.addressData.cityId = ''
  314. }else{
  315. this.addressData.cityId = organizationClub.cityId
  316. }
  317. if( organizationClub.townId==''||organizationClub.townId==null){
  318. this.addressData.townId = ''
  319. }else{
  320. this.addressData.townId = organizationClub.townId
  321. }
  322. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
  323. this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
  324. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  325. this.firstClubType = organizationClub.firstClubType
  326. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  327. this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
  328. this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
  329. this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
  330. this.department = this.$reg.checkData(organizationClub.department)
  331. //机构类型&&主营项目
  332. switch(this.firstClubType){
  333. case 1:
  334. this.organizationTypeText = '医美'
  335. this.isOrganizationType = 1
  336. break;
  337. case 2:
  338. this.organizationTypeText = '生美'
  339. this.isOrganizationType = 2
  340. break;
  341. case null:
  342. this.organizationTypeText = '请选择机构类型'
  343. this.isOrganizationType = 0
  344. break;
  345. }
  346. if(organizationClub.mainProduct == "" || organizationClub.mainProduct == null){
  347. this.mentuzCampList = this.mentuzCampNullList
  348. this.medicaCampList = this.medicaCampNullList
  349. }else{
  350. if(this.firstClubType == 1){
  351. this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
  352. this.medicaCampList = this.medicaCampNullList
  353. }else{
  354. this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
  355. this.mentuzCampList = this.mentuzCampNullList
  356. }
  357. this.mainProduct = organizationClub.mainProduct;
  358. }
  359. //机构类型
  360. switch(this.secondClubType){
  361. case 1:this.current = 0;break;
  362. case 2:this.current = 1;this.isDepartment=true;break;
  363. case 3:this.current = 2;this.isDepartment=true;break;
  364. }
  365. }).catch(error =>{
  366. this.$util.msg(error.msg,2000)
  367. })
  368. })
  369. },
  370. organizationUpdateInfo(){//提交审核
  371. if(!this.isMainproCheck){
  372. let mainproList = []
  373. if(this.firstClubType == 1){
  374. this.mentuzCampList.forEach(item =>{
  375. mainproList.push(item.name)
  376. })
  377. }else{
  378. this.medicaCampList.forEach(item =>{
  379. mainproList.push(item.name)
  380. })
  381. }
  382. this.mainProduct = mainproList.join('/')
  383. }
  384. if( this.contractEmail == ''){
  385. this.$util.msg('请输入邮箱地址',2000);
  386. return
  387. }
  388. if( !this.$reg.isEmail(this.contractEmail)){
  389. this.$util.msg('请输入正确的邮箱地址',2000);
  390. return
  391. }
  392. if( this.clubName == ''){
  393. this.$util.msg('请输入机构名称',2000);
  394. return
  395. }
  396. if( this.addressData.townId == ''){
  397. this.$util.msg('请选择机构地址',2000);
  398. return
  399. }
  400. if( this.addressData.addressDetail == ''){
  401. this.$util.msg('请填写机构详细地址',2000);
  402. return
  403. }
  404. if( this.businessLicense == ''){
  405. this.$util.msg('请上传您的营业执照',2000);
  406. return
  407. }
  408. if(this.isOrganizationType!=0){
  409. if(this.mainProduct == ''){
  410. this.$util.msg('请选择住机构主营内容',2000);
  411. return
  412. }
  413. }
  414. let params ={
  415. userId:this.userId,
  416. clubId:this.clubId, //会所ID
  417. contractEmail:this.contractEmail,
  418. name:this.clubName,
  419. shortName:this.shortName,
  420. provinceId:this.addressData.provinceId,
  421. cityId:this.addressData.cityId,
  422. townId:this.addressData.townId,
  423. address:this.addressData.addressDetail,
  424. socialCreditCode:this.socialCreditCode,
  425. businessLicense:this.businessLicense,
  426. shopPhoto:this.shopPhoto,
  427. firstClubType:this.isOrganizationType, //机构类型分类 医美:1和生美:2
  428. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  429. department:this.department, //科室
  430. medicalPracticeLicense:this.medicalPracticeLicense,//资质图片
  431. mainProduct:this.mainProduct,
  432. }
  433. // 友盟埋点普通机构确认升级点击事件
  434. if(process.env.NODE_ENV != 'development'){
  435. this.$uma.trackEvent('Um_Event_ConfirmClubUpgrade', {
  436. Um_Key_ClubName: `${this.clubName}`,
  437. Um_Key_PageName: '普通机构确认升级',
  438. Um_Key_SourcePage: '升级页面',
  439. })
  440. }
  441. this.UserService.OrganizationRegister(params).then(response =>{
  442. this.isConfirmShow = true
  443. }).catch(error =>{
  444. this.$util.msg(error.msg,2000);
  445. })
  446. },
  447. handleClick(){//隐藏提示弹窗
  448. this.isConfirmShow = false
  449. setTimeout(()=>{
  450. uni.navigateBack();
  451. },2000)
  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. chooseBusinessImage() {//营业执照图片上传
  476. uploadFileImage().then(res =>{
  477. this.businessLicense = JSON.parse(res.data).data
  478. })
  479. },
  480. chooseMentuzImage() {//门头照图片上传
  481. uploadFileImage().then(res =>{
  482. this.shopPhoto = JSON.parse(res.data).data
  483. })
  484. },
  485. chooseMedicalImage() {//资质照图片上传
  486. uploadFileImage().then(res =>{
  487. this.medicalPracticeLicense = JSON.parse(res.data).data
  488. })
  489. },
  490. viewBusinessImage(e) {
  491. this.myPreviewImageFn(this.businessLicense)
  492. },
  493. viewMentuzImage(e) {
  494. this.myPreviewImageFn(this.shopPhoto)
  495. },
  496. viewMedicalImage(e) {
  497. this.myPreviewImageFn(this.medicalPracticeLicense)
  498. },
  499. myPreviewImageFn(url){
  500. this.isPreviewImage = true
  501. let mentuzArray = []
  502. mentuzArray.push(url)
  503. uni.previewImage({
  504. urls: mentuzArray,
  505. current: 0
  506. });
  507. },
  508. delBusinessImage(){
  509. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  510. this.businessLicense = ''
  511. })
  512. },
  513. delMentuzImage(){
  514. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  515. this.shopPhoto = ''
  516. })
  517. },
  518. delMedicalImage(){
  519. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  520. this.medicalPracticeLicense = ''
  521. })
  522. },
  523. bindPickerChange(e) {
  524. this.isOrganizationType = e.target.value;
  525. // let self = this
  526. // uni.showActionSheet({
  527. // title:'标题',
  528. // itemList: ['医美', '生美'],
  529. // success: (e) => {
  530. // self.isOrganizationType = e.tapIndex+1
  531. // switch(e.tapIndex){
  532. // case 0:
  533. // this.organizationTypeText = '医美'
  534. // break;
  535. // case 1:
  536. // this.organizationTypeText = '生美'
  537. // break;
  538. // }
  539. // }
  540. // })
  541. },
  542. bindPickerChange2(e) {
  543. this.typtIndex = e.target.value
  544. this.isOrganizationType = e.target.value
  545. },
  546. radioChange(item) {
  547. this.secondClubType = item.value;
  548. if( this.secondClubType == 2 || this.secondClubType == 3){
  549. this.isDepartment = true
  550. }else{
  551. this.isDepartment = false
  552. }
  553. for (let i = 0; i < this.beautyList.length; i++) {
  554. if (this.beautyList[i].value === this.secondClubType) {
  555. this.current = i;
  556. break;
  557. }
  558. }
  559. },
  560. chooseMaleLike(e){
  561. this.isMainproCheck = true
  562. this.mainProduct = this.checkLikes(e,this.mentuzCampList)
  563. },
  564. chooseMaleLikes(e){
  565. this.isMainproCheck = true
  566. this.mainProduct = this.checkLikes(e,this.medicaCampList)
  567. },
  568. checkLikes(e,list){
  569. let values = e.detail.value
  570. let arr = []
  571. list.forEach(item => {
  572. if(values.indexOf(item.value) >= 0){
  573. this.$set(item,'checked',true)
  574. arr.push(item.name)
  575. }else{
  576. this.$set(item,'checked',false)
  577. }
  578. })
  579. return arr.join('/')
  580. },
  581. // onBlurInput(e){//
  582. // if(e.detail.value ===''){
  583. // this.isDisabled = true
  584. // }else{
  585. // this.isDisabled = false
  586. // }
  587. // },
  588. showAustomItem() {
  589. this.isShowAustomItem = !this.isShowAustomItem
  590. },
  591. setNewMainpro(arr){//回显处理主营内容
  592. let _ARRAY = []
  593. arr.split('/').forEach((item,index) =>{
  594. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  595. _ARRAY.push(_OBJ)
  596. })
  597. return _ARRAY
  598. },
  599. addCustomItem(){
  600. if(this.customItemValue==''){
  601. this.$util.msg('请输入自定义主营内容',2000);
  602. }else{
  603. if(this.isOrganizationType == 1){
  604. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  605. if(this.checkedArray(this.customItemValue,this.mentuzCampList)){
  606. this.$util.msg('主营内容已存在!',2000)
  607. }else{
  608. this.mentuzCampList.push(item)
  609. }
  610. }else{
  611. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  612. if(this.checkedArray(this.customItemValue,this.medicaCampList)){
  613. this.$util.msg('主营内容已存在!',2000)
  614. }else{
  615. this.medicaCampList.push(item)
  616. }
  617. }
  618. }
  619. },
  620. checkedArray(content,arr){//判断主营内容是否已存在
  621. console.log(content,arr)
  622. for(var i in arr){
  623. if(arr[i].name == content){
  624. return true;
  625. }
  626. }
  627. return false;
  628. },
  629. },
  630. onShow() {
  631. if(this.isPreviewImage){
  632. this.isPreviewImage = false
  633. return
  634. }
  635. }
  636. }
  637. </script>
  638. <style lang="scss">
  639. .placeholder{color:#b2b2b2 ;}
  640. .register{
  641. width: 100%;
  642. height: auto;
  643. border-top: 1px solid #F7F7F7;
  644. .register-main{
  645. width: 100%;
  646. height: auto;
  647. background: #FFFFFF;
  648. padding: 20rpx 0;
  649. &.title{
  650. background-image: linear-gradient(270deg,rgba(255,255,255,0.1) 0%,rgba(255,86,11,0.1) 51%,rgba(255,255,255,0.1) 100%);
  651. }
  652. &.detailed{
  653. padding-bottom: 300rpx;
  654. }
  655. &.first{
  656. padding-top: 110rpx;
  657. }
  658. .register-tips{
  659. display: flex;
  660. flex-direction: column;
  661. align-items: center;
  662. line-height: 44rpx;
  663. font-size: $font-size-24;
  664. color: #FF0000;
  665. margin-bottom: 40rpx;
  666. .iconfont{
  667. font-size: $font-size-24;
  668. }
  669. }
  670. .register-row{
  671. width: 702rpx;
  672. height: auto;
  673. padding: 0 24rpx;
  674. margin-bottom: 20rpx;
  675. .secondTyperadio{
  676. border: 2rpx solid #e1e1e1;
  677. display: inline-block;
  678. font-size: 26rpx;
  679. color: #999999;
  680. padding: 0 24rpx;
  681. border-radius: 22rpx;
  682. line-height: 42rpx;
  683. margin-right: 56rpx;
  684. float: left;
  685. &.active{
  686. border: 2rpx solid #ffe6dc;
  687. color: $color-system;
  688. }
  689. }
  690. &.none{
  691. margin-bottom: 0;
  692. }
  693. .error-title{
  694. line-height: 40rpx;
  695. font-size: $font-size-28;
  696. color: $text-color;
  697. text-align: left;
  698. }
  699. .error-main{
  700. padding: 10rpx 0;
  701. .error-item{
  702. padding:0 20rpx;
  703. margin:10rpx;
  704. background: #F53636;
  705. height: 52rpx;
  706. line-height: 52rpx;
  707. border-radius: 26rpx;
  708. font-size: $font-size-26;
  709. color: #FFFFFF;
  710. text-align: center;
  711. display: inline-block;
  712. }
  713. }
  714. .register-tip{
  715. line-height: 64rpx;
  716. font-size: $font-size-24;
  717. color: #fea785;
  718. text-align: left;
  719. }
  720. .register-title{
  721. line-height: 44rpx;
  722. font-size: $font-size-24;
  723. color: $color-system;
  724. text-align: left;
  725. }
  726. .row-btn{
  727. position: absolute;
  728. right: 24rpx;
  729. top: 0;
  730. line-height: 88rpx;
  731. text-align: center;
  732. font-size: $font-size-28;
  733. color: $color-system;
  734. }
  735. .register-from{
  736. width: 100%;
  737. height: 88rpx;
  738. background: #FFFFFF;
  739. position: relative;
  740. border-bottom: 1px solid #e1e1e1;
  741. box-sizing: border-box;
  742. &.noneborder{
  743. border: none;
  744. }
  745. &.second{
  746. padding-left: 160rpx;
  747. }
  748. .label{
  749. text-align: left;
  750. font-size: $font-size-28;
  751. color: #666666;
  752. line-height: 88rpx;
  753. float: left;
  754. }
  755. .kes-title{
  756. font-size: $font-size-28;
  757. color: #666666;
  758. line-height: 88rpx;
  759. }
  760. .row-input{
  761. width: 520rpx;
  762. padding-left:10rpx;
  763. font-size: $font-size-28;
  764. color: $text-color;
  765. line-height: 88rpx;
  766. float: right;
  767. height: 88rpx;
  768. &.code{width: 500rpx;}
  769. &.none{
  770. color: #999999;
  771. }
  772. &.picker{
  773. text-align: left;
  774. color: #333333;
  775. }
  776. }
  777. .keshi{
  778. width: 678rpx;
  779. border: 2rpx solid #b2b2b2;
  780. border-radius: 6rpx;
  781. height: 160rpx;
  782. font-size: $font-size-28;
  783. padding: 10rpx;
  784. }
  785. &.code{
  786. width: 410rpx;
  787. float: left;
  788. margin-right: 20rpx;
  789. .row-input{
  790. width: 390rpx;
  791. }
  792. }
  793. &.btn{
  794. width: 224rpx;
  795. height: 88rpx;
  796. float: left;
  797. background: $btn-confirm;
  798. padding: 0;
  799. .row-input{
  800. width: 224rpx;
  801. height: 88rpx;
  802. line-height: 88rpx;
  803. padding: 0;
  804. color: #FFFFFF;
  805. background: $btn-confirm;
  806. text-align: center;
  807. border-radius: 14rpx;
  808. &.other{
  809. width: 350rpx;
  810. background: #FFF;
  811. margin-right: 20rpx;
  812. border: 2rpx solid #b2b2b2;
  813. border-radius: 44rpx;
  814. padding: 0 24rpx;
  815. height: 64rpx;
  816. line-height: 64rpx;
  817. }
  818. &.none{
  819. background: #F7F7F7;
  820. }
  821. }
  822. &.disabled{
  823. background: #F7F7F7;
  824. .row-input{
  825. background: #F7F7F7;
  826. color: #999999;
  827. }
  828. }
  829. }
  830. &.picker{
  831. width: 100%;
  832. height: 88rpx;
  833. line-height: 88rpx;
  834. .label{
  835. line-height: 88rpx;
  836. }
  837. .label-radio{margin-right: 70rpx;}
  838. .row-radio{
  839. transform: scale(.8);
  840. }
  841. .row-input{
  842. width: 500rpx;
  843. height: 88rpx;
  844. line-height: 88rpx;
  845. padding-left: 40rpx;
  846. float: left;
  847. }
  848. }
  849. &.radio{
  850. width: 654rpx;
  851. height: 288rpx;
  852. .row-input{
  853. width: 100%;
  854. height: 88rpx;
  855. line-height: 88rpx;
  856. padding-left: 0;
  857. }
  858. .row-radio{
  859. float: left;
  860. transform: scale(0.8);
  861. }
  862. .row-text{
  863. width: 100rpx;
  864. text-align: center;
  865. float: left;
  866. }
  867. }
  868. &.group{
  869. width: 702rpx;
  870. height: auto;
  871. background: #FFFFFF;
  872. margin-top: 30rpx;
  873. .label{
  874. line-height: 76rpx;
  875. }
  876. .row-input{
  877. width: 100%;
  878. height: 88rpx;
  879. line-height: 88rpx;
  880. padding-left: 0;
  881. }
  882. .row-radio{
  883. float: left;
  884. }
  885. .row-text{
  886. width: 100rpx;
  887. text-align: center;
  888. float: left;
  889. }
  890. }
  891. &.btn{
  892. margin-top: 0;
  893. }
  894. .content-class {
  895. margin: 20rpx auto;
  896. display: flex;
  897. flex-flow: row wrap;
  898. justify-content: space-between;
  899. align-items: center;
  900. &.btn{
  901. margin: 0 auto;
  902. margin-left: 116rpx;
  903. }
  904. .row-input{
  905. display: flex;
  906. width: 220rpx;
  907. height: 40rpx;
  908. padding: 24rpx;
  909. text-align: left;
  910. border-radius: 10rpx;
  911. font-size: $font-size-28;
  912. color: $text-color;
  913. }
  914. .confirm-btn{
  915. width: 160rpx;
  916. height: 64rpx;
  917. border-radius: 45rpx;
  918. line-height: 64rpx;
  919. text-align: center;
  920. background:#ffe6dc;
  921. color: $color-system;
  922. &.other{
  923. width: 213rpx;
  924. }
  925. // &.none{
  926. // color: #FFFFFF;
  927. // }
  928. // &.disabled{
  929. // color: #999999;
  930. // }
  931. }
  932. .item {
  933. // width: 190rpx;
  934. height: 60rpx;
  935. font-size:$font-size-28;
  936. line-height: 60rpx;
  937. border-radius:10rpx;
  938. margin-left: 20rpx;
  939. margin-bottom: 10rpx;
  940. box-sizing: border-box;
  941. // border: 1rpx solid #EFEFEF;
  942. float: left;
  943. // checkbox {
  944. // display: none;
  945. // }
  946. }
  947. .item-checkbox{
  948. display: none;
  949. }
  950. .item-text{
  951. border: 2rpx solid #e1e1e1;
  952. display: inline-block;
  953. font-size: 26rpx;
  954. color: #999999;
  955. padding: 0 30rpx;
  956. border-radius: 28rpx;
  957. line-height: 50rpx;
  958. float: left;
  959. }
  960. .on {
  961. .item-text{
  962. border-color: $color-system;
  963. color:$color-system;
  964. }
  965. }
  966. }
  967. }
  968. .icon-xiayibu{
  969. width: 88rpx;
  970. height: 88rpx;
  971. position: absolute;
  972. right: 0;
  973. top: 0;
  974. line-height: 88rpx;
  975. text-align: center;
  976. color: #b2b2b2;
  977. }
  978. &.text-textarea{
  979. background: #FFFFFF;
  980. .textarea{
  981. width: 100%;
  982. height: 120rpx;
  983. background: #FFFFFF;
  984. padding: 24rpx 0;
  985. font-size: $font-size-28;
  986. color: $text-color;
  987. z-index: 1;
  988. border-bottom: 1px solid #E1E1E1;
  989. }
  990. .textarea.hide{
  991. opacity: 0;
  992. }
  993. .textarea.show{
  994. color: #999999;
  995. }
  996. }
  997. }
  998. .register-picture{
  999. // height: 102rpx;
  1000. margin: 30rpx 0;
  1001. // width: 42%;
  1002. // float: left;
  1003. &.zz{
  1004. width: 100%;
  1005. }
  1006. .label{
  1007. // float: left;
  1008. font-size: $font-size-28;
  1009. color: $text-color;
  1010. line-height: 102rpx;
  1011. // width: 150rpx;
  1012. // text-align: left;
  1013. &.zz{
  1014. width: 230rpx;
  1015. }
  1016. }
  1017. .upload-picture{
  1018. // float: left;
  1019. width: 200rpx;
  1020. height: 180rpx;
  1021. .upload-none{
  1022. width: 200rpx;
  1023. height: 180rpx;
  1024. text-align: center;
  1025. line-height: 100rpx;
  1026. color: #999999;
  1027. // border: 1px solid #999999;
  1028. border-radius: 10rpx;
  1029. // margin: 0 20rpx;
  1030. // .iconfont{
  1031. // font-size: $font-size-28;
  1032. // }
  1033. image{
  1034. width: 100%;
  1035. height: 100%;
  1036. }
  1037. }
  1038. .upload-image{
  1039. width:200rpx;
  1040. height: 180rpx;
  1041. border-radius: 10rpx;
  1042. margin: 0 20rpx;
  1043. position: relative;
  1044. image{
  1045. width:100%;
  1046. height: 100%;
  1047. border-radius: 10rpx;
  1048. }
  1049. .upload-del{
  1050. width: 40rpx;
  1051. height: 40rpx;
  1052. position: absolute;
  1053. top: -20rpx;
  1054. right: -20rpx;
  1055. line-height: 40rpx;
  1056. text-align: center;
  1057. .iconfont{
  1058. font-size: $font-size-32;
  1059. color: #999999;
  1060. }
  1061. }
  1062. }
  1063. }
  1064. }
  1065. .register-input{
  1066. width: 654rpx;
  1067. height: 40rpx;
  1068. padding: 24rpx;
  1069. margin: 0 auto;
  1070. margin-bottom: 60rpx;
  1071. background: #F7F7F7;
  1072. border-radius: 14rpx;
  1073. .input{
  1074. width: 100%;
  1075. height: 100%;
  1076. background: #F7F7F7;
  1077. font-size: $font-size-28;
  1078. line-height: 40rpx;
  1079. color: #333333;
  1080. border-radius: 14rpx;
  1081. }
  1082. }
  1083. .register-fiexd{
  1084. width: 100%;
  1085. height: auto;
  1086. padding: 20rpx 0;
  1087. position: fixed;
  1088. bottom: 0;
  1089. left: 0;
  1090. z-index: 99;
  1091. background: #FFFFFF;
  1092. .register-agree{
  1093. display: flex;
  1094. flex-direction: column;
  1095. align-items: center;
  1096. margin: 32rpx 0;
  1097. .agree-text{
  1098. .checkbox{
  1099. float: left;
  1100. margin: 4rpx 6rpx 0 0;
  1101. color: #999999;
  1102. font-size: $font-size-32;
  1103. &.icon-gouxuan{
  1104. color: $color-system;
  1105. }
  1106. }
  1107. font-size: 20rpx;
  1108. line-height: 44rpx;
  1109. color: #999999;
  1110. text{
  1111. color:#0091FF;
  1112. }
  1113. }
  1114. }
  1115. }
  1116. .register-btn{
  1117. width: 600rpx;
  1118. height: 88rpx;
  1119. border-radius: 44rpx;
  1120. font-size: $font-size-28;
  1121. line-height: 88rpx;
  1122. color: #FFFFFF;
  1123. margin: 0 auto;
  1124. text-align: center;
  1125. background: $btn-confirm;
  1126. margin-top: 96rpx;
  1127. &.none{
  1128. background: #FFFFFF;
  1129. color: $text-color;
  1130. margin-top: 0;
  1131. }
  1132. &.sub{
  1133. margin-top: 0;
  1134. }
  1135. }
  1136. }
  1137. }
  1138. checkbox .wx-checkbox-input{
  1139. border-radius: 50%;
  1140. width: 36rpx;
  1141. height: 36rpx;
  1142. }
  1143. /* 选中后的 背景样式 */
  1144. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  1145. background: #E15616;
  1146. border: 2rpx solid #e15616;
  1147. }
  1148. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  1149. border-radius: 50%;
  1150. width: 36rpx;
  1151. height: 36rpx;
  1152. line-height: 36rpx;
  1153. text-align: center;
  1154. font-size:20rpx;
  1155. color:#fff;
  1156. transform:scale(.8);
  1157. -webkit-transform:translate(-50%, -50%) scale(1);
  1158. }
  1159. .tui-alert-box {
  1160. width: 100%;
  1161. height: 100%;
  1162. display: flex;
  1163. align-items: center;
  1164. justify-content: center;
  1165. flex-direction: column;
  1166. position: fixed;
  1167. left: 0;
  1168. top: 0;
  1169. opacity: 1;
  1170. background: rgba(51,51,51,0.5);
  1171. z-index: 99999;
  1172. .tui-alert-content{
  1173. width: 580rpx;
  1174. height: 324rpx;
  1175. border-radius: 16rpx;
  1176. background-color: #FFFFFF;
  1177. position: absolute;
  1178. top: 0;
  1179. bottom: 0;
  1180. right: 0;
  1181. left: 0;
  1182. margin: auto;
  1183. .tui-alert-main{
  1184. width: 100%;
  1185. height: 234rpx;
  1186. box-sizing: border-box;
  1187. padding: 60rpx 30rpx;
  1188. line-height: 60rpx;
  1189. font-size: $font-size-26;
  1190. color: #666666;
  1191. text-align: justify;
  1192. .red{
  1193. color: #e15616;
  1194. }
  1195. }
  1196. .tui-alert-btn{
  1197. width: 100%;
  1198. height: 90rpx;
  1199. box-sizing: border-box;
  1200. line-height: 90rpx;
  1201. background: $btn-confirm;
  1202. color: #FFFFFF;
  1203. text-align: center;
  1204. font-size: $font-size-28;
  1205. border-radius: 0 0 16rpx 16rpx ;
  1206. }
  1207. }
  1208. }
  1209. </style>