投被不同人,被保人扫描身份证件后点击完成按钮,没反应

This commit is contained in:
liyuetong
2021-05-18 15:01:45 +08:00
parent d271880372
commit 5284e14f84
3 changed files with 21 additions and 1763 deletions

View File

@@ -859,13 +859,23 @@ export function sureArea(that, area, type, flag = false) {
*/
export function getIdentityInfo(that, data, type) {
if (data.name && data.name != '待识别') {
that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
that.userInfo.name = data.name
that.userInfo.idNo = data.idNo
that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
that.userInfo.sex = data.gender == '男' ? '0' : '1'
that.effectiveDateTypeAble = idToData(data.idNo).age <= 45
if (type == '1') {
that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
that.userInfo.name = data.name
that.userInfo.idNo = data.idNo
that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
that.userInfo.sex = data.gender == '男' ? '0' : '1'
that.effectiveDateTypeAble = idToData(data.idNo).age <= 45
} else if (type == '2') {
that.insuredInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
that.insuredInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
that.insuredInfo.name = data.name
that.insuredInfo.idNo = data.idNo
that.insuredInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
that.insuredInfo.sex = data.gender == '男' ? '0' : '1'
that.effectiveDateTypeAbleInsured = idToData(data.idNo).age <= 45
}
}
that.isScan = false
that.bankisScan = false

View File

@@ -471,9 +471,9 @@
<van-popup v-model="isScan" position="bottom">
<IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan>
</van-popup>
<van-popup v-model="isScan2" position="bottom">
<!-- <van-popup v-model="isScan2" position="bottom">
<IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan>
</van-popup>
</van-popup> -->
</div>
</template>
<script>
@@ -533,7 +533,7 @@ export default {
now: afterDate.getAfterDays(1), //指定生效日期最小值
insuredSex: '男',
isScan: false, //是否显示证件扫描组件
isScan2: false,
// isScan2: false,
allPrice: 0,
result: [],
checked: true,
@@ -875,7 +875,7 @@ export default {
this.occupationShowPicker = false
} else if (this.currentPopupIndex == 3) {
this.isScan = false
this.isScan2 = false
// this.isScan2 = false
}
},
//弹框选择

File diff suppressed because it is too large Load Diff