新用户空态: handler 短路 —— pregEmpty 时跳过 stampLetters/syncStaticDates 等按默认孕周的重算, 隐藏演示未读角标 (v26090714)
This commit is contained in:
10
index.html
10
index.html
@@ -6,8 +6,8 @@
|
|||||||
<meta name="theme-color" content="#F4593C">
|
<meta name="theme-color" content="#F4593C">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<title>妈妈盒子 · 孕育陪伴</title>
|
<title>妈妈盒子 · 孕育陪伴</title>
|
||||||
<!-- V:26090713 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
<!-- V:26090714 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||||
<link rel="stylesheet" href="mama-box.css?v=26090713">
|
<link rel="stylesheet" href="mama-box.css?v=26090714">
|
||||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -1758,8 +1758,8 @@
|
|||||||
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
|
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
|
||||||
不影响应用其余功能。 -->
|
不影响应用其余功能。 -->
|
||||||
|
|
||||||
<script src="js/app.js?v=26090713"></script>
|
<script src="js/app.js?v=26090714"></script>
|
||||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090713 -->
|
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090714 -->
|
||||||
<div id="ver" style="position:fixed;left:0;right:0;bottom:10px;text-align:center;z-index:9999;pointer-events:none;color:#B3A69C;font-size:10px;letter-spacing:.5px">v26090713</div>
|
<div id="ver" style="position:fixed;left:0;right:0;bottom:10px;text-align:center;z-index:9999;pointer-events:none;color:#B3A69C;font-size:10px;letter-spacing:.5px">v26090714</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -4103,6 +4103,11 @@
|
|||||||
}
|
}
|
||||||
// 统一回刷依赖这些 state 的展示
|
// 统一回刷依赖这些 state 的展示
|
||||||
syncPregnancy();
|
syncPregnancy();
|
||||||
|
/* 新用户空态:syncPregnancy 已写完引导占位(含信件/称呼/静态位归零)。
|
||||||
|
⚠️ 下面 stampLetters/filterLetters/syncStaticDates 全按 state.week 重算,
|
||||||
|
而 pregEmpty 时 state.week 还是内置默认 27 —— 不拦住的话,
|
||||||
|
刚写好的占位会被改回「孕 27 周 / 9月15日」演示值。 */
|
||||||
|
if (state.pregEmpty) { $('#tabBadge').classList.remove('show'); return; }
|
||||||
syncBabyWords();
|
syncBabyWords();
|
||||||
stampLetters();
|
stampLetters();
|
||||||
filterLetters(state.letterFilter);
|
filterLetters(state.letterFilter);
|
||||||
|
|||||||
Reference in New Issue
Block a user