diff --git a/src/views/ebiz/agentEenter/js/methods.js b/src/views/ebiz/agentEenter/js/methods.js index d1f604c26..0a0a278ed 100644 --- a/src/views/ebiz/agentEenter/js/methods.js +++ b/src/views/ebiz/agentEenter/js/methods.js @@ -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 diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index 525de3bba..fd688cd9d 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -471,9 +471,9 @@ - + -