From e9cfa10fca4ce83be6f81f78d41d3f390649c8cf Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Mon, 5 Oct 2026 05:49:52 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=A7=88=E7=AB=99=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E4=B8=80=E5=BE=8B=E5=B8=A6=20demo=3D1=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=A4=BA=E4=BE=8B=E6=A1=A3=E6=A1=88=20(v2610?= =?UTF-8?q?0459)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- index.html | 2 +- js/app.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index f8678f1..e7d8aaf 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + diff --git a/js/app.js b/js/app.js index b84de68..c1e2142 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26100458'; + var VER = '26100459'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -289,8 +289,9 @@ if (uid) q.push('unionid=' + encodeURIComponent(uid)); /* 2026-10-05 成长档案会话(19875b1b)要求带 return_url:档案页左上角返回键回到这里(它只收 https:// 或 / 开头,要编码)。 */ q.push('return_url=' + encodeURIComponent(location.href)); - /* demo=1 只在本页「示例模式」(预览路径 + 显式 demo=1)才带;正常入口绝不带 —— 档案页带了会忽略用户自己的数据(对方明确要求)。 */ - if (DEMO) q.push('demo=1'); + /* demo=1:**预览路径一律带**(2026-10-05 用户:「档案页里的示例数据没有了」—— 预览是给人看效果的,要看到档案自己的示例,含 40 周旅程图); + 正式首页 /mama-box/ 永远不带 —— 档案页带了会忽略用户自己的数据(成长档案会话 19875b1b 明确要求正式入口不带)。 */ + if (location.pathname.indexOf('/mama-box-preview/') === 0) q.push('demo=1'); if (q.length) u += '?' + q.join('&'); reportLastApp(ARCHIVE_H5, 'chengzhangdangan'); reportHostLocation(u);