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

@@ -72,6 +72,7 @@ button{cursor:pointer}
.foot{margin:14px 20px 0;font-size:12px;color:var(--m);text-align:center;line-height:1.6}
</style>
<link rel="stylesheet" href="../_shared/wizard.css?v=26110464">
<script src="../../js/host-nav.js?v=26110903"></script>
</head>
<body>
<svg style="position:absolute;width:0;height:0" aria-hidden="true"><symbol id="i-back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol></svg>
@@ -113,6 +114,7 @@ button{cursor:pointer}
var $ = function (s) { return document.querySelector(s); };
var sc = $('#scroll'), KEY = 'mmbox.edd.calc', DAY = 864e5;
$('#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;
});