apply.vue 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  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="registerEmail" 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="abbreviation" 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="uploadBusinessImage === ''" @click="chooseBusinessImage">
  75. <image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/club-zizhi.png"></image>
  76. </view>
  77. <view class="upload-image" v-else>
  78. <image :src="uploadBusinessImage" 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="uploadMentuzImage === ''" @click="chooseMentuzImage">
  91. <image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/club-zizhi.png"></image>
  92. </view>
  93. <view class="upload-image" v-else>
  94. <image :src="uploadMentuzImage" 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">
  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 class="register-from radio"> -->
  121. <!-- <radio-group @change="radioChange">
  122. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  123. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  124. <view class="row-text">{{item.name}}</view>
  125. </label>
  126. </radio-group> -->
  127. <!-- </view> -->
  128. </view>
  129. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  130. <view class="register-picture zz">
  131. <view class="label zz">医疗执业许可证</view>
  132. <view class="upload-picture">
  133. <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage">
  134. <image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/11/club-zizhi.png"></image>
  135. </view>
  136. <view class="upload-image" v-else>
  137. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  138. <view class="upload-del" @click="delMedicalImage">
  139. <text class='iconfont icon-shanchu1'></text>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="register-row clearfix" v-show="isDepartment">
  146. <view class="register-from" style="height: auto;border: 0;">
  147. <view class="kes-title" >科室</view>
  148. <textarea class="keshi" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="department" maxlength="16"></textarea>
  149. </view>
  150. </view>
  151. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  152. <view class="register-from group"style="height: auto;border: 0;">
  153. <view class="label">主营内容</view>
  154. <view class="content-class">
  155. <checkbox-group @change="chooseMaleLike" >
  156. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  157. <checkbox :value="item.value"></checkbox>
  158. <text class="item-text">{{item.name}}</text>
  159. </label>
  160. </checkbox-group>
  161. </view>
  162. </view>
  163. <!-- <view class="register-from group btn">
  164. <view class="content-class btn">
  165. <view class="item" @click="showAustomItem">
  166. <text class="item-text">其他</text>
  167. </view>
  168. </view>
  169. </view>
  170. v-show="isShowAustomItem"-->
  171. <view class="register-from group btn" style="height: auto;border: 0;">
  172. <view class="content-class btn">
  173. <input class="row-input other" type="text" v-model="customItemValue" placeholder-style="placeholder" placeholder="请输入自定义项目" maxlength="5"/>
  174. <button type="default"
  175. class="confirm-btn"
  176. @click.stop="addCustomItem"
  177. >确认添加</button>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  182. <view class="register-from group" style="height: auto;border: 0;">
  183. <view class="label">主营内容</view>
  184. <view class="content-class">
  185. <checkbox-group @change="chooseMaleLikes">
  186. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  187. <checkbox :value="item.value"></checkbox>
  188. <text class="item-text">{{item.name}}</text>
  189. </label>
  190. </checkbox-group>
  191. </view>
  192. </view>
  193. <!-- <view class="register-from group btn" style="height: auto;border: 0;">
  194. <view class="content-class btn">
  195. <view class="item" @click="showAustomItem">
  196. <text class="item-text">其他</text>
  197. </view>
  198. </view>
  199. </view>
  200. v-show="isShowAustomItem"-->
  201. <view class="register-from group btn" style="height: auto;border: 0;">
  202. <view class="content-class btn">
  203. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" placeholder-style="placeholder" maxlength="5"/>
  204. <button type="default"
  205. class="confirm-btn"
  206. @click.stop="addCustomItem"
  207. >确认添加</button>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="register-fiexd clearfix" :style="{paddingBottom :isIphoneX ? '68rpx' : '36rpx'}">
  212. <view class="register-row ">
  213. <view class="register-btn sub" @click.stop="organizationUpdateInfo">确认升级并提交审核</view>
  214. </view>
  215. </view>
  216. <mpvue-city-picker :themeColor="themeColor"
  217. ref="mpvueCityPicker"
  218. :pickerValueDefault="cityPickerValueDefault"
  219. @onCancel="onCancel"
  220. @onConfirm="onConfirm">
  221. </mpvue-city-picker>
  222. </view>
  223. </view>
  224. </template>
  225. <script>
  226. import { mapMutations } from 'vuex';
  227. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  228. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  229. import { organizationUpdateModifyInfo , organizationRegister } from "@/api/use.js"
  230. import { uploadFileImage } from "@/api/utils.js"
  231. export default{
  232. components:{
  233. mpvueCityPicker
  234. },
  235. data() {
  236. return{
  237. nvabarData: { //顶部自定义导航
  238. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  239. showSearch: 0,
  240. title: '升级会员机构', // 导航栏 中间的标题
  241. haveBack:true,
  242. textLeft:this.$store.state.isIphone
  243. },
  244. isIphoneX:this.$store.state.isIphoneX,
  245. CustomBar:this.CustomBar,// 顶部导航栏高度
  246. errorList:[],
  247. tabCurrentIndex:3,
  248. clubStatus:'', //审核状态
  249. isPreviewImage:false, //预览图片开关
  250. userID:'', //用户ID
  251. clubID:'', //会所ID
  252. registerEmail:'', //邮箱
  253. clubName:'', //机构名称
  254. abbreviation:'', //机构简称
  255. socialCreditCode:'', //统一社会信用代码
  256. isDisabled:true,
  257. isShowInput:true,
  258. textareaFocus:false,
  259. uploadBusinessImage:'', //营业执照图片
  260. uploadMentuzImage:'', //门头照图片
  261. uploadMedicalImage:'', //资质照图片
  262. department:'', //科室
  263. isDepartment:false, //是否显示科室
  264. secondClubType:'', //机构类型二级分类
  265. mainpro:'', //主营内容
  266. firstClubType:'', //机构类型
  267. isOrganizationType:0,
  268. organizationTypeText:'请选择机构类型',
  269. beautyList:beautyList,//医美分类
  270. mentuzCampNullList:mentuzCampNullList,//医美分类
  271. medicaCampNullList:medicaCampNullList,//生美分类
  272. mentuzCampList:[], //医美主营
  273. medicaCampList:[], //生美主营
  274. typtIndex:0,
  275. organizationType:0,
  276. current:0,
  277. isShowAustomItem:false, //是否显示其他添加
  278. customItemValue:'', //自定义项目
  279. isMainproCheck:false,
  280. addressData:{
  281. address:'请选择机构所在地区',
  282. townID:'', //区ID
  283. cityID:'', //市ID
  284. provinceID:'', //省ID
  285. addressDetail: '', //地址详情
  286. },
  287. typename:[
  288. {name:'医美',value:'1'},
  289. {name:'生美',value:'2'}
  290. ],
  291. }
  292. },
  293. onLoad(option) {
  294. this.clubStatus = option.clubStatus
  295. console.log(this.clubStatus)
  296. // this.organizationInfo()
  297. },
  298. methods:{
  299. hanldNavigateBack(){
  300. this.$util.modal('','资料尚未提交审核,确定放弃升级吗?','确定','取消',true,() =>{
  301. uni.navigateBack({
  302. delta: 1
  303. });
  304. })
  305. },
  306. organizationInfo(){
  307. this.$api.getStorage().then((resolve) =>{
  308. this.userID = resolve.userID
  309. organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
  310. let organizationClub = response.data.club
  311. let organizationUser = response.data.user
  312. if(organizationUser.auditNoteList!=null){
  313. this.errorList =organizationUser.auditNoteList
  314. }
  315. this.registerEmail = organizationUser.email
  316. this.clubID = organizationUser.clubID
  317. this.clubName = this.$reg.checkData(organizationClub.name)
  318. this.abbreviation = this.$reg.checkData(organizationClub.sname)
  319. if( organizationClub.provinceID == null ){
  320. this.addressData.provinceID = ''
  321. }else{
  322. this.addressData.provinceID = organizationClub.provinceID
  323. }
  324. if( organizationClub.cityID == null ){
  325. this.addressData.cityID = ''
  326. }else{
  327. this.addressData.cityID = organizationClub.cityID
  328. }
  329. if( organizationClub.townID == null ){
  330. this.addressData.townID = ''
  331. }else{
  332. this.addressData.townID = organizationClub.townID
  333. }
  334. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress:'请选择机构所在地区'
  335. this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
  336. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  337. this.firstClubType = organizationClub.firstClubType
  338. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  339. this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
  340. this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
  341. this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
  342. this.department = this.$reg.checkData(organizationClub.department)
  343. //机构类型&&主营项目
  344. switch(this.firstClubType){
  345. case '1':
  346. this.organizationTypeText = '医美'
  347. this.isOrganizationType = 1
  348. break;
  349. case '2':
  350. this.organizationTypeText = '生美'
  351. this.isOrganizationType = 2
  352. break;
  353. case null:
  354. this.organizationTypeText = '请选择机构类型'
  355. this.isOrganizationType = 0
  356. break;
  357. }
  358. if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
  359. this.mentuzCampList = this.mentuzCampNullList
  360. this.medicaCampList = this.medicaCampNullList
  361. }else{
  362. if(this.firstClubType == '1'){
  363. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  364. this.medicaCampList = this.medicaCampNullList
  365. }else{
  366. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  367. this.mentuzCampList = this.mentuzCampNullList
  368. }
  369. }
  370. //机构类型
  371. switch(this.secondClubType){
  372. case '1':this.current = 0;break;
  373. case '2':this.current = 1;this.isDepartment=true;break;
  374. case '3':this.current = 2;this.isDepartment=true;break;
  375. }
  376. }).catch(error =>{
  377. this.$util.msg(error.msg,2000)
  378. })
  379. })
  380. },
  381. organizationUpdateInfo(){//提交审核
  382. if(!this.isMainproCheck){
  383. let mainproList = []
  384. if(this.firstClubType == '1'){
  385. this.mentuzCampList.forEach(item =>{
  386. mainproList.push(item.name)
  387. })
  388. }else{
  389. this.medicaCampList.forEach(item =>{
  390. mainproList.push(item.name)
  391. })
  392. }
  393. this.mainpro = mainproList.join('/')
  394. }
  395. if( this.registerEmail == ''){
  396. this.$util.msg('请输入邮箱地址',2000);
  397. return
  398. }
  399. if( !this.$reg.isEmail(this.registerEmail)){
  400. this.$util.msg('请输入正确的邮箱地址',2000);
  401. return
  402. }
  403. if( this.clubName == ''){
  404. this.$util.msg('请输入机构名称',2000);
  405. return
  406. }
  407. if( this.addressData.townID == ''){
  408. this.$util.msg('请选择机构地址',2000);
  409. return
  410. }
  411. if( this.addressData.addressDetail == ''){
  412. this.$util.msg('请填写机构详细地址',2000);
  413. return
  414. }
  415. if( this.uploadBusinessImage == ''){
  416. this.$util.msg('请上传您的营业执照',2000);
  417. return
  418. }
  419. if(this.isOrganizationType!=0){
  420. if(this.mainpro == ''){
  421. this.$util.msg('请选择住机构主营内容',2000);
  422. return
  423. }
  424. }
  425. let params ={
  426. userID:this.userID,
  427. clubID:this.clubID, //会所ID
  428. contractEmail1:this.registerEmail,
  429. name:this.clubName,
  430. sname:this.abbreviation,
  431. provinceID:this.addressData.provinceID,
  432. cityID:this.addressData.cityID,
  433. townID:this.addressData.townID,
  434. address:this.addressData.addressDetail,
  435. socialCreditCode:this.socialCreditCode,
  436. businessLicenseImage:this.uploadBusinessImage,
  437. headpic:this.uploadMentuzImage,
  438. firstClubType:this.isOrganizationType, //机构类型分类 医美:1和生美:2
  439. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  440. department:this.department, //科室
  441. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  442. mainpro:this.mainpro,
  443. }
  444. organizationRegister(params).then(response =>{
  445. this.$util.msg('您的升级申请已提交审核',2000);
  446. setTimeout(()=>{
  447. uni.navigateBack();
  448. },2000)
  449. }).catch(error =>{
  450. this.$util.msg(error.msg,2000);
  451. })
  452. },
  453. // 三级联动选择
  454. showMulLinkageThreePicker() {
  455. this.isShowInput = true
  456. this.$refs.mpvueCityPicker.show()
  457. },
  458. onConfirm(e) {
  459. this.addressData.address = e.name;
  460. this.addressData.townID = e.townCode;
  461. this.addressData.cityID = e.cityCode;
  462. this.addressData.provinceID = e.provinceCode;
  463. },
  464. onTextareaInput(e){
  465. this.addressData.addressDetail = e.detail.value;
  466. },
  467. showTextareaFocus(){//文本框获取焦点
  468. this.isShowInput = false
  469. this.textareaFocus = true
  470. },
  471. hideTextareaFocus(){//文本框失去焦点
  472. this.isShowInput = true
  473. this.textareaFocus = false
  474. },
  475. chooseBusinessImage() {//营业执照图片上传
  476. uploadFileImage().then(res =>{
  477. this.uploadBusinessImage = JSON.parse(res.data).data
  478. })
  479. },
  480. chooseMentuzImage() {//门头照图片上传
  481. uploadFileImage().then(res =>{
  482. this.uploadMentuzImage = JSON.parse(res.data).data
  483. })
  484. },
  485. chooseMedicalImage() {//资质照图片上传
  486. uploadFileImage().then(res =>{
  487. this.uploadMedicalImage = JSON.parse(res.data).data
  488. })
  489. },
  490. viewBusinessImage(e) {
  491. this.myPreviewImageFn(this.uploadBusinessImage)
  492. },
  493. viewMentuzImage(e) {
  494. this.myPreviewImageFn(this.uploadMentuzImage)
  495. },
  496. viewMedicalImage(e) {
  497. this.myPreviewImageFn(this.uploadMedicalImage)
  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.uploadBusinessImage = ''
  511. })
  512. },
  513. delMentuzImage(){
  514. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  515. this.uploadMentuzImage = ''
  516. })
  517. },
  518. delMedicalImage(){
  519. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  520. this.uploadMedicalImage = ''
  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.mainpro = this.checkLikes(e,this.mentuzCampList)
  563. },
  564. chooseMaleLikes(e){
  565. this.isMainproCheck = true
  566. this.mainpro = 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: 21rpx;
  682. line-height: 42rpx;
  683. margin-right: 56rpx;
  684. float: right;
  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. &.noneborder{border: none;}
  742. .label{
  743. text-align: left;
  744. font-size: $font-size-28;
  745. color: #666666;
  746. line-height: 88rpx;
  747. float: left;
  748. }
  749. .kes-title{
  750. font-size: $font-size-28;
  751. color: #666666;
  752. line-height: 88rpx;
  753. }
  754. .row-input{
  755. width: 520rpx;
  756. padding-left:10rpx;
  757. font-size: $font-size-28;
  758. color: $text-color;
  759. line-height: 88rpx;
  760. float: right;
  761. height: 88rpx;
  762. &.code{width: 500rpx;}
  763. &.none{
  764. color: #999999;
  765. }
  766. &.picker{
  767. text-align: left;
  768. color: #333333;
  769. }
  770. }
  771. .keshi{
  772. width: 678rpx;
  773. border: 2rpx solid #b2b2b2;
  774. border-radius: 6rpx;
  775. height: 160rpx;
  776. font-size: $font-size-28;
  777. padding: 10rpx;
  778. }
  779. &.code{
  780. width: 410rpx;
  781. float: left;
  782. margin-right: 20rpx;
  783. .row-input{
  784. width: 390rpx;
  785. }
  786. }
  787. &.btn{
  788. width: 224rpx;
  789. height: 88rpx;
  790. float: left;
  791. background: $btn-confirm;
  792. padding: 0;
  793. .row-input{
  794. width: 224rpx;
  795. height: 88rpx;
  796. line-height: 88rpx;
  797. padding: 0;
  798. color: #FFFFFF;
  799. background: $btn-confirm;
  800. text-align: center;
  801. border-radius: 14rpx;
  802. &.other{
  803. width: 350rpx;
  804. background: #FFF;
  805. margin-right: 20rpx;
  806. border: 2rpx solid #b2b2b2;
  807. border-radius: 44rpx;
  808. padding: 0 24rpx;
  809. height: 64rpx;
  810. line-height: 64rpx;
  811. }
  812. &.none{
  813. background: #F7F7F7;
  814. }
  815. }
  816. &.disabled{
  817. background: #F7F7F7;
  818. .row-input{
  819. background: #F7F7F7;
  820. color: #999999;
  821. }
  822. }
  823. }
  824. &.picker{
  825. width: 100%;
  826. height: 88rpx;
  827. line-height: 88rpx;
  828. .label{
  829. line-height: 88rpx;
  830. }
  831. .label-radio{margin-right: 70rpx;}
  832. .row-radio{
  833. transform: scale(.8);
  834. }
  835. .row-input{
  836. width: 500rpx;
  837. height: 88rpx;
  838. line-height: 88rpx;
  839. padding-left: 30rpx;
  840. }
  841. }
  842. &.radio{
  843. width: 654rpx;
  844. height: 288rpx;
  845. .row-input{
  846. width: 100%;
  847. height: 88rpx;
  848. line-height: 88rpx;
  849. padding-left: 0;
  850. }
  851. .row-radio{
  852. float: left;
  853. transform: scale(0.8);
  854. }
  855. .row-text{
  856. width: 100rpx;
  857. text-align: center;
  858. float: left;
  859. }
  860. }
  861. &.group{
  862. width: 702rpx;
  863. height: auto;
  864. background: #FFFFFF;
  865. margin-top: 30rpx;
  866. .label{
  867. line-height: 76rpx;
  868. }
  869. .row-input{
  870. width: 100%;
  871. height: 88rpx;
  872. line-height: 88rpx;
  873. padding-left: 0;
  874. }
  875. .row-radio{
  876. float: left;
  877. }
  878. .row-text{
  879. width: 100rpx;
  880. text-align: center;
  881. float: left;
  882. }
  883. }
  884. &.btn{
  885. margin-top: 0;
  886. }
  887. .content-class {
  888. margin: 20rpx auto;
  889. display: flex;
  890. flex-flow: row wrap;
  891. justify-content: space-between;
  892. align-items: center;
  893. &.btn{
  894. margin: 0 auto;
  895. margin-left: 116rpx;
  896. }
  897. .row-input{
  898. display: flex;
  899. width: 220rpx;
  900. height: 40rpx;
  901. padding: 24rpx;
  902. text-align: left;
  903. border-radius: 10rpx;
  904. font-size: $font-size-28;
  905. color: $text-color;
  906. }
  907. .confirm-btn{
  908. width: 160rpx;
  909. height: 64rpx;
  910. border-radius: 45rpx;
  911. line-height: 64rpx;
  912. text-align: center;
  913. background:#ffe6dc;
  914. color: $color-system;
  915. &.other{
  916. width: 213rpx;
  917. }
  918. // &.none{
  919. // color: #FFFFFF;
  920. // }
  921. // &.disabled{
  922. // color: #999999;
  923. // }
  924. }
  925. .item {
  926. // width: 190rpx;
  927. height: 60rpx;
  928. font-size:$font-size-28;
  929. line-height: 60rpx;
  930. border-radius:10rpx;
  931. margin-left: 40rpx;
  932. box-sizing: border-box;
  933. // border: 1rpx solid #EFEFEF;
  934. float: left;
  935. // checkbox {
  936. // display: none;
  937. // }
  938. }
  939. .on {
  940. border-color: $color-system;
  941. color:$color-system;
  942. }
  943. }
  944. }
  945. .icon-xiayibu{
  946. width: 88rpx;
  947. height: 88rpx;
  948. position: absolute;
  949. right: 0;
  950. top: 0;
  951. line-height: 88rpx;
  952. text-align: center;
  953. color: #b2b2b2;
  954. }
  955. &.text-textarea{
  956. background: #FFFFFF;
  957. .textarea{
  958. width: 100%;
  959. height: 120rpx;
  960. background: #FFFFFF;
  961. padding: 24rpx 0;
  962. font-size: $font-size-28;
  963. color: $text-color;
  964. z-index: 1;
  965. border-bottom: 1px solid #E1E1E1;
  966. }
  967. .textarea.hide{
  968. opacity: 0;
  969. }
  970. .textarea.show{
  971. color: #999999;
  972. }
  973. }
  974. }
  975. .register-picture{
  976. // height: 102rpx;
  977. margin: 30rpx 0;
  978. // width: 42%;
  979. // float: left;
  980. &.zz{
  981. width: 100%;
  982. }
  983. .label{
  984. // float: left;
  985. font-size: $font-size-28;
  986. color: $text-color;
  987. line-height: 102rpx;
  988. // width: 150rpx;
  989. // text-align: left;
  990. &.zz{
  991. width: 230rpx;
  992. }
  993. }
  994. .upload-picture{
  995. // float: left;
  996. width: 200rpx;
  997. height: 180rpx;
  998. .upload-none{
  999. width: 200rpx;
  1000. height: 180rpx;
  1001. text-align: center;
  1002. line-height: 100rpx;
  1003. color: #999999;
  1004. // border: 1px solid #999999;
  1005. border-radius: 10rpx;
  1006. // margin: 0 20rpx;
  1007. // .iconfont{
  1008. // font-size: $font-size-28;
  1009. // }
  1010. image{
  1011. width: 100%;
  1012. height: 100%;
  1013. }
  1014. }
  1015. .upload-image{
  1016. width:200rpx;
  1017. height: 180rpx;
  1018. border-radius: 10rpx;
  1019. margin: 0 20rpx;
  1020. position: relative;
  1021. image{
  1022. width:100%;
  1023. height: 100%;
  1024. border-radius: 10rpx;
  1025. }
  1026. .upload-del{
  1027. width: 40rpx;
  1028. height: 40rpx;
  1029. position: absolute;
  1030. top: -20rpx;
  1031. right: -20rpx;
  1032. line-height: 40rpx;
  1033. text-align: center;
  1034. .iconfont{
  1035. font-size: $font-size-32;
  1036. color: #999999;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. }
  1042. .register-input{
  1043. width: 654rpx;
  1044. height: 40rpx;
  1045. padding: 24rpx;
  1046. margin: 0 auto;
  1047. margin-bottom: 60rpx;
  1048. background: #F7F7F7;
  1049. border-radius: 14rpx;
  1050. .input{
  1051. width: 100%;
  1052. height: 100%;
  1053. background: #F7F7F7;
  1054. font-size: $font-size-28;
  1055. line-height: 40rpx;
  1056. color: #333333;
  1057. border-radius: 14rpx;
  1058. }
  1059. }
  1060. .register-fiexd{
  1061. width: 100%;
  1062. height: auto;
  1063. padding: 20rpx 0;
  1064. position: fixed;
  1065. bottom: 0;
  1066. left: 0;
  1067. z-index: 99;
  1068. background: #FFFFFF;
  1069. .register-agree{
  1070. display: flex;
  1071. flex-direction: column;
  1072. align-items: center;
  1073. margin: 32rpx 0;
  1074. .agree-text{
  1075. .checkbox{
  1076. float: left;
  1077. margin: 4rpx 6rpx 0 0;
  1078. color: #999999;
  1079. font-size: $font-size-32;
  1080. &.icon-gouxuan{
  1081. color: $color-system;
  1082. }
  1083. }
  1084. font-size: 20rpx;
  1085. line-height: 44rpx;
  1086. color: #999999;
  1087. text{
  1088. color:#0091FF;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. .register-btn{
  1094. width: 600rpx;
  1095. height: 88rpx;
  1096. border-radius: 44rpx;
  1097. font-size: $font-size-28;
  1098. line-height: 88rpx;
  1099. color: #FFFFFF;
  1100. margin: 0 auto;
  1101. text-align: center;
  1102. background: $btn-confirm;
  1103. margin-top: 96rpx;
  1104. &.none{
  1105. background: #FFFFFF;
  1106. color: $text-color;
  1107. margin-top: 0;
  1108. }
  1109. &.sub{
  1110. margin-top: 0;
  1111. }
  1112. }
  1113. }
  1114. }
  1115. checkbox .wx-checkbox-input{
  1116. border-radius: 50%;
  1117. width: 36rpx;
  1118. height: 36rpx;
  1119. }
  1120. /* 选中后的 背景样式 */
  1121. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  1122. background: #E15616;
  1123. border: 2rpx solid #e15616;
  1124. }
  1125. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  1126. border-radius: 50%;
  1127. width: 36rpx;
  1128. height: 36rpx;
  1129. line-height: 36rpx;
  1130. text-align: center;
  1131. font-size:20rpx;
  1132. color:#fff;
  1133. transform:scale(.8);
  1134. -webkit-transform:translate(-50%, -50%) scale(1);
  1135. }
  1136. </style>