From 47fb573cd6fb6bdedf145e07cc860831a8741043 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Thu, 22 Feb 2024 16:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E5=9B=BD=E4=BA=BA=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E5=B1=85=E4=BD=8F=E8=AF=8115=E6=80=A7=E5=88=AB=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/js/verification.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/ebiz/sale/js/verification.js b/src/views/ebiz/sale/js/verification.js index 426370207..dbff8372a 100644 --- a/src/views/ebiz/sale/js/verification.js +++ b/src/views/ebiz/sale/js/verification.js @@ -54,8 +54,8 @@ function getBirthById(idNo) { function getSexById(idNo) { if(idNo.length == 15){ // 获取性别 - if (idNo.charAt(14) >= '0' && idNo.charAt(14) <= '9') { - if (parseInt(idNo.charAt(14)) % 2 == 0) { + if (idNo.charAt(13) >= '0' && idNo.charAt(13) <= '9') { + if (parseInt(idNo.charAt(13)) % 2 == 0) { return '1' } else { return '0' @@ -128,6 +128,8 @@ export function idNoCheck8(userInfo) { } let thisSex = getSexById(userInfo.idNo) if(thisSex != userInfo.sex) { + console.log('sexxxxxx',thisSex) + console.log('sexxxxxx',userInfo.sex) return { text: '性别必须与证件号码中的一致' }