今日脚印:预览环境追加数胎动/数宫缩/称体重示例行 (v26100233)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
12
js/app.js
12
js/app.js
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26100232';
|
||||
var VER = '26100233';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -4650,6 +4650,16 @@
|
||||
app: '',
|
||||
});
|
||||
});
|
||||
/* ⚠️ 示例脚印(2026-10-03 用户:「多放两个脚印示例,数胎动、数宫缩、称体重」)——**只在预览环境**
|
||||
(路径含 mama-box-preview,或 hash 带 fpdemo=1)追加,用来看多条时的排版;正式版不会出现,不冒充真记录。
|
||||
确认样式后整段删掉即可。 */
|
||||
if (/mama-box-preview/.test(location.pathname) || hashParam('fpdemo') === '1') {
|
||||
rows.push(
|
||||
{ at: '09:20', label: '数胎动,宝宝动了 12 次', detail: '', app: '' },
|
||||
{ at: '11:05', label: '数宫缩 3 次,间隔约 8 分钟', detail: '', app: '' },
|
||||
{ at: '13:30', label: '称体重 58.2 kg,本周 +0.3 kg', detail: '', app: '' }
|
||||
);
|
||||
}
|
||||
rows.sort((a, b) => String(a.at).localeCompare(String(b.at)));
|
||||
/* 2026-10-03 精简版:首页只放最近 4 条,更多点「全部」 */
|
||||
rows.slice(-4).forEach(row => steps.append(buildFootprintStep(row)));
|
||||
|
||||
Reference in New Issue
Block a user