今日脚印:预览环境追加数胎动/数宫缩/称体重示例行 (v26100233)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>兜爸心选 · 孕育陪伴</title>
|
||||
<!-- V:26100232 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<!-- V:26100233 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<link rel="stylesheet" href="mama-box.css">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
||||
|
||||
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