From 2af6def2fd204793e546f1c40da05cf7e7d79e87 Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Tue, 8 Sep 2026 01:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=AF=B9=E5=B7=B2=E5=88=A0?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E5=8D=A1=E5=85=83=E7=B4=A0=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8(calNext/kickTodayHome)=20=E4=BF=AE=E5=A4=8D=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E7=A9=BA=E6=8C=87=E9=92=88=20(v26090720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 10 +++++----- js/app.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) 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();