From 8974bf9e148d3aace10c889ec09ff64f528f82f7 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Fri, 23 Feb 2024 13:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E5=8D=95=E8=AF=81=E4=BB=B6=E6=9C=89?= =?UTF-8?q?=E6=95=88=E6=9C=9F=E8=AE=A1=E7=AE=97=E5=A2=9E=E5=8A=A0=E4=B8=8E?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E6=97=A5=E6=9C=9F=E5=AF=B9=E6=AF=94=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/js/verification.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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))