测试列表滚动小条+每测一张配图、首页广场入口条/关注列表去红去头像、卡堆5秒自动轮播、百宝箱三入口顶栏标题、返回首页(v26110410)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-04 07:14:03 +00:00
parent c460b8337a
commit 4aa7a01ecd
54 changed files with 150 additions and 78 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26110409';
var VER = '26110410';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -1167,6 +1167,7 @@
function closePanel() {
const el = panelStack.pop();
if (el) el.classList.remove('show');
if (el && el.dataset.t0 != null) { document.title = el.dataset.t0; delete el.dataset.t0; } /* 百宝箱进来的百问:关掉还原顶栏标题 */
}
function closeAllPanels() { while (panelStack.length) closePanel(); }
$$('[data-open]').forEach(b => b.addEventListener('click', () => openPanel(b.dataset.open, b)));
@@ -5744,7 +5745,11 @@
(function () {
const all = $('#msAll'); if (all) all.addEventListener('click', () => loadQA().then(() => openQA())); /* 11-02 合并版里原模块可能没渲染过,先确保问题库到手 */
/* 11-03 首页「孕期百问」入口(js/kit.js)打开同一个全部问题页,标题换成「孕期百问」 */
window.__mbOpenQA = t => loadQA().then(() => { openQA(); if (t) $('#qaTitle').textContent = t; });
/* 11-04 用户:从孕期百宝箱进百问,小程序最上边(取 document.title)也要是「孕期百宝箱」,关掉还原 */
window.__mbOpenQA = t => loadQA().then(() => {
openQA(); if (t) $('#qaTitle').textContent = t;
const d = $('#detailQA'); if (t === '孕期百问' && d && d.dataset.t0 == null) { d.dataset.t0 = document.title; document.title = '孕期百宝箱'; }
});
const tp = $('#qaTips'); if (tp) tp.addEventListener('click', () => openTips());
})();
/* 首页四个入口 → 详情页,滚到对应那张卡并闪一下 */