预产期空值时隐藏原生日期提示(due-empty 文字透明), 只显示占位层 (v26090731)

This commit is contained in:
2026-09-08 03:17:47 +08:00
parent 915459f21a
commit 2b87d3cfda
3 changed files with 8 additions and 5 deletions

View File

@@ -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);
}
/* 预产期一变,孕周 / 额外天数自动算出来 */