diff --git a/index.html b/index.html
index 7a10d2b..e782a01 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
兜爸心选 · 孕育陪伴
-
+
diff --git a/js/app.js b/js/app.js
index 2f928ac..9a930cc 100644
--- a/js/app.js
+++ b/js/app.js
@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
- var VER = '26093023';
+ var VER = '26093024';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -3261,7 +3261,24 @@
})();
/* 拉卡片数据(与其它远程数据一起打;失败静默,卡上保留现有值) */
+ /* 预览环境专用的一组示例数据(2026-09-30 用户要求:五张工具卡填一组示例数据,看排版效果)。
+ ⚠️ 只在 /mama-box-preview/ 路径下生效,正式首页(/mama-box/)永远走不到这里 ——
+ 2026-09-22 出过写死演示值被所有用户看到的事故(AGENTS §4.2 不造假数据),
+ 所以示例数据绝不能靠「接口没回来就兜底」这种条件触发,只认预览路径。
+ 结构照搬 tool-cards 接口,直接喂给 applyRemoteCards,渲染逻辑一行不多写。 */
+ const DEMO_CARDS = location.pathname.indexOf('/mama-box-preview/') === 0 ? {
+ ok: true, day: '2026-09-30',
+ cards: [
+ { slot: 'kick', value: '12', sub: '3 段 · 最近 14:20' },
+ { slot: 'weight', value: '58.2', unit: 'kg', sub: '比上周 +0.3kg' },
+ { slot: 'cal', text: '10月8日 糖耐' },
+ { slot: 'fweight', text: '约 1250g' },
+ { slot: 'curve', value: '5分20秒' },
+ ],
+ } : null;
+
function applyRemoteCardsFetch() {
+ if (DEMO_CARDS) { applyRemoteCards(DEMO_CARDS); return; }
const openid = hashParam('openid');
if (!openid) return; // 访客态不问(接口要 openid)
const unionid = hashParam('unionid');