diff --git a/index.html b/index.html index 69dbd3f..e6a4505 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ 妈妈盒子 · 孕育陪伴 - - + + @@ -1713,8 +1713,8 @@ 加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示, 不影响应用其余功能。 --> - - -
v26090719
+ + +
v26090720
diff --git a/js/app.js b/js/app.js index be5777d..ead3e3a 100644 --- a/js/app.js +++ b/js/app.js @@ -455,7 +455,8 @@ state.kickQuick++; state.kickToday++; state.todayCount++; const a = $('#kickCount'), b = $('#kickTodayHome'), c = $('#todayCount'); a.textContent = state.kickQuick; bump(a.parentElement); - b.textContent = state.kickToday; bump(b.parentElement); + /* #kickTodayHome 原在首页数胎动演示卡上(已换成应用宫格),守卫判空 */ + if (b) { b.textContent = state.kickToday; bump(b.parentElement); } c.textContent = state.todayCount; toast('胎动 +1,今天已记录 ' + state.kickQuick + ' 次'); haptic(); @@ -1854,7 +1855,7 @@ n.textContent = n.dataset.wk === 'cn' ? '孕 ' + state.week + ' 周' : state.week; }); const next = CHECKUPS.find(w => w * 7 > gaNow); - $('#calNext').textContent = mdTxt(next ? gaToDate(next * 7) : state.due); + /* #calNext 原在首页孕检日历卡上 —— 那批演示卡已换成应用宫格,元素没了,别再写 */ const t = new Date(); $('#noteWhen').textContent = mdTxt(t) + ' ' + WEEKDAY[t.getDay()] + ' · ' + gaTxt(gaNow); } @@ -1899,7 +1900,6 @@ 不保留 HTML 里的演示默认值(孕27周/9月15日…) */ $$('[data-ga]').forEach(n => { n.textContent = '--'; }); $$('[data-wk]').forEach(n => { n.textContent = '--'; }); - $('#calNext').textContent = '--'; const _t = new Date(); $('#noteWhen').textContent = mdTxt(_t); syncBabyWords();