applicationForm.vue 27 KB

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