| | |
| | | |
| | | </up-form-item> |
| | | <up-textarea v-model="userInfo.resume" placeholder="请输入简历描述"></up-textarea> |
| | | <up-text type="error" text="*注册需满16周岁"></up-text> |
| | | <!-- <up-form-item label="性别" required prop="Gender" ref="item2"> |
| | | <up-radio-group v-model="userInfo.Gender"> |
| | | <up-radio :customStyle="{marginRight: '16px'}" v-for="(item, index) in radiolist1" :key="index" |
| | |
| | | let res = JSON.parse(e.res.data.replace(/\ufeff/g, "") || "{}") |
| | | if (res.code == 1) { |
| | | if (res.data.url && text == 'FRONT') { |
| | | userInfo.idCardFace = res.data.url //身份证正面路径 |
| | | userInfo.idCode = res.data.info.idNum //身份证号 |
| | | userInfo.name = res.data.info.name |
| | | userInfo.address = res.data.info.address |
| | | gender.value = res.data.info.sex |
| | | console.log($util.calculateAgeFromBirthday(res.data.info.birth)); |
| | | if($util.calculateAgeFromBirthday(res.data.info.birth)<16){ |
| | | $util.showToast({ |
| | | title: '未满16周岁无法注册!' |
| | | }) |
| | | uploadF.value.deleteImage() |
| | | }else{ |
| | | userInfo.idCardFace = res.data.url //身份证正面路径 |
| | | userInfo.idCode = res.data.info.idNum //身份证号 |
| | | userInfo.name = res.data.info.name |
| | | userInfo.address = res.data.info.address |
| | | gender.value = res.data.info.sex |
| | | } |
| | | } else { |
| | | userInfo.idCardBack = res.data.url //身份证反面路径 |
| | | if($util.calculateAgeFromBirthday(res.data.info.validDate.split('-')[1])>=0){ |
| | | $util.showToast({ |
| | | title: '身份证已过期!' |
| | | }) |
| | | uploadB.value.deleteImage() |
| | | }else{ |
| | | userInfo.idCardBack = res.data.url //身份证反面路径 |
| | | } |
| | | |
| | | } |
| | | } else { |
| | | uni.$u.toast(res.error) |