预览站档案入口一律带 demo=1 显示示例档案 (v26100459)
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="mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<title>兜爸心选 · 孕育陪伴</title>
|
<title>兜爸心选 · 孕育陪伴</title>
|
||||||
<!-- V:26100458 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
<!-- V:26100459 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||||
<link rel="stylesheet" href="mama-box.css">
|
<link rel="stylesheet" href="mama-box.css">
|
||||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||||
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||||
var VER = '26100458';
|
var VER = '26100459';
|
||||||
const $ = (s, c) => (c || document).querySelector(s);
|
const $ = (s, c) => (c || document).querySelector(s);
|
||||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||||
|
|
||||||
@@ -289,8 +289,9 @@
|
|||||||
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
||||||
/* 2026-10-05 成长档案会话(19875b1b)要求带 return_url:档案页左上角返回键回到这里(它只收 https:// 或 / 开头,要编码)。 */
|
/* 2026-10-05 成长档案会话(19875b1b)要求带 return_url:档案页左上角返回键回到这里(它只收 https:// 或 / 开头,要编码)。 */
|
||||||
q.push('return_url=' + encodeURIComponent(location.href));
|
q.push('return_url=' + encodeURIComponent(location.href));
|
||||||
/* demo=1 只在本页「示例模式」(预览路径 + 显式 demo=1)才带;正常入口绝不带 —— 档案页带了会忽略用户自己的数据(对方明确要求)。 */
|
/* demo=1:**预览路径一律带**(2026-10-05 用户:「档案页里的示例数据没有了」—— 预览是给人看效果的,要看到档案自己的示例,含 40 周旅程图);
|
||||||
if (DEMO) q.push('demo=1');
|
正式首页 /mama-box/ 永远不带 —— 档案页带了会忽略用户自己的数据(成长档案会话 19875b1b 明确要求正式入口不带)。 */
|
||||||
|
if (location.pathname.indexOf('/mama-box-preview/') === 0) q.push('demo=1');
|
||||||
if (q.length) u += '?' + q.join('&');
|
if (q.length) u += '?' + q.join('&');
|
||||||
reportLastApp(ARCHIVE_H5, 'chengzhangdangan');
|
reportLastApp(ARCHIVE_H5, 'chengzhangdangan');
|
||||||
reportHostLocation(u);
|
reportHostLocation(u);
|
||||||
|
|||||||
Reference in New Issue
Block a user