apply.vue 34 KB

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