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

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) { export function getIdentityInfo(that, data, type) {
if (data.name && data.name != '待识别') { if (data.name && data.name != '待识别') {
that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` if (type == '1') {
that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}`
that.userInfo.name = data.name that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}`
that.userInfo.idNo = data.idNo that.userInfo.name = data.name
that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` that.userInfo.idNo = data.idNo
that.userInfo.sex = data.gender == '男' ? '0' : '1' that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}`
that.effectiveDateTypeAble = idToData(data.idNo).age <= 45 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.isScan = false
that.bankisScan = false that.bankisScan = false

View File

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

File diff suppressed because it is too large Load Diff