From 33cbcc68e6a41048235cb0d6ef868a5cb16a2ccf Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Mon, 19 Feb 2024 16:39:59 +0800 Subject: [PATCH] η”Ÿζ—₯δΌ˜εŒ– --- packageA/pages/profile/profile.js | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/packageA/pages/profile/profile.js b/packageA/pages/profile/profile.js index 31caaab..3abcba1 100644 --- a/packageA/pages/profile/profile.js +++ b/packageA/pages/profile/profile.js @@ -1171,6 +1171,14 @@ Page({ if (b.length==4) { b+='-' } + if (b.length==5 && b[4]!='-') { + return this.data.oldbirthday + } + + if (b.length==8 && b[7]!='-') { + return this.data.oldbirthday + } + if (b.length==6 && b[5] >1) { console.log(b[5]); return this.data.oldbirthday @@ -1182,6 +1190,10 @@ Page({ lb.splice(5, 0, 0); b = lb.join(''); }else{ + let s=b[5]+b[6] + if (s*1>12) { + return this.data.oldbirthday + } b+='-' } -- libgit2 0.21.4