applicationForm.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="title">登记选择</view>
  5. <view class="info-box">我自愿登记成为遗体器官捐献志愿者,自愿无偿捐献:</view>
  6. <view class="uni-list">
  7. <radio-group class="radio-box" @change="radioChange">
  8. <label v-for="(item, index) in items" :key="item.name">
  9. <label class="radio">
  10. {{ item.name }}
  11. <radio :checked="index === current" color="#E62129" style="transform:scale(0.5)"
  12. :value="item.name" />
  13. <text></text>
  14. </label>
  15. </label>
  16. </radio-group>
  17. </view>
  18. </view>
  19. <view class="box">
  20. <view class="box-1">
  21. <view class="box-left">姓名</view>
  22. <input type="text" placeholder="请填写你的名字" placeholder-class="placeholder" value="" class="list-input"
  23. v-model="name" />
  24. </view>
  25. <view class="box-1">
  26. <view class="box-left">出生年月</view>
  27. <picker mode="date" :value="birthday" :start="startDate" :end="endDate" @change="bindDateChange"
  28. class="box-right">
  29. <view>{{ birthday }}</view>
  30. </picker>
  31. </view>
  32. <view class="box-1">
  33. <view class="box-left">性别</view>
  34. <picker @change="bindPickerSex" :value="index" :range="array" class="box-right">
  35. <text>{{ sex }}</text>
  36. </picker>
  37. </view>
  38. <view class="box-1">
  39. <view class="box-left">学历</view>
  40. <picker @change="bindPickerEdu" :value="index" :range="chooseEdu" class="box-right">
  41. <text>{{ education }}</text>
  42. </picker>
  43. </view>
  44. <view class="box-1">
  45. <view class="box-left">身份证号</view>
  46. <input type="text" placeholder="请填写你的身份证号" placeholder-class="placeholder" value="" class="list-input"
  47. v-model="card" />
  48. </view>
  49. <view class="box-1">
  50. <view class="box-left">移动电话</view>
  51. <input type="text" placeholder="请填写你的联系电话" placeholder-class="placeholder" value="" class="list-input"
  52. v-model="phone" />
  53. </view>
  54. <view class="box-1">
  55. <view class="box-left">职业/职务</view>
  56. <input type="text" value="" placeholder="请填写你的职业/职务" placeholder-class="placeholder" class="list-input"
  57. v-model="occupation" />
  58. </view>
  59. </view>
  60. <view class="top">
  61. <view class="title">个人声明</view>
  62. <view class="info-box">
  63. 遗体器官捐献是服务医疗事业,造福人类的高尚行为,是“人道、博爱、奉献”精神的崇高体现,我已了解遗体器官捐献的基本常识和有关政策法规。<text
  64. style="font-size: 24rpx;font-family: PingFang SC;font-weight: 500;color: #666666;"
  65. v-if="type != '人体器官'">我自愿登记成为遗体器官捐献志愿者,自愿无偿捐献,请执行人和所有亲属尊重我的决定。</text></view>
  66. <view class="info-box" style="padding-top: 0;" v-if="type == '人体器官' && ready">我自愿登记成为遗体器官捐献志愿者,自愿无偿捐献:
  67. </view>
  68. <view class="uni-list" style="display: block;">
  69. <checkbox-group v-if="type == '人体器官' && ready" @change="checkAllClick" style="padding-left: 50rpx;">
  70. <label class="checkbox">
  71. <checkbox :checked="checkAll.type" color="#E62129"
  72. style="transform:scale(0.6);margin: 0;padding: 0;" :value="checkAll.name" />
  73. {{checkAll.name}}
  74. </label>
  75. </checkbox-group>
  76. <view style="display: flex;">
  77. <view class="" v-if="type == '人体器官'" style="width: 50rpx;">
  78. 或:
  79. </view>
  80. <checkbox-group v-if="type == '人体器官'" style="display: inline-block;width: 600rpx;"
  81. @change="checkboxChange">
  82. <label class="checkbox" v-for="item in apparatus" :key="item.name">
  83. <checkbox :checked="item.type" color="#E62129"
  84. style="transform:scale(0.6);margin: 0;padding: 0;" :value="item.name" />{{ item.name }}
  85. </label>
  86. </checkbox-group>
  87. </view>
  88. <view class="font" v-if="type == '人体器官'">请执行人和所有亲属尊重我的决定。</view>
  89. </view>
  90. </view>
  91. <view class="top">
  92. <view class="title">人体器官捐献执行人信息</view>
  93. <view class="info-box">我指定该亲属为我的器官捐献执行人,全权负责本人的器官捐献事宜,我保证填写的内容信息真实,如发生变更及时告知登记机构。</view>
  94. <view class="uni-list" style="display: block;">
  95. <view class="box-1" style="margin-top: 0rpx;">
  96. <view class="box-left">捐献执行人</view>
  97. <input type="text" value="" placeholder-class="placeholder" placeholder="请填写执行人姓名"
  98. class="list-input" v-model="executor" />
  99. </view>
  100. <view class="box-1" style="margin-top: 20rpx;">
  101. <view class="box-left">亲属关系</view>
  102. <input type="text" value="" placeholder-class="placeholder" placeholder="请填写与本人的关系"
  103. class="list-input" v-model="relation" />
  104. </view>
  105. <view class="box-1" style="margin-top: 20rpx;">
  106. <view class="box-left">身份证号</view>
  107. <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属身份证号"
  108. class="list-input" v-model="sfz" />
  109. </view>
  110. <view class="box-1" style="margin-top: 20rpx;">
  111. <view class="box-left">联系电话</view>
  112. <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属联系电话"
  113. class="list-input" v-model="n_phone" />
  114. </view>
  115. </view>
  116. </view>
  117. <view class="buttomBox">
  118. <view class="buttom" :class="{ action: loding }" @click="!loding ? join() : ''">提交申请</view>
  119. </view>
  120. <uni-popup ref="tishi" type="center" :maskClick="false">
  121. <view class="ts-wrap">
  122. <view class="ts-tit">
  123. 捐献自愿书
  124. </view>
  125. <scroll-view scroll-y="true" class="ts-content" @scrolltolower="isbtm = true">
  126. <view class="xq">
  127. 遗体(角膜)捐献是造福人类的善举,是“人道、博爱、奉献”精神的崇高体现。我自愿身后无偿捐献自己的遗体(角膜),为祖国医学教育、医学科研和医学临床事业做出自己最后的贡献。
  128. </view>
  129. <view class="xq">本人已经与执行人(父母、配偶、成年子女或其它监护人)充分沟通,他们全部同意尊重我的意愿,并支持我办理捐献手续。</view>
  130. <view class="xq">本人填报的信息和承诺,都是我认真思考后本人意志的完整表达,所以信息真实。</view>
  131. </scroll-view>
  132. <view class="ts-btn" @click="agreen()" :style="{'background': isbtm?'#FF4C4C':'#eee','color':isbtm?'#fff':'#999'}">
  133. 我已阅读并同意
  134. </view>
  135. </view>
  136. </uni-popup>
  137. </view>
  138. </template>
  139. <script>
  140. import {
  141. joinSecc,
  142. getList,
  143. donate_ify
  144. } from '@/api/index.js';
  145. // import {
  146. // getList
  147. // } from '@/api/index.js';
  148. import {
  149. upload
  150. } from '@/api/ask.js';
  151. export default {
  152. data() {
  153. const currentDate = this.getDate({
  154. format: true
  155. });
  156. return {
  157. isRead: false,//是否同意
  158. isbtm: true,//是否滑动到底部
  159. ready: true,
  160. all: false,
  161. isall: false,
  162. type: '',
  163. loding: false, //是否提交中
  164. array: ['男', '女'],
  165. chooseEdu: ['小学以下', '小学', '初中', '高中/中专', '大专/高职', '本科', '研究生', '硕士', '博士', '博士后'],
  166. chooseVol: ['是', '否'],
  167. chooseExp: ['是', '否'],
  168. realyItems: [], //捐赠对照表
  169. items: [{
  170. name: '人体器官'
  171. },
  172. {
  173. name: '眼角膜'
  174. },
  175. {
  176. name: '遗体捐献'
  177. }
  178. ],
  179. checkAll: {
  180. name: '全部器官',
  181. type: false
  182. },
  183. apparatus: [{
  184. name: '肾脏',
  185. type: false
  186. },
  187. {
  188. name: '肝脏',
  189. type: false
  190. },
  191. {
  192. name: '心脏',
  193. type: false
  194. },
  195. {
  196. name: '肺脏',
  197. type: false
  198. },
  199. {
  200. name: '胰腺',
  201. type: false
  202. },
  203. {
  204. name: '小肠',
  205. type: false
  206. },
  207. {
  208. name: '其他',
  209. type: false
  210. }
  211. ],
  212. remark: '',
  213. current: '',
  214. index: 0,
  215. mz: '',
  216. cardimg: '', //证件照
  217. checklist: [],
  218. name: '',
  219. sex: '请选择你的性别',
  220. birthday: '请选择你的出生年月',
  221. card: '',
  222. occupation: '',
  223. education: '请选择你的文化程度',
  224. phone: '',
  225. executor: '', //执行人名字
  226. relation: '', //执行人关系
  227. n_phone: '', //执行人电话
  228. sfz: '', //执行人身份证号
  229. Getchecked: false,
  230. Getcheckeds: false,
  231. address: '',
  232. mail: '',
  233. weixin: '',
  234. major: '',
  235. work: '',
  236. other: '',
  237. friendOnename: '',
  238. friendOnerelation: '',
  239. friendOnephone: '',
  240. friendOneaddress: '',
  241. friendOneweixin: '',
  242. friendTwoname: '',
  243. friendTworelation: '',
  244. friendTwophone: '',
  245. friendTwoaddress: '',
  246. friendTwoweixin: '',
  247. educationid: '', //学历id
  248. };
  249. },
  250. computed: {
  251. startDate() {
  252. return this.getDate('start');
  253. },
  254. endDate() {
  255. return this.getDate('end');
  256. }
  257. },
  258. onLoad() {
  259. this.getDonateList()
  260. },
  261. methods: {
  262. // 同意提示
  263. agreen() {
  264. if(this.isbtm) {
  265. this.isRead = true
  266. this.$refs.tishi.close()
  267. }
  268. },
  269. // 获取捐赠对照列表
  270. getDonateList() {
  271. donate_ify().then(e => {
  272. this.realyItems = e.data;
  273. let arr = e.data.filter(item => {
  274. item.type = false
  275. return (item.name != '人体器官') && (item.name != '眼角膜') && (item.name != '遗体') && (
  276. item.name != '全部器官')
  277. })
  278. this.apparatus = arr.reverse();
  279. console.log(this.realyItems, '获取捐赠对照列表')
  280. this.$refs.tishi.open()
  281. });
  282. },
  283. async join() {
  284. let obj = this;
  285. let arr = []
  286. console.log(obj.remark)
  287. if (obj.type == '') {
  288. obj.$api.msg('请选择你要捐献的器官');
  289. return;
  290. }
  291. if (obj.name == '') {
  292. obj.$api.msg('请输入您的姓名');
  293. return;
  294. }
  295. if (obj.birth == '请选择你的出生年月') {
  296. obj.$api.msg('请选择出生年月');
  297. return;
  298. }
  299. if (obj.sex == '请选择你的性别') {
  300. obj.$api.msg('请输入您的性别');
  301. return;
  302. }
  303. if (obj.education == '请选择你的文化程度') {
  304. obj.$api.msg('请选择您的文化程度');
  305. return;
  306. }
  307. if (obj.card == '') {
  308. obj.$api.msg('请填写您的身份证号');
  309. return;
  310. }
  311. let reg1 =
  312. /^(^[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])$)$/;
  313. if (!reg1.test(obj.card)) {
  314. obj.$api.msg('请填写正确的身份证号');
  315. return;
  316. }
  317. if (obj.phone == '') {
  318. obj.$api.msg('请填写您的移动电话');
  319. return;
  320. }
  321. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  322. if (!reg.test(obj.phone)) {
  323. obj.$api.msg('请填写正确的移动电话');
  324. return;
  325. }
  326. if (obj.specialty == '') {
  327. obj.$api.msg('请填写您的职业/职务');
  328. return;
  329. }
  330. console.log(obj.remark, '1111');
  331. if (obj.type == '眼角膜') {
  332. obj.remark = '眼角膜'
  333. }
  334. if (obj.remark == '') {
  335. obj.$api.msg('请选择要捐献的器官');
  336. return;
  337. }
  338. if (obj.executor == '') {
  339. obj.$api.msg('请填写执行人姓名');
  340. return;
  341. }
  342. if (obj.relation == '') {
  343. obj.$api.msg('请填写亲属身份');
  344. return;
  345. }
  346. if (obj.sfz == '') {
  347. obj.$api.msg('请填写亲属身份证号');
  348. return;
  349. }
  350. if (obj.n_phone == '') {
  351. obj.$api.msg('请填写亲属联系电话');
  352. return;
  353. }
  354. obj.loding = true;
  355. obj.realyItems.forEach(item => {
  356. console.log(item.name, obj.remark)
  357. if (obj.remark.indexOf(item.name) != -1) {
  358. arr.push(item.id + '')
  359. }
  360. })
  361. console.log(arr.join(','), 'ddddddddddd')
  362. joinSecc({
  363. full_name: obj.name, //姓名
  364. sex: obj.sex == '男' ? 0 : 1, //性别0男1女
  365. birthday: obj.birthday, //生日
  366. id_card: obj.card, //身份证号
  367. vocation: obj.occupation, //职业
  368. education: obj.educationid, //学历
  369. category_ids: arr.join(','), //捐献类型
  370. mobile: obj.phone, //移动电话
  371. executor: obj.executor, //捐献执行人
  372. executor_id_card: obj.sfz, //执行人身份证号
  373. executor_mobile: obj.n_phone, //执行人移动电话
  374. executor_relation: obj.relation //执行人关系
  375. })
  376. .then(e => {
  377. console.log(e, '2322222222222222222222222222222222222222');
  378. obj.name = '';
  379. obj.sex = '请选择你的性别';
  380. obj.education = '请选择你的文化程度';
  381. obj.birth = '请选择你的出生年月';
  382. obj.executor = '';
  383. obj.sfz = '';
  384. obj.n_phone = '';
  385. obj.relation = '';
  386. uni.navigateTo({
  387. url: '../joinSuc/joinNow'
  388. });
  389. })
  390. .catch(function(e) {
  391. console.log('出错了');
  392. console.log(e);
  393. obj.loding = false;
  394. });
  395. // obj.body(1)
  396. },
  397. //器官捐献
  398. body(item) {
  399. const obj = this;
  400. joinSecc({
  401. name: obj.name,
  402. sex: obj.sex,
  403. education: obj.education,
  404. birthday: obj.birthday,
  405. card: obj.card,
  406. occupation: obj.occupation,
  407. remark: obj.remark,
  408. phone: obj.phone,
  409. executor: obj.executor,
  410. relation: obj.relation,
  411. sfz: obj.sfz,
  412. n_phone: obj.n_phone,
  413. // other: obj.other //其他器官
  414. })
  415. .then(e => {
  416. console.log(e, "2322222222222222222222222222222222222222")
  417. if (e.status == 400) {
  418. console.log(e.msg);
  419. this.$api.msg("你已报名成功,不可重复报名")
  420. } else {
  421. // obj.name = '';
  422. obj.sex = '请选择你的性别';
  423. obj.education = '请选择你的文化程度';
  424. obj.birth = '请选择你的出生年月';
  425. (obj.mz = ''), (obj.phone = '');
  426. obj.address = '';
  427. obj.work = '';
  428. obj.specialty = '';
  429. (obj.cardimg = ''), (obj.card = '');
  430. obj.mail = '';
  431. (obj.weixin = ''), (obj.major = '');
  432. let date = new Date()
  433. let year = date.getFullYear()
  434. let month = date.getMonth() >= 9 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1)
  435. let day = date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()
  436. if (item == 1) {
  437. uni.navigateTo({
  438. url: '../joinSuc/certificate?name' + obj.name + '&time=' + year + '年' +
  439. month + '月' + day + '日'
  440. });
  441. }
  442. }
  443. })
  444. .catch(function(e) {
  445. console.log('出错了');
  446. console.log(e);
  447. });
  448. },
  449. //造血干细胞捐献
  450. bloud() {
  451. const obj = this;
  452. getList({
  453. name: obj.name,
  454. sex: obj.sex,
  455. education: obj.education, //文化程度
  456. birthday: obj.birthday,
  457. card: obj.card, //身份证号
  458. cardimg: obj.cardimg, //照片
  459. occupation: obj.occupation, //职业或职务
  460. phone: obj.phone,
  461. address: obj.address, //地址
  462. mail: obj.mail, // 邮箱
  463. weixin: obj.weixin, //微信
  464. major: obj.major, //专业或专长
  465. work: obj.work, // 工作单位
  466. friendOnename: obj.friendOnename, //亲友一的姓名
  467. friendOnerelation: obj.friendOnerelation, //亲友一与全赠者的关系
  468. friendOnephone: obj.friendOnephone, //亲友一的手机号
  469. friendOneweixin: obj.friendOneweixin, //亲友一的微信号
  470. friendOneaddress: obj.friendOneaddress, //亲友一的地址
  471. friendTwoname: obj.friendTwoname, //亲友二的姓名
  472. friendTworelation: obj.friendTworelation, //亲友二与全赠者的关系
  473. friendTwophone: obj.friendTwophone, //亲友二的手机号
  474. friendTwoweixin: obj.friendTwoweixin, //亲友二的微信号
  475. friendTwoaddress: obj.friendTwoaddress //亲友二的地址
  476. })
  477. .then(e => {
  478. console.log(e, "22222222222222222222222")
  479. if (e.status == 400) {
  480. console.log(e.msg);
  481. this.$api.msg("你已报名成功,不可重复报名")
  482. } else {
  483. // obj.name = '';
  484. obj.sex = '请选择你的性别';
  485. obj.education = '请选择你的文化程度';
  486. obj.birth = '请选择你的出生年月';
  487. (obj.mz = ''), (obj.phone = '');
  488. obj.address = '';
  489. obj.work = '';
  490. obj.specialty = '';
  491. (obj.cardimg = ''), (obj.card = '');
  492. obj.mail = '';
  493. (obj.weixin = ''), (obj.major = '');
  494. let date = new Date()
  495. let year = date.getFullYear()
  496. let month = date.getMonth() >= 9 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1)
  497. let day = date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()
  498. uni.navigateTo({
  499. url: '../joinSuc/certificate?name' + obj.name + '&time=' + year + '年' + month +
  500. '月' + day + '日'
  501. });
  502. }
  503. })
  504. .catch(function(e) {
  505. console.log('出错了');
  506. console.log(e);
  507. });
  508. },
  509. imgsub() {
  510. console.log('imgsub');
  511. upload({
  512. filename: ''
  513. }).then(data => {
  514. this.cardimg = data[0].url;
  515. });
  516. },
  517. // 选择性别
  518. bindPickerSex: function(e) {
  519. this.sex = this.array[e.target.value];
  520. this.index = e.target.value + 1;
  521. },
  522. // 选择教育程度
  523. bindPickerEdu: function(e) {
  524. this.education = this.chooseEdu[e.target.value];
  525. this.educationid = e.target.value;
  526. console.log(this.educationid);
  527. },
  528. // 选择日期
  529. bindDateChange: function(e) {
  530. console.log(e);
  531. this.birthday = e.target.value;
  532. console.log(this.birthday);
  533. },
  534. //选择填写日期
  535. fillingDateChange: function(e) {
  536. this.add_time = e.target.value;
  537. },
  538. // 是否参加志愿活动
  539. bindPickerVol: function(e) {
  540. this.is_vol = this.chooseVol[e.target.value];
  541. this.index = e.target.value + 1;
  542. },
  543. // 有无服务经验
  544. bindPickerExp: function(e) {
  545. console.log('有无服务经验', e.target.value);
  546. this.is_experience = this.chooseExp[e.target.value];
  547. this.index = e.target.value + 1;
  548. },
  549. // 选择捐献
  550. radioChange: function(evt) {
  551. console.log('选择捐献', evt);
  552. for (let i = 0; i < this.items.length; i++) {
  553. if (this.items[i].name === evt.detail.value) {
  554. this.type = evt.detail.value;
  555. console.log('this.type', this.type);
  556. this.current = i;
  557. console.log('this.current', this.current);
  558. break;
  559. }
  560. }
  561. if (this.type == '遗体捐献') {
  562. this.remark = '遗体捐献';
  563. this.all = true;
  564. }
  565. },
  566. checkboxChangeAll(e) {
  567. const obj = this;
  568. for (let i = 0; i < obj.apparatus.length; i++) {
  569. obj.apparatus[i].type = false;
  570. }
  571. if (obj.remark != ' ') {
  572. obj.remark = '';
  573. }
  574. console.log(e, "`11111")
  575. obj.remark = e.detail.value.join(',');
  576. console.log(obj.remark);
  577. obj.all = true;
  578. },
  579. //器官捐献时选择要捐献的器官
  580. checkboxChange(e) {
  581. const obj = this;
  582. obj.all = false;
  583. this.checkAll.type = false
  584. this.reload()
  585. if (obj.remark != '') {
  586. if (obj.remark.indexOf('all') != -1) {
  587. obj.remark = '';
  588. }
  589. }
  590. obj.remark = e.detail.value.join(',');
  591. for (let i = 0; i < obj.apparatus.length; i++) {
  592. if (obj.remark.indexOf(obj.apparatus[i].name) != -1) {
  593. obj.apparatus[i].type = true;
  594. }
  595. }
  596. console.log(obj.remark);
  597. },
  598. Getcheckbox() {
  599. let obj = this;
  600. obj.Getchecked = !obj.Getchecked;
  601. },
  602. Getcheckboxs() {
  603. let obj = this;
  604. obj.Getcheckeds = !obj.Getcheckeds;
  605. },
  606. getDate(type) {
  607. const date = new Date();
  608. let year = date.getFullYear();
  609. let month = date.getMonth() + 1;
  610. let day = date.getDate();
  611. if (type === 'start') {
  612. year = year - 60;
  613. } else if (type === 'end') {
  614. year = year + 2;
  615. }
  616. month = month > 9 ? month : '0' + month;
  617. day = day > 9 ? day : '0' + day;
  618. return `${year}-${month}-${day}`;
  619. },
  620. // 选择可提供时间
  621. // this.quantum = item.detail.value.join(',');
  622. checktime1(e) {
  623. // var items = this.timeList,
  624. // let quantum = [];
  625. this.quantum = e.detail.value.join(',');
  626. console.log(this.quantum);
  627. },
  628. checktime2(e) {
  629. // var items = this.timeList,
  630. let values = e.detail.value;
  631. // let quantum = [];
  632. console.log(values);
  633. },
  634. checktime3(e) {
  635. // var items = this.timeList,
  636. let values = e.detail.value;
  637. // let quantum = [];
  638. console.log(values);
  639. },
  640. //选择有兴趣参与的工作
  641. checkjob(item) {
  642. this.taste = item.detail.value.join(',');
  643. },
  644. // 选择专长checkspeciality
  645. checkspeciality(item) {
  646. this.speciali = item.detail.value.join(',');
  647. },
  648. reload() {
  649. this.ready = false
  650. this.$nextTick(function() {
  651. this.ready = true
  652. })
  653. },
  654. checkAllClick(e) {
  655. let obj = this
  656. console.log(e.detail.value[0])
  657. if (e.detail.value[0]) {
  658. this.remark = e.detail.value[0]
  659. for (let i = 0; i < obj.apparatus.length; i++) {
  660. obj.apparatus[i].type = false;
  661. }
  662. } else {
  663. this.remark = ''
  664. }
  665. console.log(this.remark)
  666. }
  667. }
  668. };
  669. </script>
  670. <style lang="scss">
  671. page {
  672. background: #f2f2f2;
  673. }
  674. .content {
  675. background: #f2f2f2;
  676. .top {
  677. margin-top: 16rpx;
  678. background: #ffffff;
  679. position: relative;
  680. .title {
  681. height: 106rpx;
  682. text-align: center;
  683. line-height: 106rpx;
  684. border-bottom: 2rpx #acacac dashed;
  685. font-size: 34rpx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #101010;
  689. }
  690. .info-box {
  691. font-size: 24rpx;
  692. font-family: PingFang SC;
  693. font-weight: 500;
  694. color: #666666;
  695. text-indent: 2em;
  696. padding: 37rpx 60rpx 0rpx 36rpx;
  697. text {
  698. color: #101010;
  699. font-family: PingFang-SC-Medium;
  700. font-weight: bold;
  701. }
  702. // border: 3rpx solid #009100;
  703. }
  704. .uni-list {
  705. padding: 26rpx 34rpx 20rpx 35rpx;
  706. // .radio:first-child {
  707. // margin: -6rpx;
  708. // }
  709. .radio {
  710. margin-left: 50rpx;
  711. flex: 1;
  712. align-items: center;
  713. font-size: 24rpx;
  714. font-family: PingFang SC;
  715. font-weight: 500;
  716. color: #191919;
  717. }
  718. .checkbox {
  719. display: inline-block;
  720. font-size: 24rpx;
  721. font-family: PingFang SC;
  722. font-weight: 500;
  723. color: #191919;
  724. }
  725. .box-2 {
  726. display: flex;
  727. justify-content: space-between;
  728. align-items: center;
  729. width: 100%;
  730. margin-top: 8rpx;
  731. // height: 133rpx;
  732. .box-left {
  733. padding-left: 2rpx;
  734. text-align: left;
  735. width: 62rpx;
  736. font-size: 24rpx;
  737. font-family: PingFang SC;
  738. font-weight: 500;
  739. color: #191919;
  740. }
  741. input {
  742. height: 66rpx;
  743. line-height: 66rpx;
  744. // height: 88rpx;
  745. }
  746. .list-input {
  747. padding-left: 22rpx;
  748. // margin: 12rpx 0 ;
  749. font-size: 28rpx;
  750. display: flex;
  751. justify-content: center;
  752. // line-height: 66rpx;
  753. display: flex;
  754. align-items: center;
  755. flex: 1;
  756. color: #000000;
  757. border: 1px solid #d2d2d2;
  758. text-align: left;
  759. .input-placeholder {
  760. height: 70rpx;
  761. color: #959595;
  762. }
  763. }
  764. .box-right {
  765. display: flex;
  766. padding-left: 22rpx;
  767. height: 66rpx;
  768. line-height: 66rpx;
  769. border: 1px solid #d2d2d2;
  770. // margin: 32rpx 36rpx 0 36rpx;
  771. width: 500rpx;
  772. font-size: 28rpx;
  773. color: #959595;
  774. text-align: left !important;
  775. // line-height: 1;
  776. }
  777. }
  778. .font {
  779. margin-top: 22rpx;
  780. font-size: 24rpx;
  781. font-family: PingFang SC;
  782. font-weight: 500;
  783. color: #666666;
  784. }
  785. }
  786. .agree {
  787. display: flex;
  788. align-items: center;
  789. padding: 37rpx 60rpx 40rpx 36rpx;
  790. font-size: 24rpx;
  791. font-family: PingFang SC;
  792. font-weight: 500;
  793. color: #191919;
  794. }
  795. }
  796. .buttomBox {
  797. height: 100rpx;
  798. // padding-bottom: 40rpx;
  799. }
  800. .buttom {
  801. width: 100%;
  802. height: 100rpx;
  803. background: #f3392c;
  804. font-size: 36rpx;
  805. font-weight: 400;
  806. color: #ffffff;
  807. line-height: 100rpx;
  808. text-align: center;
  809. &.action {
  810. background: #999999;
  811. }
  812. }
  813. .box {
  814. margin-top: 16rpx;
  815. width: 100%;
  816. background-color: #ffffff;
  817. border-radius: 10rpx;
  818. padding: 28rpx 20rpx 32rpx 20rpx;
  819. position: relative;
  820. .red-box {
  821. width: 405rpx;
  822. line-height: 66rpx;
  823. text-align: center;
  824. background: linear-gradient(0deg, #c90f1b, #f14d33);
  825. border-radius: 10rpx;
  826. font-size: 30rpx;
  827. font-weight: 500;
  828. color: #ffffff;
  829. // position: relative;
  830. position: absolute;
  831. top: -36rpx;
  832. left: 50%;
  833. transform: translateX(-50%);
  834. z-index: 1;
  835. }
  836. .box-check {
  837. font-size: 28rpx;
  838. font-weight: 500;
  839. color: #666666;
  840. line-height: 100rpx;
  841. }
  842. .upload-box {
  843. width: 100%;
  844. height: 247rpx;
  845. background: #ffffff;
  846. // border: 1px solid #E63931;
  847. border-radius: 27rpx;
  848. display: flex;
  849. flex-direction: column;
  850. padding: 30rpx 40rpx 30rpx 0;
  851. margin: 42rpx auto 30rpx;
  852. .upload-left {
  853. font-weight: 400;
  854. color: #000000;
  855. }
  856. .upload-right {
  857. flex: 1;
  858. display: flex;
  859. align-items: center;
  860. justify-content: center;
  861. .upload-img {
  862. width: 150rpx;
  863. height: 150rpx;
  864. margin-top: 24rpx;
  865. }
  866. }
  867. }
  868. }
  869. .box-1 {
  870. display: flex;
  871. justify-content: space-between;
  872. align-items: center;
  873. width: 100%;
  874. margin-top: 42rpx;
  875. // height: 133rpx;
  876. .box-left {
  877. padding-left: 2rpx;
  878. width: 184rpx;
  879. text-align: left;
  880. font-size: 28rpx;
  881. font-family: PingFang SC;
  882. font-weight: 500;
  883. color: #191919;
  884. }
  885. input {
  886. height: 66rpx;
  887. line-height: 66rpx;
  888. // height: 88rpx;
  889. }
  890. .list-input {
  891. padding-left: 22rpx;
  892. // margin: 12rpx 0 ;
  893. font-size: 28rpx;
  894. // line-height: 66rpx;
  895. display: flex;
  896. align-items: center;
  897. flex: 1;
  898. color: #000000;
  899. width: 500rpx;
  900. border: 1px solid #d2d2d2;
  901. text-align: left;
  902. .input-placeholder {
  903. height: 70rpx;
  904. color: #959595;
  905. }
  906. }
  907. .box-right {
  908. display: flex;
  909. padding-left: 22rpx;
  910. height: 66rpx;
  911. line-height: 66rpx;
  912. border: 1px solid #d2d2d2;
  913. // margin: 32rpx 36rpx 0 36rpx;
  914. width: 500rpx;
  915. font-size: 28rpx;
  916. color: #959595;
  917. text-align: left !important;
  918. // line-height: 1;
  919. }
  920. }
  921. }
  922. .placeholder {
  923. line-height: 66rpx;
  924. }
  925. .ts-wrap {
  926. width: 673rpx;
  927. height: 800rpx;
  928. background: #FFFFFF;
  929. border-radius: 20rpx;
  930. position: relative;
  931. .ts-tit {
  932. height: 103rpx;
  933. padding-top: 40rpx;
  934. text-align: center;
  935. font-size: 36rpx;
  936. font-weight: bold;
  937. color: #000000;
  938. width: 588rpx;
  939. margin: auto;
  940. border-bottom: 1px solid #a1a1a1;
  941. }
  942. .ts-content {
  943. height: 400rpx;
  944. margin: 30rpx 0;
  945. text-align: justify;
  946. font-size: 28rpx;
  947. font-weight: 500;
  948. color: #666666;
  949. .xq {
  950. width: 600rpx;
  951. margin: auto;
  952. text-indent:2em;
  953. }
  954. }
  955. .ts-btn {
  956. width: 673rpx;
  957. line-height: 90rpx;
  958. font-size: 32rpx;
  959. font-weight: 500;
  960. color: #FFFFFF;
  961. text-align: center;
  962. background: #FF4C4C;
  963. border-radius: 0px 0px 20rpx 20rpx;
  964. position: absolute;
  965. bottom: 0;
  966. }
  967. }
  968. </style>