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+='-' }