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}