新用户清 state 内置演示默认值(DEFAULT_DUE/孕27), 资料弹窗预产期/孕周全空+锁定 (v26090716)
This commit is contained in:
10
index.html
10
index.html
@@ -6,8 +6,8 @@
|
||||
<meta name="theme-color" content="#F4593C">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>妈妈盒子 · 孕育陪伴</title>
|
||||
<!-- V:26090715 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090715">
|
||||
<!-- V:26090716 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090716">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1761,8 +1761,8 @@
|
||||
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
|
||||
不影响应用其余功能。 -->
|
||||
|
||||
<script src="js/app.js?v=26090715"></script>
|
||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090715 -->
|
||||
<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">v26090715</div>
|
||||
<script src="js/app.js?v=26090716"></script>
|
||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090716 -->
|
||||
<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">v26090716</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user