apply.vue 32 KB

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