apply.vue 34 KB

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