diff --git a/src/views/ebiz/sale/js/verification.js b/src/views/ebiz/sale/js/verification.js index ed059ab9a..ce15fac6d 100644 --- a/src/views/ebiz/sale/js/verification.js +++ b/src/views/ebiz/sale/js/verification.js @@ -167,6 +167,11 @@ export function idNoCheck8(userInfo,type) { text: '外国人永久居留身份证证件有效期有误' } } + if(date3 > new Date().getTime()) { + return { + text: '外国人永久居留身份证证件有效期有误' + } + } } if(thisAge >= 18 && thisAge <= 22) { let date1 = new Date(userInfo.certiexpiredate.replace(/-/g,'/')); @@ -183,7 +188,17 @@ export function idNoCheck8(userInfo,type) { let thisAge2 = utilsAge.getAge(userInfo.birthday, new Date(date8.replace(/-/g,'/'))) if(thisAge1 >= 18 && thisAge2 < 18){ return { - text: '外国人永久居留身份证证件有效期有误' + text: '外国人永久居留身份证证件有效期有误1' + } + } + if(date3 > new Date().getTime()) { + return { + text: '外国人永久居留身份证证件有效期有误2' + } + } + if(date7 > new Date().getTime()) { + return { + text: '外国人永久居留身份证证件有效期有误3' } } } @@ -198,6 +213,11 @@ export function idNoCheck8(userInfo,type) { text: '外国人永久居留身份证证件有效期有误' } } + if(date3 > new Date().getTime()) { + return { + text: '外国人永久居留身份证证件有效期有误' + } + } } } else { let thisAge = utilsAge.getAge(userInfo.birthday, new Date(userInfo.certificateValidate))