From 2b87d3cfdad39ab3e62b8edfe2a56adbf0da5a14 Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Tue, 8 Sep 2026 03:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E4=BA=A7=E6=9C=9F=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E6=97=B6=E9=9A=90=E8=97=8F=E5=8E=9F=E7=94=9F=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=8F=90=E7=A4=BA(due-empty=20=E6=96=87=E5=AD=97=E9=80=8F?= =?UTF-8?q?=E6=98=8E),=20=E5=8F=AA=E6=98=BE=E7=A4=BA=E5=8D=A0=E4=BD=8D?= =?UTF-8?q?=E5=B1=82=20(v26090731)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 10 +++++----- js/app.js | 1 + mama-box.css | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 53bbacf..75e7028 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ 妈妈盒子 · 孕育陪伴 - - + + @@ -1773,8 +1773,8 @@ 加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示, 不影响应用其余功能。 --> - - -
v26090730
+ + +
v26090731
diff --git a/js/app.js b/js/app.js index be44c9f..c1f24eb 100644 --- a/js/app.js +++ b/js/app.js @@ -1805,6 +1805,7 @@ function syncDuePh() { const ph = $('#pgDuePh'); if (ph) ph.style.display = pgDue.value ? 'none' : 'block'; + pgDue.classList.toggle('due-empty', !pgDue.value); } /* 预产期一变,孕周 / 额外天数自动算出来 */ diff --git a/mama-box.css b/mama-box.css index 7679667..39d8fd4 100644 --- a/mama-box.css +++ b/mama-box.css @@ -2657,3 +2657,5 @@ a.skip:focus{left:16px;top:16px} .fld-date .due-box{position:relative;display:block} /* 占位锚定输入框本身并垂直居中 —— 各内核 date 输入框高度不一,锚 label 底部会错位 */ .fld-date .date-ph{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:14px;color:#C9B7AC;pointer-events:none;display:block;line-height:1} +/* 空值时隐藏原生提示(Chrome 会画 mm/dd/yyyy,与占位叠字):文字透明即隐 */ +.fld-date input.due-empty{color:transparent;-webkit-text-fill-color:transparent}