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({