applicationForm.vue 27 KB

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