档案 Tab 改跳孕期档案 H5(chengzhang-dangan/v5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
10
js/app.js
10
js/app.js
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26100143';
|
||||
var VER = '26100144';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -265,15 +265,19 @@
|
||||
}
|
||||
/* ② 后退重载:脚本会重跑,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() {
|
||||
const oid = hashParam('openid');
|
||||
const uid = hashParam('unionid');
|
||||
let u = 'https://mp.yizhezhe.com/chanjian-rili/';
|
||||
let u = ARCHIVE_H5;
|
||||
const q = [];
|
||||
if (oid) q.push('openid=' + encodeURIComponent(oid));
|
||||
if (uid) q.push('unionid=' + encodeURIComponent(uid));
|
||||
if (q.length) u += '?' + q.join('&');
|
||||
reportLastApp('https://mp.yizhezhe.com/chanjian-rili/', 'chanjianrili');
|
||||
reportLastApp(ARCHIVE_H5, 'chengzhangdangan');
|
||||
reportHostLocation(u);
|
||||
location.href = u;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user