档案 Tab 改跳孕期档案 H5(chengzhang-dangan/v5)
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:26100143 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
<!-- V:26100144 缓存版本标记:改 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 第四节) -->
|
||||||
|
|||||||
10
js/app.js
10
js/app.js
@@ -3,7 +3,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||||
var VER = '26100143';
|
var VER = '26100144';
|
||||||
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));
|
||||||
|
|
||||||
@@ -265,15 +265,19 @@
|
|||||||
}
|
}
|
||||||
/* ② 后退重载:脚本会重跑,init() 里调;① bfcache:整页不重载,挂在文件末尾已有的 pageshow 上 */
|
/* ② 后退重载:脚本会重跑,init() 里调;① bfcache:整页不重载,挂在文件末尾已有的 pageshow 上 */
|
||||||
|
|
||||||
|
/* 2026-10-01 用户要求「档案」Tab 改跳孕期档案 H5(会话 19875b1b 提供)。
|
||||||
|
⚠️ 对方说明:目前是设计演示版(写死演示数据),还不读 URL 参数;接真实数据时按 ?openid=&unionid= 读,
|
||||||
|
所以这里照旧拼上。无 return_url,返回靠宿主自带返回。原来跳的是 /chanjian-rili/(孕检日历)。 */
|
||||||
|
const ARCHIVE_H5 = 'https://taidong.douba.top/chengzhang-dangan/v5/';
|
||||||
function goArchiveH5() {
|
function goArchiveH5() {
|
||||||
const oid = hashParam('openid');
|
const oid = hashParam('openid');
|
||||||
const uid = hashParam('unionid');
|
const uid = hashParam('unionid');
|
||||||
let u = 'https://mp.yizhezhe.com/chanjian-rili/';
|
let u = ARCHIVE_H5;
|
||||||
const q = [];
|
const q = [];
|
||||||
if (oid) q.push('openid=' + encodeURIComponent(oid));
|
if (oid) q.push('openid=' + encodeURIComponent(oid));
|
||||||
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
||||||
if (q.length) u += '?' + q.join('&');
|
if (q.length) u += '?' + q.join('&');
|
||||||
reportLastApp('https://mp.yizhezhe.com/chanjian-rili/', 'chanjianrili');
|
reportLastApp(ARCHIVE_H5, 'chengzhangdangan');
|
||||||
reportHostLocation(u);
|
reportHostLocation(u);
|
||||||
location.href = u;
|
location.href = u;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user