From 6d48a315a5bf79aed287d0909d2303aca46789b9 Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Mon, 19 Feb 2024 16:53:00 +0800 Subject: [PATCH] 优化 --- packageA/pages/profile/profile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packageA/pages/profile/profile.js b/packageA/pages/profile/profile.js index 3abcba1..e6e0813 100644 --- a/packageA/pages/profile/profile.js +++ b/packageA/pages/profile/profile.js @@ -1180,8 +1180,12 @@ Page({ } if (b.length==6 && b[5] >1) { - console.log(b[5]); - return this.data.oldbirthday + let lb = b.split(''); + lb.splice(5, 0, 0); + b = lb.join(''); + b+='-' + // console.log(b[5]); + // return this.data.oldbirthday } if (b.length==7) { -- libgit2 0.21.4