information.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994
  1. <template>
  2. <view class="container register">
  3. <view class="register-main first clearfix">
  4. <view class="register-row">
  5. <view class="register-title">基本信息</view>
  6. </view>
  7. <view class="register-row clearfix">
  8. <view class="register-from">
  9. <view class="label">机构名称:</view>
  10. <input class="row-input" type="text" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
  11. </view>
  12. </view>
  13. <view class="register-row clearfix">
  14. <view class="register-from">
  15. <view class="label">联系人:</view>
  16. <input class="row-input" type="text" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="register-main clearfix" >
  21. <view class="register-row">
  22. <view class="register-title">详细信息<text class="txt">(请尽量填写,有利于快速审核通过)</text></view>
  23. </view>
  24. </view>
  25. <view class="register-main detailed clearfix">
  26. <view class="register-row clearfix">
  27. <view class="register-from">
  28. <view class="label">机构简称:</view>
  29. <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
  30. </view>
  31. </view>
  32. <view class="register-row clearfix">
  33. <view class="register-from" @click="showMulLinkageThreePicker">
  34. <view class="label">机构地址:</view>
  35. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  36. {{addressData.address}}
  37. </text>
  38. <text class="iconfont icon-xiayibu"></text>
  39. </view>
  40. </view>
  41. <view class="register-row text-textarea clearfix">
  42. <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  43. <textarea v-else
  44. class="textarea"
  45. type="text"
  46. v-model="addressData.addressDetail"
  47. placeholder="详细地址:如道路、门牌号、小区等"
  48. placeholder-class="placeholder"
  49. maxlength="25"
  50. @input="onTextareaInput"
  51. :class="isShowInput ? '':''"
  52. />
  53. </view>
  54. <view class="register-row clearfix">
  55. <view class="register-from">
  56. <view class="label">营业执照编号:</view>
  57. <input class="row-input" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="16"/>
  58. </view>
  59. </view>
  60. <view class="register-row clearfix">
  61. <view class="register-picture">
  62. <view class="label">营业执照:</view>
  63. <view class="upload-picture">
  64. <view class="upload-none" v-if="uploadBusinessImage == ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  65. <view class="upload-image" v-else>
  66. <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
  67. <view class="upload-del" @click="delBusinessImage">
  68. <text class='iconfont icon-shanchu1'></text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="register-row clearfix">
  75. <view class="register-picture">
  76. <view class="label">门头照:</view>
  77. <view class="upload-picture">
  78. <view class="upload-none" v-if="uploadMentuzImage == ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
  79. <view class="upload-image" v-else>
  80. <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
  81. <view class="upload-del" @click="delMentuzImage">
  82. <text class='iconfont icon-shanchu1'></text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="register-row clearfix">
  89. <view class="register-from picker">
  90. <view class="label">机构类型:</view>
  91. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  92. <text class="iconfont icon-xiayibu"></text>
  93. </view>
  94. </view>
  95. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  96. <view class="register-from radio">
  97. <radio-group @change="radioChange">
  98. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  99. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  100. <view class="row-text">{{item.name}}</view>
  101. </label>
  102. </radio-group>
  103. </view>
  104. </view>
  105. <view class="register-row clearfix" v-show="isDepartment">
  106. <view class="register-from">
  107. <view class="label">科室:</view>
  108. <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
  109. </view>
  110. </view>
  111. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  112. <view class="register-picture">
  113. <view class="label zz">医疗执业许可证:</view>
  114. <view class="upload-picture">
  115. <view class="upload-none" v-if="uploadMedicalImage == ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
  116. <view class="upload-image" v-else>
  117. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  118. <view class="upload-del" @click="delMedicalImage">
  119. <text class='iconfont icon-shanchu1'></text>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  126. <view class="register-from group">
  127. <view class="label">主营内容:</view>
  128. <checkbox-group class="content-class" @change="chooseMaleLike" >
  129. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  130. <checkbox :value="item.value"></checkbox>
  131. <text class="item-text">{{item.name}}</text>
  132. </label>
  133. </checkbox-group>
  134. </view>
  135. <view class="register-from group btn">
  136. <view class="content-class btn">
  137. <view class="item" @click="showAustomItem">
  138. <text class="item-text">其他</text>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="register-from group btn" v-show="isShowAustomItem">
  143. <view class="content-class btn">
  144. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  145. <button type="default"
  146. class="confirm-btn"
  147. :class="[isDisabled ? 'disabled' : 'none']"
  148. :disabled="isDisabled"
  149. @click.stop="addCustomItem"
  150. >确认添加</button>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  155. <view class="register-from group">
  156. <view class="label">主营内容:</view>
  157. <checkbox-group class="content-class" @change="chooseMaleLikes">
  158. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  159. <checkbox :value="item.value"></checkbox>
  160. <text class="item-text">{{item.name}}</text>
  161. </label>
  162. </checkbox-group>
  163. </view>
  164. <view class="register-from group btn">
  165. <view class="content-class btn">
  166. <view class="item" @click="showAustomItem">
  167. <text class="item-text">其他</text>
  168. </view>
  169. </view>
  170. </view>
  171. <view class="register-from group btn" v-show="isShowAustomItem">
  172. <view class="content-class btn">
  173. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  174. <button type="default"
  175. class="confirm-btn"
  176. :class="[isDisabled ? 'disabled' : 'none']"
  177. :disabled="isDisabled"
  178. @click.stop="addCustomItem"
  179. >确认添加</button>
  180. </view>
  181. </view>
  182. </view>
  183. <view class="register-row clearfix">
  184. <view class="register-from">
  185. <view class="label">固定电话:</view>
  186. <input class="row-input" type="text" v-model="clubTelePhone" placeholder="请填写机构的固定电话" maxlength="15"/>
  187. </view>
  188. </view>
  189. <view class="register-row clearfix">
  190. <view class="register-from">
  191. <view class="label">传真:</view>
  192. <input class="row-input" type="text" v-model="clubFax" placeholder="请填写机构的传真" maxlength="15"/>
  193. </view>
  194. </view>
  195. <view class="register-row text-textarea clearfix">
  196. <view class="textarea show" v-if="isCompanyPprofile" @click="showTextarea">{{'请填写公司简介,最多500字'}}</view>
  197. <textarea v-else
  198. class="textarea"
  199. type="text"
  200. v-model="companyPprofile"
  201. placeholder="请填写公司简介,最多500字"
  202. placeholder-class="placeholder"
  203. maxlength="500"
  204. @input="onTextareaInput"
  205. :class="isShowInput ? '':''"
  206. />
  207. </view>
  208. <view class="register-fiexd clearfix">
  209. <view class="register-agree">
  210. <view class="agree-text" @tap.stop="agreeCheck()">
  211. <button class="checkbox iconfont" :class="[isCheck ?'icon-gouxuan':'icon-weigouxuan']"></button>
  212. 我已阅读并同意
  213. <text @click.stop="this.$api.navigateTo('/pages/service/organagree')">《机构协议》</text>
  214. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  215. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  216. </view>
  217. </view>
  218. <view class="register-row">
  219. <view class="register-btn sub" @click.stop="organizationUpdateInfo">确定</view>
  220. </view>
  221. </view>
  222. <mpvue-city-picker :themeColor="themeColor"
  223. ref="mpvueCityPicker"
  224. :pickerValueDefault="cityPickerValueDefault"
  225. @onCancel="onCancel"
  226. @onConfirm="onConfirm">
  227. </mpvue-city-picker>
  228. </view>
  229. </view>
  230. </template>
  231. <script>
  232. import { mapMutations } from 'vuex';
  233. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  234. import { organizationUpdateModifyInfo } from "@/api/use.js"
  235. import { uploadFileImage } from "@/api/utils.js"
  236. import { sellerClubUpdate } from "@/api/seller.js"
  237. var self;
  238. export default{
  239. components:{
  240. mpvueCityPicker
  241. },
  242. data() {
  243. return{
  244. isPreviewImage:false, //预览图片开关
  245. userID:'', //机构的userID
  246. clubID:'', //会所ID
  247. email:'', //邮箱
  248. clubName:'', //机构名称
  249. abbreviation:'', //机构简称
  250. clubContact:'', //联系人
  251. socialCreditCode:'', //统一社会信用代码
  252. isAgreed:0, //是否勾选协议
  253. isDisabled:true,
  254. isShowInput:false,
  255. isCheck:true, //是否勾选协议
  256. uploadBusinessImage:'', //营业执照图片
  257. uploadMentuzImage:'', //门头照图片
  258. uploadMedicalImage:'', //资质照图片
  259. department:'', //科室
  260. isDepartment:false, //是否显示科室
  261. secondClubType:'', //机构类型二级分类
  262. mainpro:'', //主营内容
  263. clubTelePhone:'', //固定电话
  264. clubFax:'', //传真
  265. companyPprofile:'', //公司简介
  266. firstClubType:'', //机构类型
  267. isOrganizationType:0,
  268. organizationTypeText:'请选择机构类型',
  269. beautyList:[{value:'1',name:'诊所'},{value:'2',name:'门诊'},{value:'3',name:'医院'}],
  270. mentuzCampList:[],
  271. medicaCampList:[],
  272. typtIndex:0,
  273. organizationType:0,
  274. current:0,
  275. isShowAustomItem:false, //是否显示其他添加
  276. customItemValue:'', //自定义项目
  277. isMainproCheck:false,
  278. addressData:{
  279. address:'请选择机构所在地区',
  280. townID:'', //区ID
  281. cityID:'', //市ID
  282. provinceID:'', //省ID
  283. addressDetail: '', //地址详情
  284. },
  285. }
  286. },
  287. onLoad(option) {
  288. console.log(option)
  289. this.userID = option.id
  290. this.organizationInfo()
  291. },
  292. methods:{
  293. organizationInfo(){
  294. organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
  295. let organizationClub = response.data.club
  296. let organizationUser = response.data.user
  297. this.email = organizationUser.email
  298. this.clubID = organizationUser.clubID
  299. this.clubName = organizationClub.name
  300. this.clubContact = organizationClub.linkMan
  301. this.mobile = organizationUser.bindMobile
  302. this.abbreviation = organizationClub.sname
  303. if( organizationClub.provinceID == null ){
  304. this.addressData.provinceID = ''
  305. }else{
  306. this.addressData.provinceID = organizationClub.provinceID
  307. }
  308. if( organizationClub.cityID == null ){
  309. this.addressData.cityID = ''
  310. }else{
  311. this.addressData.cityID = organizationClub.cityID
  312. }
  313. if( organizationClub.townID == null ){
  314. this.addressData.townID = ''
  315. }else{
  316. this.addressData.townID = organizationClub.townID
  317. }
  318. this.addressData.addressDetail = organizationClub.address ? organizationClub.address : ''
  319. this.socialCreditCode = organizationClub.socialCreditCode
  320. this.firstClubType = organizationClub.firstClubType
  321. this.secondClubType = organizationClub.secondClubType
  322. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
  323. this.uploadBusinessImage = organizationClub.businessLicenseImage
  324. this.uploadMedicalImage = organizationClub.medicalPracticeLicenseImg
  325. this.uploadMentuzImage = organizationClub.headpic
  326. this.department = organizationClub.department
  327. this.clubTelePhone = organizationClub.contractPhone ? organizationClub.contractPhone : ''
  328. this.clubFax = organizationClub.fax ? organizationClub.fax : ''
  329. this.companyPprofile = organizationClub.info ? organizationClub.info : ''
  330. //机构类型&&主营项目
  331. switch(this.firstClubType){
  332. case '1':
  333. this.organizationTypeText = '医美'
  334. this.isOrganizationType = 1
  335. break;
  336. case '2':
  337. this.organizationTypeText = '生美'
  338. this.isOrganizationType = 2
  339. break;
  340. case null:
  341. this.organizationTypeText = '请选择机构类型'
  342. this.isOrganizationType = 0
  343. break;
  344. }
  345. if(organizationClub.mainpro!=""){
  346. if(this.firstClubType == '1'){
  347. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  348. console.log(this.mentuzCampList)
  349. }else{
  350. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  351. }
  352. }
  353. //机构类型
  354. switch(this.secondClubType){
  355. case '1':this.current = 0;break;
  356. case '2':this.current = 1;this.isDepartment=true;break;
  357. case '3':this.current = 2;this.isDepartment=true;break;
  358. }
  359. }).catch(response =>{
  360. this.$util.msg(response.msg,2000)
  361. })
  362. },
  363. organizationUpdateInfo(){//提交审核
  364. if(!this.isCheck){
  365. this.$util.msg('请勾选同意协议',2000);
  366. return
  367. }
  368. if(!this.isMainproCheck){
  369. let mainproList = []
  370. if(this.firstClubType == '1'){
  371. this.mentuzCampList.forEach(item =>{
  372. mainproList.push(item.name)
  373. })
  374. }else{
  375. this.medicaCampList.forEach(item =>{
  376. mainproList.push(item.name)
  377. })
  378. }
  379. this.mainpro = mainproList.join('/')
  380. }
  381. let params ={
  382. userID:this.userID,
  383. clubID:this.clubID, //会所ID
  384. name:this.clubName,
  385. linkMan:this.clubContact,
  386. sname:this.abbreviation,
  387. provinceID:this.addressData.provinceID,
  388. cityID:this.addressData.cityID,
  389. townID:this.addressData.townID,
  390. address:this.addressData.addressDetail,
  391. socialCreditCode:this.socialCreditCode,
  392. businessLicenseImage:this.uploadBusinessImage,
  393. headpic:this.uploadMentuzImage,
  394. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  395. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  396. department:this.department, //科室
  397. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  398. isAgreed:this.isAgreed, //是否勾选协议
  399. mainpro:this.mainpro,
  400. fax:this.clubFax,
  401. contractPhone:this.clubTelePhone,
  402. info : this.companyPprofile
  403. }
  404. console.log(params)
  405. sellerClubUpdate(params).then(response =>{
  406. this.$util.msg('修改成功',2000);
  407. setTimeout(()=>{
  408. uni.navigateBack({
  409. delta: 1
  410. });
  411. },2000)
  412. }).catch(response =>{
  413. this.$util.msg(response.msg,2000);
  414. })
  415. },
  416. // 三级联动选择
  417. showMulLinkageThreePicker() {
  418. this.isShowInput = true
  419. this.$refs.mpvueCityPicker.show()
  420. },
  421. onConfirm(e) {
  422. console.log('地址',e);
  423. this.addressData.address = e.name;
  424. this.addressData.townID = e.townCode;
  425. this.addressData.cityID = e.cityCode;
  426. this.addressData.provinceID = e.provinceCode;
  427. },
  428. onTextareaInput(e){
  429. this.addressData.addressDetail = e.detail.value;
  430. },
  431. chooseBusinessImage() {//营业执照图片上传
  432. uploadFileImage().then(res =>{
  433. this.uploadBusinessImage = JSON.parse(res.data).data
  434. })
  435. },
  436. chooseMentuzImage() {//门头照图片上传
  437. uploadFileImage().then(res =>{
  438. this.uploadMentuzImage = JSON.parse(res.data).data
  439. })
  440. },
  441. chooseMedicalImage() {//资质照图片上传
  442. uploadFileImage().then(res =>{
  443. this.uploadMedicalImage = JSON.parse(res.data).data
  444. })
  445. },
  446. viewBusinessImage(e) {
  447. this.myPreviewImageFn(this.uploadBusinessImage)
  448. },
  449. viewMentuzImage(e) {
  450. this.myPreviewImageFn(this.uploadMentuzImage)
  451. },
  452. viewMedicalImage(e) {
  453. this.myPreviewImageFn(this.uploadMedicalImage)
  454. },
  455. myPreviewImageFn(url){
  456. this.isPreviewImage = true
  457. let mentuzArray = []
  458. mentuzArray.push(url)
  459. uni.previewImage({
  460. urls: mentuzArray,
  461. current: 0
  462. });
  463. },
  464. delBusinessImage(){
  465. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  466. this.uploadBusinessImage = ''
  467. })
  468. },
  469. delMentuzImage(){
  470. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  471. this.uploadMentuzImage = ''
  472. })
  473. },
  474. delMedicalImage(){
  475. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  476. this.uploadMedicalImage = ''
  477. })
  478. },
  479. bindPickerChange() {
  480. let self = this
  481. uni.showActionSheet({
  482. title:'标题',
  483. itemList: ['医美', '生美'],
  484. success: (e) => {
  485. self.isOrganizationType = e.tapIndex+1
  486. switch(e.tapIndex){
  487. case 0:
  488. this.organizationTypeText = '医美'
  489. break;
  490. case 1:
  491. this.organizationTypeText = '生美'
  492. break;
  493. }
  494. }
  495. })
  496. },
  497. bindPickerChange2(e) {
  498. console.log('picker携带值为:' + e.target.value)
  499. this.typtIndex = e.target.value
  500. this.isOrganizationType = e.target.value
  501. },
  502. radioChange(e) {
  503. this.secondClubType = e.target.value;
  504. if( this.secondClubType == '2' || this.secondClubType == '3'){
  505. this.isDepartment = true
  506. }else{
  507. this.isDepartment = false
  508. }
  509. for (let i = 0; i < this.beautyList.length; i++) {
  510. if (this.beautyList[i].value === this.secondClubType) {
  511. this.current = i;
  512. break;
  513. }
  514. }
  515. },
  516. chooseMaleLike(e){
  517. this.isMainproCheck = true
  518. console.log(e)
  519. // console.log(this.mentuzCampList)
  520. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  521. // console.log(this.mainpro)
  522. },
  523. chooseMaleLikes(e){
  524. this.isMainproCheck = true
  525. // console.log(this.medicaCampList)
  526. this.mainpro = this.checkLikes(e,this.medicaCampList)
  527. // console.log(this.mainpro)
  528. },
  529. checkLikes(e,list){
  530. let items = list
  531. let values = e.detail.value
  532. // console.log(values)
  533. let arr = []
  534. for (let i = 0, lenI = items.length; i < lenI; ++i) {
  535. const item = items[i]
  536. if(values.indexOf(item.value) >= 0){
  537. this.$set(item,'checked',true)
  538. arr.push(item.name)
  539. }else{
  540. this.$set(item,'checked',false)
  541. }
  542. }
  543. return arr.join('/')
  544. },
  545. agreeCheck() {
  546. this.isCheck = !this.isCheck
  547. if(this.isCheck){
  548. this.isAgreed = 1
  549. }
  550. },
  551. onBlurInput(e){//
  552. if(e.detail.value ===''){
  553. this.isDisabled = true
  554. }else{
  555. this.isDisabled = false
  556. }
  557. },
  558. showAustomItem() {
  559. this.isShowAustomItem = !this.isShowAustomItem
  560. },
  561. setNewMainpro(arr){//回显处理主营内容
  562. let _ARRAY = []
  563. arr.split('/').forEach((item,index) =>{
  564. let _OBJ = {value:index,name:item,checked:true}
  565. _ARRAY.push(_OBJ)
  566. })
  567. return _ARRAY
  568. },
  569. addCustomItem(){
  570. if(this.isOrganizationType == 1){
  571. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  572. this.mentuzCampList.push(item)
  573. }else{
  574. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  575. this.medicaCampList.push(item)
  576. }
  577. }
  578. },
  579. onShow() {
  580. if(this.isPreviewImage){
  581. this.isPreviewImage = false
  582. return
  583. }
  584. }
  585. }
  586. </script>
  587. <style lang="scss">
  588. .register{
  589. width: 100%;
  590. height: auto;
  591. border-top: 1px solid #F7F7F7;
  592. .model-warp.none{
  593. display: none;
  594. }
  595. .model-warp.show{
  596. display: block;
  597. }
  598. .register-main{
  599. width: 100%;
  600. height: auto;
  601. &.detailed{
  602. padding-bottom: 300rpx;
  603. }
  604. &.first{
  605. padding-top: 40rpx;
  606. }
  607. .register-tips{
  608. display: flex;
  609. flex-direction: column;
  610. align-items: center;
  611. line-height: 44rpx;
  612. font-size: $font-size-24;
  613. color: #FF0000;
  614. margin-bottom: 40rpx;
  615. .iconfont{
  616. font-size: $font-size-24;
  617. }
  618. }
  619. .register-row{
  620. width: 702rpx;
  621. height: auto;
  622. padding: 0 24rpx;
  623. margin-bottom: 20rpx;
  624. .register-title{
  625. line-height: 60rpx;
  626. font-size: $font-size-32;
  627. color: $text-color;
  628. text-align: left;
  629. padding-left: 20rpx;
  630. .txt{
  631. font-size: $font-size-26;
  632. font-weight: normal;
  633. }
  634. }
  635. .row-btn{
  636. position: absolute;
  637. right: 24rpx;
  638. top: 0;
  639. line-height: 88rpx;
  640. text-align: center;
  641. font-size: $font-size-28;
  642. color: $color-system;
  643. }
  644. .register-from{
  645. width: 654rpx;
  646. height: 40rpx;
  647. padding: 24rpx;
  648. background: $sub-bg-color;
  649. border-radius: 14rpx;
  650. position: relative;
  651. .label{
  652. text-align: left;
  653. font-size: $font-size-28;
  654. color: #666666;
  655. line-height: 40rpx;
  656. float: left;
  657. }
  658. .row-input{
  659. width: 440rpx;
  660. padding-left:10rpx;
  661. font-size: $font-size-28;
  662. color: $text-color;
  663. line-height: 40rpx;
  664. float: left;
  665. height: 40rpx;
  666. &.none{
  667. color: #999999;
  668. }
  669. &.picker{
  670. text-align: left;
  671. color: #999999;
  672. }
  673. &.keshi{
  674. width: 550rpx;
  675. }
  676. }
  677. &.code{
  678. width: 410rpx;
  679. float: left;
  680. margin-right: 20rpx;
  681. .row-input{
  682. width: 390rpx;
  683. }
  684. }
  685. &.btn{
  686. width: 224rpx;
  687. height: 88rpx;
  688. float: left;
  689. background: $btn-confirm;
  690. padding: 0;
  691. .row-input{
  692. width: 224rpx;
  693. height: 88rpx;
  694. line-height: 88rpx;
  695. padding: 0;
  696. color: #FFFFFF;
  697. background: $btn-confirm;
  698. text-align: center;
  699. border-radius: 14rpx;
  700. &.other{
  701. width: 224rpx;
  702. background: #F7F7F7;
  703. margin-right: 20rpx;
  704. }
  705. &.none{
  706. background: #F7F7F7;
  707. }
  708. }
  709. &.disabled{
  710. background: #F7F7F7;
  711. .row-input{
  712. background: #F7F7F7;
  713. color: #999999;
  714. }
  715. }
  716. }
  717. &.picker{
  718. padding: 0 24rpx;
  719. width: 654rpx;
  720. height: 88rpx;
  721. line-height: 88rpx;
  722. .label{
  723. line-height: 88rpx;
  724. }
  725. .row-input{
  726. width: 470rpx;
  727. height: 88rpx;
  728. line-height: 88rpx;
  729. padding-left: 30rpx;
  730. }
  731. }
  732. &.radio{
  733. padding: 0 24rpx;
  734. width: 654rpx;
  735. height: 288rpx;
  736. .row-input{
  737. width: 100%;
  738. height: 88rpx;
  739. line-height: 88rpx;
  740. padding-left: 0;
  741. }
  742. .row-radio{
  743. float: left;
  744. transform: scale(0.8);
  745. }
  746. .row-text{
  747. width: 100rpx;
  748. text-align: center;
  749. float: left;
  750. }
  751. }
  752. &.group{
  753. padding: 0 24rpx;
  754. width: 654rpx;
  755. height: auto;
  756. background: #FFFFFF;
  757. margin-top: 30rpx;
  758. .label{
  759. line-height: 70rpx;
  760. }
  761. .row-input{
  762. width: 100%;
  763. height: 88rpx;
  764. line-height: 88rpx;
  765. padding-left: 0;
  766. }
  767. .row-radio{
  768. float: left;
  769. }
  770. .row-text{
  771. width: 100rpx;
  772. text-align: center;
  773. float: left;
  774. }
  775. }
  776. &.btn{
  777. margin-top: 0;
  778. }
  779. .content-class {
  780. margin: 20rpx auto;
  781. display: flex;
  782. flex-flow: row wrap;
  783. justify-content: space-between;
  784. &.btn{
  785. margin: 0 auto;
  786. margin-left: 126rpx;
  787. }
  788. .row-input{
  789. display: flex;
  790. width: 220rpx;
  791. height: 40rpx;
  792. padding: 24rpx;
  793. text-align: left;
  794. border-radius: 10rpx;
  795. font-size: $font-size-28;
  796. color: $text-color;
  797. }
  798. .confirm-btn{
  799. width: 200rpx;
  800. height: 88rpx;
  801. border-radius: 10rpx;
  802. line-height: 88rpx;
  803. text-align: center;
  804. &.none{
  805. color: #FFFFFF;
  806. background: $btn-confirm;
  807. }
  808. &.disabled{
  809. color: #999999;
  810. }
  811. }
  812. .item {
  813. width: 155rpx;
  814. height: 60rpx;
  815. font-size:$font-size-28;
  816. line-height: 60rpx;
  817. border-radius:10rpx;
  818. margin: 10rpx;
  819. text-align: center;
  820. box-sizing: border-box;
  821. border: 1rpx solid #EFEFEF;
  822. checkbox {
  823. display: none;
  824. }
  825. }
  826. .on {
  827. border-color: $color-system;
  828. color:$color-system;
  829. }
  830. }
  831. }
  832. .icon-xiayibu{
  833. width: 88rpx;
  834. height: 88rpx;
  835. position: absolute;
  836. right: 0;
  837. top: 0;
  838. line-height: 88rpx;
  839. text-align: center;
  840. }
  841. &.text-textarea{
  842. background: #FFFFFF;
  843. .textarea{
  844. width: 654rpx;
  845. height: 180rpx;
  846. background: #F7F7F7;
  847. padding: 24rpx;
  848. font-size: $font-size-28;
  849. color: $text-color;
  850. z-index: 1;
  851. border-radius: 14rpx;
  852. }
  853. .textarea.hide{
  854. opacity: 0;
  855. }
  856. .textarea.show{
  857. color: #999999;
  858. }
  859. }
  860. }
  861. .register-picture{
  862. height: 102rpx;
  863. margin: 40rpx 0 0 0;
  864. .label{
  865. float: left;
  866. font-size: $font-size-28;
  867. color: $text-color;
  868. line-height: 102rpx;
  869. width: 150rpx;
  870. text-align: right;
  871. &.zz{
  872. width: 230rpx;
  873. }
  874. }
  875. .upload-picture{
  876. float: left;
  877. height: 100rpx;
  878. .upload-none{
  879. width: 100rpx;
  880. height: 100rpx;
  881. text-align: center;
  882. line-height: 100rpx;
  883. color: #999999;
  884. border: 1px solid #999999;
  885. border-radius: 10rpx;
  886. margin: 0 20rpx;
  887. .iconfont{
  888. font-size: $font-size-28;
  889. }
  890. }
  891. .upload-image{
  892. width: 100rpx;
  893. height: 100rpx;
  894. border-radius: 10rpx;
  895. margin: 0 20rpx;
  896. position: relative;
  897. image{
  898. width: 100rpx;
  899. height: 100rpx;
  900. border-radius: 10rpx;
  901. }
  902. .upload-del{
  903. width: 40rpx;
  904. height: 40rpx;
  905. position: absolute;
  906. top: -20rpx;
  907. right: -20rpx;
  908. line-height: 40rpx;
  909. text-align: center;
  910. .iconfont{
  911. font-size: $font-size-32;
  912. color: #999999;
  913. }
  914. }
  915. }
  916. }
  917. }
  918. .register-input{
  919. width: 654rpx;
  920. height: 40rpx;
  921. padding: 24rpx;
  922. margin: 0 auto;
  923. margin-bottom: 60rpx;
  924. background: #F7F7F7;
  925. border-radius: 14rpx;
  926. .input{
  927. width: 100%;
  928. height: 100%;
  929. background: #F7F7F7;
  930. font-size: $font-size-28;
  931. line-height: 40rpx;
  932. color: #333333;
  933. border-radius: 14rpx;
  934. }
  935. }
  936. .register-fiexd{
  937. width: 100%;
  938. height: auto;
  939. padding: 20rpx 0;
  940. position: fixed;
  941. bottom: 0;
  942. left: 0;
  943. z-index: 99;
  944. background: #FFFFFF;
  945. .register-agree{
  946. display: flex;
  947. flex-direction: column;
  948. align-items: center;
  949. margin: 32rpx 0;
  950. .agree-text{
  951. .checkbox{
  952. float: left;
  953. margin: 4rpx 6rpx 0 0;
  954. color: #999999;
  955. font-size: $font-size-32;
  956. &.icon-gouxuan{
  957. color: $color-system;
  958. }
  959. }
  960. font-size: 20rpx;
  961. line-height: 44rpx;
  962. color: #999999;
  963. text{
  964. color:#0091FF;
  965. }
  966. }
  967. }
  968. }
  969. .register-btn{
  970. width: 702rpx;
  971. height: 88rpx;
  972. border-radius: 14rpx;
  973. font-size: $font-size-28;
  974. line-height: 88rpx;
  975. color: #FFFFFF;
  976. margin: 0 auto;
  977. text-align: center;
  978. background: $btn-confirm;
  979. margin-top: 96rpx;
  980. &.none{
  981. background: #FFFFFF;
  982. color: $text-color;
  983. margin-top: 0;
  984. }
  985. &.sub{
  986. margin-top: 0;
  987. }
  988. }
  989. }
  990. }
  991. </style>