teamSign.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image src="../../static/index/tuandui.jpg" mode=""></image>
  5. </view>
  6. <view class="freeSign">
  7. 免费报名
  8. </view>
  9. <view class="signInfo">
  10. 完成信息填写,即可参加红十字会救护员培训
  11. </view>
  12. <view class="box">
  13. <!-- <view class="red-box">
  14. 申请登记表
  15. </view> -->
  16. <view class="box-1">
  17. <view class="box-left">
  18. 企业名称<text class="imp">*</text>:
  19. </view>
  20. <input type="text" value="" class="list-input" v-model="work" placeholder="请填写企业名称" />
  21. </view>
  22. <view class="box-1">
  23. <view class="box-left">
  24. 企业地址<text class="imp">*</text>:
  25. </view>
  26. <input type="text" value="" class="list-input" v-model="address" placeholder="请填写企业地址" />
  27. <!-- <picker @change="bindPickerSex" :value="index" :range="array" class="box-right" >
  28. <text>{{ sex }}</text>
  29. </picker> -->
  30. </view>
  31. <view class="box-1">
  32. <view class="box-left">
  33. 负责人姓名<text class="imp">*</text>:
  34. </view>
  35. <input type="text" value="" class="list-input" v-model="name" placeholder="请填写负责人姓名" />
  36. </view>
  37. <view class="box-1">
  38. <view class="box-left">
  39. 联系方式<text class="imp">*</text>:
  40. </view>
  41. <input type="text" value="" class="list-input" v-model="phone" placeholder="请输入联系方式"/>
  42. </view>
  43. <view class="box-1">
  44. <view class="box-left">
  45. 参加培训人数<text class="imp">*</text>:
  46. </view>
  47. <input type="text" value="" class="list-input" v-model="phone" placeholder="请输入参加培训人数"/>
  48. </view>
  49. </view>
  50. <view class="statement">
  51. <view class="title">
  52. 免费报名
  53. </view>
  54. <view class="main">
  55. <view>
  56. 请参训学员在培训当天携带身份证复印件1张,一寸证件照2张。
  57. </view>
  58. <view style="margin-top: 16rpx;">
  59. 报名电话: 0716-2202950
  60. </view>
  61. </view>
  62. </view>
  63. <view class="buttom" :class="{ action: loding }" @click="!loding?join():''">
  64. 立即报名
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. import {
  70. joinSec
  71. } from '@/api/index.js';
  72. import {
  73. upload
  74. } from '@/api/ask.js';
  75. export default {
  76. data() {
  77. const currentDate = this.getDate({
  78. format: true
  79. })
  80. return {
  81. otherjob: '',
  82. otherspe: '',
  83. loding: false, //是否提交中
  84. array: ['男', '女'],
  85. chooseEdu: ['博士后', '博士', '硕士', '本科', '专科', '其他'],
  86. chooseVol: ['有', '无'],
  87. is_vol: '',
  88. is_experience: '',
  89. chooseExp: ['是', '否'],
  90. items: [{
  91. value: '我自愿捐献全部遗体(含器官组织)'
  92. }, {
  93. value: '或只捐献眼角膜'
  94. }],
  95. timeList: [{
  96. id: 0,
  97. num: "周一",
  98. list: {
  99. morning: '周一上午',
  100. after: '周一下午',
  101. night: '周一晚上'
  102. }
  103. },
  104. {
  105. id: 1,
  106. num: "周二",
  107. list: {
  108. morning: '周二上午',
  109. after: '周二下午',
  110. night: '周二晚上'
  111. }
  112. },
  113. {
  114. id: 2,
  115. num: "周三",
  116. list: {
  117. morning: '周三上午',
  118. after: '周三下午',
  119. night: '周三晚上'
  120. }
  121. },
  122. {
  123. id: 3,
  124. num: "周四",
  125. list: {
  126. morning: '周四上午',
  127. after: '周四下午',
  128. night: '周四晚上'
  129. }
  130. },
  131. {
  132. id: 4,
  133. num: "周五",
  134. list: {
  135. morning: '周五上午',
  136. after: '周五下午',
  137. night: '周五晚上'
  138. }
  139. },
  140. {
  141. id: 5,
  142. num: "周六",
  143. list: {
  144. morning: '周六上午',
  145. after: '周六下午',
  146. night: '周六晚上'
  147. }
  148. },
  149. {
  150. id: 6,
  151. num: "周日",
  152. list: {
  153. morning: '周日上午',
  154. after: '周日下午',
  155. night: '周日晚上'
  156. }
  157. },
  158. ],
  159. jobList: [{
  160. id: 0,
  161. class_name: "赈灾工作"
  162. },
  163. {
  164. id: 1,
  165. class_name: "救护培训"
  166. },
  167. {
  168. id: 2,
  169. class_name: "活动策划"
  170. },
  171. {
  172. id: 3,
  173. class_name: "护送服务"
  174. },
  175. {
  176. id: 4,
  177. class_name: "医疗护理服务"
  178. },
  179. {
  180. id: 5,
  181. class_name: "探访服务"
  182. },
  183. {
  184. id: 6,
  185. class_name: "外语翻译"
  186. },
  187. {
  188. id: 7,
  189. class_name: "调查服务"
  190. },
  191. {
  192. id: 8,
  193. class_name: "宣传推广"
  194. },
  195. {
  196. id: 9,
  197. class_name: "文书档案工作"
  198. },
  199. {
  200. id: 10,
  201. class_name: "其他(请注明)"
  202. },
  203. ],
  204. specialityList: [{
  205. id: 0,
  206. class_name: "医疗护理"
  207. },
  208. {
  209. id: 1,
  210. class_name: "紧急救护"
  211. },
  212. {
  213. id: 2,
  214. class_name: "家电维修"
  215. },
  216. {
  217. id: 3,
  218. class_name: "影音制作"
  219. },
  220. {
  221. id: 4,
  222. class_name: "文艺演出"
  223. },
  224. {
  225. id: 5,
  226. class_name: "理发"
  227. },
  228. {
  229. id: 6,
  230. class_name: "摄影摄像"
  231. },
  232. {
  233. id: 7,
  234. class_name: "电脑中文打字"
  235. },
  236. {
  237. id: 8,
  238. class_name: "汽车驾驶"
  239. },
  240. {
  241. id: 9,
  242. class_name: "外语翻译"
  243. },
  244. {
  245. id: 10,
  246. class_name: "法律咨询"
  247. },
  248. {
  249. id: 11,
  250. class_name: "文案策划"
  251. },
  252. {
  253. id: 12,
  254. class_name: "其他(请注明)"
  255. },
  256. ],
  257. current: "",
  258. index: 0,
  259. mz: '',
  260. cardimg: '', //证件照
  261. card: '',
  262. checklist: [],
  263. name: '',
  264. sex: '',
  265. birth: '',
  266. fillingDate: '',
  267. phone: '',
  268. address: '',
  269. work: '',
  270. specialty: '',
  271. education: '',
  272. }
  273. },
  274. computed: {
  275. startDate() {
  276. return this.getDate('start');
  277. },
  278. endDate() {
  279. return this.getDate('end');
  280. }
  281. },
  282. methods: {
  283. async join() {
  284. let obj = this;
  285. if (obj.name == '') {
  286. obj.$api.msg('请输入负责人姓名');
  287. return;
  288. }
  289. // if (obj.birth == '') {
  290. // obj.$api.msg('请填写您的生日');
  291. // return;
  292. // }
  293. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  294. if (!reg.test(obj.phone)) {
  295. obj.$api.msg('请填写正确的手机号码');
  296. return;
  297. }
  298. if (obj.address == '') {
  299. obj.$api.msg('请填写您的企业地址');
  300. return;
  301. }
  302. // /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/
  303. if (obj.work == '') {
  304. obj.$api.msg('请填写您的企业名称');
  305. return;
  306. }
  307. // let reg1 =
  308. // /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/
  309. // if (!reg1.test(obj.card)) {
  310. // obj.$api.msg('请填写正确的身份证信息');
  311. // return;
  312. // }
  313. // if (obj.mz == '') {
  314. // obj.$api.msg('请填写您所属的民族');
  315. // return;
  316. // }
  317. // if (obj.specialty == '') {
  318. // obj.$api.msg('请填写您的职位');
  319. // return;
  320. // }
  321. // if (obj.education == '') {
  322. // obj.$api.msg('请填写您的教育程度');
  323. // return;
  324. // }
  325. // if (obj.is_vol == '') {
  326. // obj.$api.msg('请填写您的是否受过志愿服务');
  327. // return;
  328. // }
  329. // if (obj.is_experience == '') {
  330. // obj.$api.msg('请填写您的有无服务经验');
  331. // return;
  332. // }
  333. obj.loding = true;
  334. joinSec({
  335. name: obj.name,
  336. sex: obj.sex,
  337. education: obj.education,
  338. birth: obj.birth,
  339. mz: obj.mz,
  340. phone: obj.phone,
  341. address: obj.address,
  342. work: obj.work,
  343. specialty: obj.specialty,
  344. img: obj.cardimg,
  345. card: obj.card,
  346. }).then(e => {
  347. obj.name = '';
  348. obj.sex = '';
  349. obj.education = '';
  350. obj.birth = '';
  351. obj.mz = '',
  352. obj.phone = '';
  353. obj.address = '';
  354. obj.work = '';
  355. obj.specialty = '';
  356. obj.cardimg = '',
  357. obj.card = ''
  358. uni.navigateTo({
  359. url: '../joinSuc/joinNow'
  360. });
  361. }).catch(function(e) {
  362. console.log('出错了')
  363. console.log(e);
  364. });
  365. },
  366. imgsub() {
  367. console.log('imgsub')
  368. upload({
  369. filename: ''
  370. }).then(data => {
  371. this.cardimg = data[0].url;
  372. })
  373. },
  374. // 选择性别
  375. bindPickerSex: function(e) {
  376. this.sex = this.array[e.target.value];
  377. this.index = e.target.value + 1;
  378. },
  379. // 选择教育程度
  380. bindPickerEdu: function(e) {
  381. this.education = this.chooseEdu[e.target.value];
  382. this.index = e.target.value + 1;
  383. },
  384. // 选择日期
  385. bindDateChange: function(e) {
  386. this.birth = e.target.value
  387. },
  388. //选择填写日期
  389. fillingDateChange: function(e) {
  390. this.fillingDate = e.target.value
  391. },
  392. // 是否参加志愿活动
  393. bindPickerVol: function(e) {
  394. this.is_vol = this.chooseVol[e.target.value];
  395. this.index = e.target.value + 1;
  396. },
  397. // 有无服务经验
  398. bindPickerExp: function(e) {
  399. this.is_experience = this.chooseExp[e.target.value];
  400. this.index = e.target.value + 1;
  401. },
  402. // 选择捐献
  403. radioChange: function(evt) {
  404. for (let i = 0; i < this.items.length; i++) {
  405. if (this.items[i].value === evt.target.value) {
  406. this.current = i;
  407. break;
  408. }
  409. }
  410. },
  411. getDate(type) {
  412. const date = new Date();
  413. let year = date.getFullYear();
  414. let month = date.getMonth() + 1;
  415. let day = date.getDate();
  416. if (type === 'start') {
  417. year = year - 60;
  418. } else if (type === 'end') {
  419. year = year + 2;
  420. }
  421. month = month > 9 ? month : '0' + month;;
  422. day = day > 9 ? day : '0' + day;
  423. return `${year}-${month}-${day}`;
  424. },
  425. // 选择可提供时间
  426. // this.quantum = item.detail.value.join(',');
  427. checktime1(e) {
  428. // var items = this.timeList,
  429. // let quantum = [];
  430. this.quantum = e.detail.value.join(',');
  431. console.log(this.quantum);
  432. },
  433. checktime2(e) {
  434. // var items = this.timeList,
  435. let values = e.detail.value;
  436. // let quantum = [];
  437. console.log(values);
  438. },
  439. checktime3(e) {
  440. // var items = this.timeList,
  441. let values = e.detail.value;
  442. // let quantum = [];
  443. console.log(values);
  444. },
  445. // 选择可提供时间
  446. timeOnChange: function(item1) {
  447. this.quantum = item1.detail.value.join(',');
  448. console.log('可选择时间', this.quantum)
  449. },
  450. //选择有兴趣参与的工作
  451. checkjob(item) {
  452. this.taste = item.detail.value.join(',');
  453. console.log('选择工作:', this.taste)
  454. this.otherjob = item.detail.value
  455. },
  456. // 选择专长checkspeciality
  457. checkspeciality(item) {
  458. this.speciali = item.detail.value.join(',');
  459. console.log('选择专长', this.speciali)
  460. this.otherspe = item.detail.value
  461. },
  462. }
  463. }
  464. </script>
  465. <style lang="scss">
  466. page {
  467. background-color: #FFFFFF
  468. }
  469. .content {
  470. // padding-top: 64rpx;
  471. // background-color: #f3afad;
  472. .top {
  473. width: 100%;
  474. height: 368rpx;
  475. image {
  476. width: 100%;
  477. height: 368rpx;
  478. }
  479. }
  480. .freeSign {
  481. padding: 24rpx 0;
  482. display: flex;
  483. align-items: center;
  484. justify-content: center;
  485. background-color: #FFFFFF;
  486. border-bottom: 1rpx solid #F2F2F2;
  487. }
  488. .signInfo {
  489. padding: 24rpx 0;
  490. display: flex;
  491. font-size: 28rpx;
  492. align-items: center;
  493. justify-content: center;
  494. background-color: #FFFFFF;
  495. border-bottom: 1rpx solid #F2F2F2;
  496. }
  497. .statement {
  498. // margin: 32rpx;
  499. background-color: #FFFFFF;
  500. // padding: 32rpx 23rpx;
  501. border-radius: 12rpx;
  502. .title {
  503. height: 84rpx;
  504. display: flex;
  505. justify-content: center;
  506. align-items: center;
  507. font-size: 32rpx;
  508. border-bottom: 2rpx dotted #f3f3f3;
  509. }
  510. .main {
  511. padding: 32rpx;
  512. text-indent: 48rpx;
  513. color: #666;
  514. font-weight: 400;
  515. }
  516. }
  517. .buttom {
  518. width: 500rpx;
  519. height: 100rpx;
  520. background: linear-gradient(0deg, #C90F1B, #F14D33);
  521. border-radius: 20rpx;
  522. margin: 20rpx auto;
  523. font-size: 36rpx;
  524. font-weight: 400;
  525. color: #FFFFFF;
  526. line-height: 100rpx;
  527. text-align: center;
  528. &.action {
  529. background: #999999;
  530. }
  531. }
  532. .box {
  533. // margin-top: 44rpx;
  534. // width: 690rpx;
  535. // margin: 32rpx auto 0;
  536. background-color: #FFFFFF;
  537. border-radius: 10rpx;
  538. padding: 28rpx 20rpx 84rpx 20rpx;
  539. position: relative;
  540. // .red-box {
  541. // width: 405rpx;
  542. // line-height: 66rpx;
  543. // text-align: center;
  544. // background: linear-gradient(0deg, #C90F1B, #F14D33);
  545. // border-radius: 10rpx;
  546. // font-size: 30rpx;
  547. // font-weight: 500;
  548. // color: #FFFFFF;
  549. // // position: relative;
  550. // position: absolute;
  551. // top: -36rpx;
  552. // left: 50%;
  553. // transform: translateX(-50%);
  554. // z-index: 1;
  555. // }
  556. .box-check {
  557. font-size: 28rpx;
  558. font-weight: 500;
  559. color: #666666;
  560. line-height: 100rpx;
  561. }
  562. .imp {
  563. color: red;
  564. margin-left: 5rpx;
  565. }
  566. .check-box {
  567. margin: 44rpx 0rpx;
  568. padding: 25rpx 25rpx;
  569. border: 3rpx solid #e9b2af;
  570. width: 100%;
  571. display: flex;
  572. flex-direction: column;
  573. border-radius: 25rpx;
  574. color: #E63931;
  575. .info {
  576. margin-bottom: 32rpx;
  577. text-align: center;
  578. }
  579. .chooseTim {
  580. text-align: center;
  581. font-size: 42rpx;
  582. }
  583. .choose-job {
  584. color: #666666;
  585. // height: 45rpx; 爱心捐赠
  586. .goods_check {
  587. display: flex;
  588. flex-direction: column;
  589. .uni-label-pointer {
  590. // width: 50%;
  591. // display: flex;
  592. }
  593. }
  594. .other {
  595. width: 100%;
  596. border-bottom: 2rpx solid #f3f3f3;
  597. }
  598. }
  599. .box-cent {
  600. font-size: 28rpx;
  601. font-weight: 500;
  602. color: #666666;
  603. display: flex;
  604. .cent-left {
  605. margin-right: 28rpx;
  606. .left-txt {
  607. line-height: 100rpx;
  608. }
  609. }
  610. .cent-right {
  611. flex: 1;
  612. display: flex;
  613. justify-content: space-around;
  614. .right-check {
  615. line-height: 100rpx;
  616. }
  617. }
  618. }
  619. }
  620. .box-1 {
  621. display: flex;
  622. flex-direction: column;
  623. align-items: center;
  624. width: 100%;
  625. margin-top: 34rpx;
  626. // height: 133rpx;
  627. .box-left {
  628. padding-left: 2rpx;
  629. width: 100%;
  630. text-align: left;
  631. color: black;
  632. font-size: 30rpx;
  633. font-weight: 500;
  634. }
  635. input {
  636. height: 66rpx;
  637. line-height: 66rpx;
  638. margin-top: 32rpx;
  639. // height: 88rpx;
  640. }
  641. .list-input {
  642. padding: 16rpx 24rpx;
  643. // margin: 12rpx 0 ;
  644. line-height: 80rpx;
  645. display: flex;
  646. align-items: center;
  647. width: 100%;
  648. font-size: 28rpx;
  649. flex: 1;
  650. color: #BEBEBE;
  651. border: 4rpx solid #DCDFE6;
  652. border-radius: 12rpx;
  653. text-align: left;
  654. padding-right: 24rpx;
  655. .input-placeholder {
  656. height: 70rpx;
  657. color: #BEBEBE;
  658. }
  659. }
  660. .box-right {
  661. display: flex;
  662. align-items: center;
  663. padding-left: 24rpx;
  664. height: 66rpx;
  665. line-height: 66rpx;
  666. color: #BEBEBE;
  667. border: 4rpx solid #DCDFE6;
  668. border-radius: 12rpx;
  669. margin: 32rpx 36rpx 0 36rpx;
  670. width: 96%;
  671. font-size: 28rpx;
  672. color: #BEBEBE;
  673. text-align: left;
  674. // line-height: 1;
  675. }
  676. }
  677. .upload-box {
  678. width: 100%;
  679. height: 247rpx;
  680. background: #FFFFFF;
  681. // border: 1px solid #E63931;
  682. border-radius: 27rpx;
  683. display: flex;
  684. flex-direction: column;
  685. padding: 30rpx 40rpx 30rpx 0;
  686. margin: 0 auto 30rpx;
  687. .upload-left {
  688. font-weight: 400;
  689. color: #E63931;
  690. }
  691. .upload-right {
  692. flex: 1;
  693. display: flex;
  694. align-items: center;
  695. justify-content: center;
  696. .upload-img {
  697. width: 103rpx;
  698. height: 103rpx;
  699. margin-top: 24rpx;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. </style>