| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000 |
- <template>
- <view class="content">
- <view class="top">
- <view class="title">登记选择</view>
- <view class="info-box">我自愿登记成为人体器官、造血干细胞、遗体捐献志愿者,自愿无偿捐献:</view>
- <view class="uni-list">
- <radio-group class="radio-box" @change="radioChange">
- <label v-for="(item, index) in items" :key="item.name">
- <label class="radio">
- {{ item.name }}
- <radio :checked="index === current" color="#E62129" style="transform:scale(0.5)" :value="item.name" />
- <text></text>
- </label>
- </label>
- </radio-group>
- </view>
- </view>
- <view class="box">
- <!-- <view class="red-box">
- 报名参与
- </view> -->
- <view class="box-1">
- <view class="box-left">姓名</view>
- <input type="text" placeholder="请填写你的名字" placeholder-class="placeholder" value="" class="list-input" v-model="name" />
- </view>
- <view class="box-1">
- <view class="box-left">出生年月</view>
- <picker mode="date" :value="birthday" fields="month" :start="startDate" :end="endDate" @change="bindDateChange" class="box-right">
- <view>{{ birthday }}</view>
- </picker>
- </view>
- <view class="box-1">
- <view class="box-left">性别</view>
- <picker @change="bindPickerSex" :value="index" :range="array" class="box-right">
- <text>{{ sex }}</text>
- </picker>
- </view>
- <view class="box-1">
- <view class="box-left">文化程度</view>
- <picker @change="bindPickerEdu" :value="index" :range="chooseEdu" class="box-right">
- <text>{{ education }}</text>
- </picker>
- </view>
- <view class="box-1">
- <view class="box-left">民族</view>
- <input type="text" placeholder="请填写你的民族" placeholder-class="placeholder" value="" class="list-input" v-model="mz" />
- </view>
- <view class="box-1">
- <view class="box-left">邮箱</view>
- <input type="text" placeholder="请填写你的邮箱" placeholder-class="placeholder" value="" class="list-input" v-model="mail" />
- </view>
- <view class="box-1">
- <view class="box-left">地址</view>
- <input type="text" placeholder="请填写你的地址" placeholder-class="placeholder" value="" class="list-input" v-model="address" />
- </view>
- <view class="box-1">
- <view class="box-left">身份证号</view>
- <input type="text" placeholder="请填写你的身份证号" placeholder-class="placeholder" value="" class="list-input" v-model="card" />
- </view>
- <view class="box-1">
- <view class="box-left">联系电话</view>
- <input type="text" placeholder="请填写你的联系电话" placeholder-class="placeholder" value="" class="list-input" v-model="phone" />
- </view>
- <view class="box-1">
- <view class="box-left">微信号</view>
- <input type="text" placeholder="请填写你的微信号" placeholder-class="placeholder" value="" class="list-input" v-model="weixin" />
- </view>
- <view class="box-1">
- <view class="box-left">工作单位</view>
- <input type="text" placeholder="请填写你的工作单位" placeholder-class="placeholder" value="" class="list-input" v-model="work" />
- </view>
- <view class="box-1">
- <view class="box-left">职业/职务</view>
- <input type="text" value="" placeholder="请填写你的职业/职务" placeholder-class="placeholder" class="list-input" v-model="occupation" />
- </view>
- <view class="box-1">
- <view class="box-left">专业/专长</view>
- <input type="text" placeholder="请填写你的专业/专长" placeholder-class="placeholder" value="" class="list-input" v-model="major" />
- </view>
- <view class="upload-box">
- <view class="upload-left">照片</view>
- <view class="upload-right">
- <image :src="cardimg" mode="" class="upload-img" @click.stop="imgsub" v-if="cardimg"></image>
- <image src="../../static/images/upload.png" class="upload-img" mode="" v-if="!cardimg" @click.stop="imgsub"></image>
- </view>
- </view>
- </view>
- <view class="top" v-if="type == '人体器官' || type == '遗体捐献'">
- <view class="title">个人声明</view>
- <!-- <radio style="transform: scale(0.6)" @click="Getcheckboxs" color="#E62129" :checked="Getcheckeds" /> -->
- <view class="info-box">
-
- 人体器官捐献是服务医疗事业,造福人类的高尚行为,是“人道、博爱、奉献”精神的崇高体现,我已了解人体器官捐献的基本常识和有关政策法规。</view>
- <view class="info-box" style="padding-top: 0;">我自愿登记成为人体器官捐献志愿者,自愿无偿捐献:</view>
- <view class="uni-list" style="display: block;">
- <checkbox-group v-if="type == '遗体捐献'" style="display: inline-block;" @change="checkboxChangeAll">
- <label class="checkbox" style="padding-left: 0;">
- 全部器官(遗体捐献)
- <checkbox value="遗体捐献" :checked="all" color="#E62129" style="transform:scale(0.6)" />
- <!-- <text v-if="type == '人体器官'">或</text> -->
- </label>
- </checkbox-group>
- <checkbox-group v-if="type == '人体器官'" style="display: inline-block;" @change="checkboxChange">
- <label class="checkbox" v-for="item in apparatus" :key="item.name">
- {{ item.name }}
- <checkbox :checked="item.type" color="#E62129" style="transform:scale(0.6);margin: 0;padding: 0;" :value="item.name" />
- </label>
- </checkbox-group>
- <view class="box-2" v-if="type == '人体器官'">
- <view class="box-left">其他</view>
- <input type="text" value="" placeholder="若有其他内容请填写" class="list-input" v-model="other" />
- </view>
- <view class="font">请执行人和所有亲属尊重我的决定。</view>
- </view>
- </view>
- <view class="top" v-if="type == '人体器官' || type == '遗体捐献'">
- <view class="title">人体器官捐献执行人信息</view>
- <view class="info-box">我指定该亲属为我的器官捐献执行人,全权负责本人的器官捐献事宜,我保证填写的内容信息真实,如发生变更及时告知登记机构。</view>
- <view class="uni-list" style="display: block;">
- <view class="box-1" style="margin-top: 0rpx;">
- <view class="box-left">亲属关系</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写与本人的关系" class="list-input" v-model="relation" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">身份证号</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属身份证号" class="list-input" v-model="sfz" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">联系电话</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属联系电话" class="list-input" v-model="n_phone" />
- </view>
- </view>
- </view>
- <view class="top" v-if="type == '造血干细胞' ">
- <view class="title">中国造血干细胞捐献者资料库入库同意书</view>
- <view class="info-box">
- <text>我了解:</text>
- ①通过造血干细胞移植可以治疗人体造血系统及免疫系统的严重疾病,如白血病、恶性淋巴瘤等。②捐献造血干细胞是自愿、无偿的人道主义善举。③采集造血干细胞安全、科学、无损健康。
- </view>
- <view class="info-box" style="padding-top: 10rpx;">
- <text>我清楚:</text>
- ①中华骨髓库仅将我捐献的样本及造血干细胞用于造血干细胞移植相关工作,不会将其用于商业用途。②中华骨髓库会为我的个人隐私和个人资料保密。
- </view>
- <view class="info-box" style="padding-top: 10rpx;">
- <text>我坚定:</text>
- ①我将如实准确地提供个人健康资料并到指定地点留取样本。②一旦患者需要,我将竭尽全力为等待移植的患者捐献造血干细胞,并做好为其二次捐献造血干细胞或淋巴细胞的准备,以挽救其生命。
- </view>
- <view class="info-box" style="padding-top: 10rpx;">
- <text>我承诺:</text>
- ①在造血干细胞采集计划制定之后,我将不再改变捐献意愿,以免危及患者生命。②如联系地址或电话变更,我会及时告知中华骨髓库。
- </view>
- <view class="agree">
- <radio style="transform: scale(0.6)" @click="Getcheckbox" color="#E62129" :checked="Getchecked" />
- 我已认真阅读并同意入库
- </view>
- </view>
- <view class="top" v-if="type == '造血干细胞'">
- <view class="title">亲友一</view>
- <view class="info-box" style="text-indent: 0;">敬请留下两位亲友信息,以便与本人联系不上时,请他们转告:</view>
- <view class="uni-list">
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">姓名</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属姓名" class="list-input" v-model="friendOnename" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">亲属关系</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属与本人的关系" class="list-input" v-model="friendOnerelation" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">联系方式</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属联系方式" class="list-input" v-model="friendOnephone" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">微信号</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属微信号" class="list-input" v-model="friendOneweixin" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">联系地址</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属的联系地址" class="list-input" v-model="friendOneaddress" />
- </view>
- </view>
- </view>
- <view class="top" v-if="type == '造血干细胞'">
- <view class="title">亲友二</view>
- <view class="info-box" style="text-indent: 0;">敬请留下两位亲友信息,以便与本人联系不上时,请他们转告:</view>
- <view class="uni-list">
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">姓名</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属姓名" class="list-input" v-model="friendTwoname" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">亲属关系</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属与本人的关系" class="list-input" v-model="friendTworelation" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">联系方式</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属联系方式" class="list-input" v-model="friendTwophone" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">微信号</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属微信号" class="list-input" v-model="friendTwoweixin" />
- </view>
- <view class="box-1" style="margin-top: 20rpx;">
- <view class="box-left">联系地址</view>
- <input type="text" value="" placeholder-class="placeholder" placeholder="请填写亲属的联系地址" class="list-input" v-model="friendTwoaddress" />
- </view>
- </view>
- </view>
- <view class="buttomBox"><view class="buttom" :class="{ action: loding }" @click="!loding ? join() : ''">提交申请</view></view>
- </view>
- </template>
- <script>
- import { joinSecc } from '@/api/index.js';
- import { getList } from '@/api/index.js';
- import { upload } from '@/api/ask.js';
- export default {
- data() {
- const currentDate = this.getDate({
- format: true
- });
- return {
- all: false,
- isall: false,
- type: '',
- loding: false, //是否提交中
- array: ['男', '女'],
- chooseEdu: ['博士后', '博士', '硕士', '本科', '专科', '其他'],
- chooseVol: ['是', '否'],
- chooseExp: ['是', '否'],
- items: [
- {
- name: '人体器官'
- },
- {
- name: '造血干细胞'
- },
- {
- name: '遗体捐献'
- }
- ],
- apparatus: [
- {
- name: '肾脏',
- type: false
- },
- {
- name: '肝脏',
- type: false
- },
- {
- name: '心脏',
- type: false
- },
- {
- name: '肺脏',
- type: false
- },
- {
- name: '胰腺',
- type: false
- },
- {
- name: '小肠',
- type: false
- }
- ],
- remark: '',
- current: '',
- index: 0,
- mz: '',
- cardimg: '', //证件照
- checklist: [],
- name: '',
- sex: '请选择你的性别',
- birthday: '请选择你的出生年月',
- card: '',
- occupation: '',
- education: '请选择你的文化程度',
- phone: '',
- relation: '', //执行人关系
- n_phone: '', //执行人电话
- sfz: '', //执行人身份证号
- Getchecked: false,
- Getcheckeds: false,
- address: '',
- mail: '',
- weixin: '',
- major: '',
- work: '',
- other: '',
- friendOnename: '',
- friendOnerelation: '',
- friendOnephone: '',
- friendOneaddress: '',
- friendOneweixin: '',
- friendTwoname: '',
- friendTworelation: '',
- friendTwophone: '',
- friendTwoaddress: '',
- friendTwoweixin: ''
- };
- },
- computed: {
- startDate() {
- return this.getDate('start');
- },
- endDate() {
- return this.getDate('end');
- }
- },
- methods: {
- async join() {
- let obj = this;
- console.log(obj.type,"type")
- if (obj.type == '') {
- obj.$api.msg('请选择你要捐献的器官');
- return;
- }
- if (obj.name == '') {
- obj.$api.msg('请输入您的姓名');
- return;
- }
- if (obj.birth == '请选择你的出生年月') {
- obj.$api.msg('请选择出生年月');
- return;
- }
- if (obj.sex == '请选择你的性别') {
- obj.$api.msg('请输入您的性别');
- return;
- }
- if (obj.education == '请选择你的文化程度') {
- obj.$api.msg('请选择您的文化程度');
- return;
- }
- if (obj.mz == '') {
- obj.$api.msg('请填写您所属的民族');
- return;
- }
- if (obj.mail == '') {
- obj.$api.msg('请填写您的邮箱');
- return;
- }
- if (obj.address == '') {
- obj.$api.msg('请填写您的地址');
- return;
- }
- if (obj.card == '') {
- obj.$api.msg('请填写您的身份证号');
- return;
- }
- let reg1 = /^(^[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])$)$/;
- if (!reg1.test(obj.card)) {
- obj.$api.msg('请填写正确的身份证号');
- return;
- }
- if (obj.phone == '') {
- obj.$api.msg('请填写您的联系电话');
- return;
- }
- const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
- if (!reg.test(obj.phone)) {
- obj.$api.msg('请填写正确的联系电话');
- return;
- }
- if (obj.weixin == '') {
- obj.$api.msg('请填写您的微信号');
- return;
- }
- if (obj.work == '') {
- obj.$api.msg('请填写您的工作单位');
- return;
- }
- if (obj.specialty == '') {
- obj.$api.msg('请填写您的职业/职务');
- return;
- }
- if (obj.major == '') {
- obj.$api.msg('请填写您的专业/专长');
- return;
- }
- if (obj.cardimg == '') {
- obj.$api.msg('请上传您的证件');
- return;
- }
- if (obj.type == '人体器官' || obj.type == '遗体捐献') {
- console.log(obj.remark,'1111');
- if (obj.remark == '') {
- obj.$api.msg('请选择要捐献的器官');
- return;
- }
- if (obj.relation == '') {
- obj.$api.msg('请填写亲属身份');
- return;
- }
- if (obj.sfz == '') {
- obj.$api.msg('请填写亲属身份证号');
- return;
- }
- // if (obj.Getcheckeds != true) {
- // this.$api.msg('请阅读并同意入库!');
- // return;
- // }
- if (obj.n_phone == '') {
- obj.$api.msg('请填写亲属联系电话');
- return;
- }
- }
- if (obj.type == '造血干细胞') {
- if (obj.Getchecked != true) {
- this.$api.msg('请阅读并同意入库!');
- return;
- }
- console.log(this.friendOnename)
- if (obj.friendOnename == "") {
- this.$api.msg('请填写亲属一姓名!');
- return;
- }
- if (obj.friendOnerelation == "") {
- this.$api.msg('请填写亲属一与本人的关系!');
- return;
- }
- if (obj.friendOnephone == "") {
- this.$api.msg('请填写亲属一联系方式!');
- return;
- }
- if (obj.friendOneweixin == "") {
- this.$api.msg('请填写亲属一微信号!');
- return;
- }
- if (obj.friendOneaddress == "" ) {
- this.$api.msg('请填写亲属一的联系地址!');
- return;
- }
- if (obj.friendTwoname == "" ) {
- this.$api.msg('请填写亲属二姓名!');
- return;
- }
- if (obj.friendTworelation == "" ) {
- this.$api.msg('请填写亲属二与本人的关系!');
- return;
- }
- if (obj.friendTwophone == "" ) {
- this.$api.msg('请填写亲属二联系方式!');
- return;
- }
- if (obj.friendTwoweixin == "" ) {
- this.$api.msg('请填写亲属二微信号!');
- return;
- }
- if (obj.friendTwoaddress == "" ) {
- this.$api.msg('请填写亲属二的联系地址!');
- return;
- }
- }
-
- obj.loding = true;
- if (obj.type == '人体器官' || obj.type == '遗体捐献') {
- obj.body(1)
- } else if (obj.type == '造血干细胞') {
- obj.bloud()
- }
- else {
- obj.body(0);
- obj.bloud();
- }
- },
- //器官捐献
- body(item){
- const obj = this;
- joinSecc({
- name: obj.name,
- sex: obj.sex,
- education: obj.education,
- birthday: obj.birthday,
- card: obj.card,
- occupation: obj.occupation,
- remark: obj.remark,
- phone: obj.phone,
- address: obj.address,
- mail: obj.mail, // 邮箱
- weixin: obj.weixin, //微信
- major: obj.major, //专业或专长
- work: obj.work, // 工作单位
- cardimg: obj.cardimg, //照片
- relation: obj.relation,
- sfz: obj.sfz,
- n_phone: obj.n_phone,
- other: obj.other //其他器官
- })
- .then(e => {
- console.log(e,"2322222222222222222222222222222222222222")
- if(e.status == 400){
- console.log(e.msg);
- this.$api.msg("你已报名成功,不可重复报名")
- }else {
- obj.name = '';
- obj.sex = '请选择你的性别';
- obj.education = '请选择你的文化程度';
- obj.birth = '请选择你的出生年月';
- (obj.mz = ''), (obj.phone = '');
- obj.address = '';
- obj.work = '';
- obj.specialty = '';
- (obj.cardimg = ''), (obj.card = '');
- obj.mail = '';
- (obj.weixin = ''), (obj.major = '');
- if(item == 1){
- uni.navigateTo({
- url: '../joinSuc/joinNow'
- });
- }
- }
- })
- .catch(function(e) {
- console.log('出错了');
- console.log(e);
- });
- },
- //造血干细胞捐献
- bloud() {
- const obj = this;
- getList({
- name: obj.name,
- sex: obj.sex,
- education: obj.education, //文化程度
- birthday: obj.birthday,
- card: obj.card, //身份证号
- cardimg: obj.cardimg, //照片
- occupation: obj.occupation, //职业或职务
- phone: obj.phone,
- address: obj.address, //地址
- mail: obj.mail, // 邮箱
- weixin: obj.weixin, //微信
- major: obj.major, //专业或专长
- work: obj.work, // 工作单位
- friendOnename: obj.friendOnename, //亲友一的姓名
- friendOnerelation: obj.friendOnerelation, //亲友一与全赠者的关系
- friendOnephone: obj.friendOnephone, //亲友一的手机号
- friendOneweixin: obj.friendOneweixin, //亲友一的微信号
- friendOneaddress: obj.friendOneaddress, //亲友一的地址
- friendTwoname: obj.friendTwoname, //亲友二的姓名
- friendTworelation: obj.friendTworelation, //亲友二与全赠者的关系
- friendTwophone: obj.friendTwophone, //亲友二的手机号
- friendTwoweixin: obj.friendTwoweixin, //亲友二的微信号
- friendTwoaddress: obj.friendTwoaddress //亲友二的地址
- })
- .then(e => {
- console.log(e,"22222222222222222222222")
- if(e.status == 400){
- console.log(e.msg);
- this.$api.msg("你已报名成功,不可重复报名")
- }else {
- obj.name = '';
- obj.sex = '请选择你的性别';
- obj.education = '请选择你的文化程度';
- obj.birth = '请选择你的出生年月';
- (obj.mz = ''), (obj.phone = '');
- obj.address = '';
- obj.work = '';
- obj.specialty = '';
- (obj.cardimg = ''), (obj.card = '');
- obj.mail = '';
- (obj.weixin = ''), (obj.major = '');
- uni.navigateTo({
- url: '../joinSuc/joinNow'
- });
- }
-
- })
- .catch(function(e) {
- console.log('出错了');
- console.log(e);
- });
- },
- imgsub() {
- console.log('imgsub');
- upload({
- filename: ''
- }).then(data => {
- this.cardimg = data[0].url;
- });
- },
- // 选择性别
- bindPickerSex: function(e) {
- this.sex = this.array[e.target.value];
- this.index = e.target.value + 1;
- },
- // 选择教育程度
- bindPickerEdu: function(e) {
- this.education = this.chooseEdu[e.target.value];
- // console.log('选择选择教育程度',this.education)
- this.index = e.target.value + 1;
- },
- // 选择日期
- bindDateChange: function(e) {
- console.log(e);
- this.birthday = e.target.value;
- console.log(this.birthday);
- },
- //选择填写日期
- fillingDateChange: function(e) {
- this.add_time = e.target.value;
- },
- // 是否参加志愿活动
- bindPickerVol: function(e) {
- this.is_vol = this.chooseVol[e.target.value];
- this.index = e.target.value + 1;
- },
- // 有无服务经验
- bindPickerExp: function(e) {
- console.log('有无服务经验', e.target.value);
- this.is_experience = this.chooseExp[e.target.value];
- this.index = e.target.value + 1;
- },
- // 选择捐献
- radioChange: function(evt) {
- console.log('选择捐献', evt);
- for (let i = 0; i < this.items.length; i++) {
- if (this.items[i].name === evt.detail.value) {
- this.type = evt.detail.value;
- console.log('this.type', this.type);
- this.current = i;
- console.log('this.current', this.current);
- break;
- }
- }
- if(this.type == '遗体捐献'){
- this.remark = '遗体捐献';
- this.all = true;
- }
- },
- checkboxChangeAll(e) {
- const obj = this;
- for (let i = 0; i < obj.apparatus.length; i++) {
- obj.apparatus[i].type = false;
- }
- if (obj.remark != ' ') {
- obj.remark = '';
- }
- console.log(e,"`11111")
- obj.remark = e.detail.value.join(',');
- console.log(obj.remark);
- obj.all = true;
- },
- //器官捐献时选择要捐献的器官
- checkboxChange(e) {
- const obj = this;
- obj.all = false;
- if(obj.remark != ''){
- if (obj.remark.indexOf('all') != -1) {
- obj.remark = '';
- }
- }
- obj.remark = e.detail.value.join(',');
- for (let i = 0; i < obj.apparatus.length; i++) {
- if (obj.remark.indexOf(obj.apparatus[i].name) != -1) {
- obj.apparatus[i].type = true;
- }
- }
- console.log(obj.remark);
- },
- Getcheckbox() {
- let obj = this;
- obj.Getchecked = !obj.Getchecked;
- },
- Getcheckboxs() {
- let obj = this;
- obj.Getcheckeds = !obj.Getcheckeds;
- },
- getDate(type) {
- const date = new Date();
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
- if (type === 'start') {
- year = year - 60;
- } else if (type === 'end') {
- year = year + 2;
- }
- month = month > 9 ? month : '0' + month;
- day = day > 9 ? day : '0' + day;
- return `${year}-${month}-${day}`;
- },
- // 选择可提供时间
- // this.quantum = item.detail.value.join(',');
- checktime1(e) {
- // var items = this.timeList,
- // let quantum = [];
- this.quantum = e.detail.value.join(',');
- console.log(this.quantum);
- },
- checktime2(e) {
- // var items = this.timeList,
- let values = e.detail.value;
- // let quantum = [];
- console.log(values);
- },
- checktime3(e) {
- // var items = this.timeList,
- let values = e.detail.value;
- // let quantum = [];
- console.log(values);
- },
- //选择有兴趣参与的工作
- checkjob(item) {
- this.taste = item.detail.value.join(',');
- },
- // 选择专长checkspeciality
- checkspeciality(item) {
- this.speciali = item.detail.value.join(',');
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- background: #f2f2f2;
- }
- .content {
- background: #f2f2f2;
- .top {
- margin-top: 16rpx;
- background: #ffffff;
- position: relative;
- .title {
- height: 106rpx;
- text-align: center;
- line-height: 106rpx;
- border-bottom: 2rpx #acacac dashed;
- font-size: 34rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #101010;
- }
- .info-box {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- text-indent: 1em;
- padding: 37rpx 60rpx 0rpx 36rpx;
- text {
- color: #101010;
- font-family: PingFang-SC-Medium;
- font-weight: bold;
- }
- // border: 3rpx solid #009100;
- }
- .uni-list {
- padding: 26rpx 34rpx 50rpx 35rpx;
- // .radio:first-child {
- // margin: -6rpx;
- // }
- .radio {
- margin-left: 50rpx;
- flex: 1;
- align-items: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- }
- .checkbox {
- display: inline-block;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- }
- .box-2 {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- margin-top: 8rpx;
- // height: 133rpx;
- .box-left {
- padding-left: 2rpx;
- text-align: left;
- width: 62rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- }
- input {
- height: 66rpx;
- line-height: 66rpx;
- // height: 88rpx;
- }
- .list-input {
- padding-left: 22rpx;
- // margin: 12rpx 0 ;
- font-size: 28rpx;
- display: flex;
- justify-content: center;
- // line-height: 66rpx;
- display: flex;
- align-items: center;
- flex: 1;
- color: #000000;
- border: 1px solid #d2d2d2;
- text-align: left;
- .input-placeholder {
- height: 70rpx;
- color: #959595;
- }
- }
- .box-right {
- display: flex;
- padding-left: 22rpx;
- height: 66rpx;
- line-height: 66rpx;
- border: 1px solid #d2d2d2;
- // margin: 32rpx 36rpx 0 36rpx;
- width: 500rpx;
- font-size: 28rpx;
- color: #959595;
- text-align: left !important;
- // line-height: 1;
- }
- }
- .font {
- margin-top: 22rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .agree {
- display: flex;
- align-items: center;
- padding: 37rpx 60rpx 40rpx 36rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- }
- }
- .buttomBox {
- height: 100rpx;
- // padding-bottom: 40rpx;
- }
- .buttom {
- width: 100%;
- height: 100rpx;
- background: #f3392c;
- font-size: 36rpx;
- font-weight: 400;
- color: #ffffff;
- line-height: 100rpx;
- text-align: center;
- &.action {
- background: #999999;
- }
- }
- .box {
- margin-top: 16rpx;
- width: 100%;
- background-color: #ffffff;
- border-radius: 10rpx;
- padding: 28rpx 20rpx 32rpx 20rpx;
- position: relative;
- .red-box {
- width: 405rpx;
- line-height: 66rpx;
- text-align: center;
- background: linear-gradient(0deg, #c90f1b, #f14d33);
- border-radius: 10rpx;
- font-size: 30rpx;
- font-weight: 500;
- color: #ffffff;
- // position: relative;
- position: absolute;
- top: -36rpx;
- left: 50%;
- transform: translateX(-50%);
- z-index: 1;
- }
- .box-check {
- font-size: 28rpx;
- font-weight: 500;
- color: #666666;
- line-height: 100rpx;
- }
- .upload-box {
- width: 100%;
- height: 247rpx;
- background: #ffffff;
- // border: 1px solid #E63931;
- border-radius: 27rpx;
- display: flex;
- flex-direction: column;
- padding: 30rpx 40rpx 30rpx 0;
- margin: 42rpx auto 30rpx;
- .upload-left {
- font-weight: 400;
- color: #000000;
- }
- .upload-right {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- .upload-img {
- width: 150rpx;
- height: 150rpx;
- margin-top: 24rpx;
- }
- }
- }
- }
- .box-1 {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- margin-top: 42rpx;
- // height: 133rpx;
- .box-left {
- padding-left: 2rpx;
- width: 184rpx;
- text-align: left;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- }
- input {
- height: 66rpx;
- line-height: 66rpx;
- // height: 88rpx;
- }
- .list-input {
- padding-left: 22rpx;
- // margin: 12rpx 0 ;
- font-size: 28rpx;
- // line-height: 66rpx;
- display: flex;
- align-items: center;
- flex: 1;
- color: #000000;
- width: 500rpx;
- border: 1px solid #d2d2d2;
- text-align: left;
- .input-placeholder {
- height: 70rpx;
- color: #959595;
- }
- }
- .box-right {
- display: flex;
- padding-left: 22rpx;
- height: 66rpx;
- line-height: 66rpx;
- border: 1px solid #d2d2d2;
- // margin: 32rpx 36rpx 0 36rpx;
- width: 500rpx;
- font-size: 28rpx;
- color: #959595;
- text-align: left !important;
- // line-height: 1;
- }
- }
- }
- .placeholder {
- line-height: 66rpx;
- }
- </style>
|