v26110903 补:12 个独立专题页、测一测页接 host-nav(容器页返回走 navigateBack),广场打开测试开容器页

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-09 14:08:20 +00:00
parent 7cc154d9b3
commit fbc5c4193e
14 changed files with 31 additions and 4 deletions

View File

@@ -205,6 +205,7 @@ html.cm:not(.cm-all) .cm-more{display:flex;align-items:center;justify-content:ce
<!-- 11-04 计算器模式(calc=1)走分步:一步一题、最后出结果,见 ../_shared/wizard.js -->
<link rel="stylesheet" href="../_shared/wizard.css?v=26110464">
<script src="../_shared/wizard.js?v=26110464"></script>
<script src="../../js/host-nav.js?v=26110903"></script>
</head>
<body>
<svg class="hide" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
@@ -410,6 +411,7 @@ html.cm:not(.cm-all) .cm-more{display:flex;align-items:center;justify-content:ce
/* 返回:从首页点进来就 back;直接打开(分享 / 刷新)就回同目录的首页,身份原样带回 */
$('#back').addEventListener('click', function () {
if (window.MBHost && MBHost.back(function () { location.href = '../../' + location.search + location.hash; })) return; /* 11-09 容器页:回小程序上一页 */
if (document.referrer && document.referrer.indexOf(location.host) >= 0 && history.length > 1) history.back();
else location.href = '../../' + location.search + location.hash;
});