diff --git a/index.html b/index.html index 3c42249..3e8207c 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ 妈妈盒子 · 孕育陪伴 - - + + @@ -1761,8 +1761,8 @@ 加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示, 不影响应用其余功能。 --> - - -
v26090715
+ + +
v26090716
diff --git a/js/app.js b/js/app.js index 679b84b..6613da0 100644 --- a/js/app.js +++ b/js/app.js @@ -4120,9 +4120,14 @@ } if (pg && pg.code === 200 && pg.result) { /* 新用户空态(未完善资料):后端不再给默认孕周 → 显示引导占位, - 不读任何演示数据(详见 syncPregnancy 的 pregEmpty 分支) */ + 不读任何演示数据(详见 syncPregnancy 的 pregEmpty 分支)。 + ⚠️ 同时清掉 state 的内置演示默认值(DEFAULT_DUE=今天+3个月/孕27周), + 否则「我的资料」弹窗回填时又会把它们带回来。 */ if (pg.result.empty || pg.result.week == null) { state.pregEmpty = true; + state.due = null; + state.week = null; + state.day = null; } else { state.pregEmpty = false; state.week = pg.result.week;