From 49a0bd992b8c215b3b767f7fbf2f0536530f9755 Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Sat, 28 Feb 2026 15:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/addoldman/oldIDcard.vue | 6 +++--- pages/oldmanindex/account.vue | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/addoldman/oldIDcard.vue b/pages/addoldman/oldIDcard.vue index cd9d015..7ae0f7b 100644 --- a/pages/addoldman/oldIDcard.vue +++ b/pages/addoldman/oldIDcard.vue @@ -374,8 +374,8 @@ savephoto(filePath, 0); } else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back) { let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data; - let regex = /^\d{4}.\d{2}.\d{2}$/; - console.log(regex.test(father.validPeriod)) + let regex = /[\u4E00-\u9FA5\uF900-\uFA2D]{1,}/; + console.log(regex.test(father.validPeriod),father.validPeriod) if(father.validPeriod == "女"){ uni.showToast({ @@ -383,7 +383,7 @@ icon: 'none', duration: 2000 }) - uping.value = false; + uping.value = true; return } diff --git a/pages/oldmanindex/account.vue b/pages/oldmanindex/account.vue index 4c053de..fc1ef4a 100644 --- a/pages/oldmanindex/account.vue +++ b/pages/oldmanindex/account.vue @@ -119,11 +119,11 @@ // console.log("?????",item.value) }) const tother = ref(0) - onShow(()=>{ - if(tother.value == 1){ - uni.navigateBack({delta:2}) - } - }) + // onShow(()=>{ + // if(tother.value == 1){ + // uni.navigateBack({delta:2}) + // } + // }) onHide(()=>{ tother.value = 1; uni.request({