From 07f8227357a92ef93d1cca35cbf292328b2df022 Mon Sep 17 00:00:00 2001 From: deploy Date: Tue, 3 Nov 2026 13:53:38 +0000 Subject: [PATCH] =?UTF-8?q?v26110260=20=E9=A2=84=E8=A7=88=EF=BC=9A?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AD=95=E5=A6=88=E5=B9=BF=E5=9C=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=8E=BB=E6=8E=89=E4=B8=A4=E5=BC=A0=E6=B5=8B=E4=B8=80?= =?UTF-8?q?=E6=B5=8B=E5=8D=A1=EF=BC=88=E7=99=BE=E5=AE=9D=E7=AE=B1=E5=B7=B2?= =?UTF-8?q?=E6=9C=89=E5=85=A5=E5=8F=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- guangchang/ceshi/index.html | 4 ++-- guangchang/index.html | 10 +++++----- guangchang/mine/index.html | 2 +- index.html | 12 ++++++------ js/app.js | 2 +- js/gch/v4.js | 2 +- js/gch/v6.js | 7 ++++--- js/kit.js | 2 +- topic/_shared/tools.js | 4 ++-- 9 files changed, 23 insertions(+), 22 deletions(-) diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html index b52db7e..25a3d75 100644 --- a/guangchang/ceshi/index.html +++ b/guangchang/ceshi/index.html @@ -367,8 +367,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
- - + + - - - + + + + + - + - + - + diff --git a/js/app.js b/js/app.js index ea47236..f504b63 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110259'; + var VER = '26110260'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); diff --git a/js/gch/v4.js b/js/gch/v4.js index eaaf93c..212e675 100644 --- a/js/gch/v4.js +++ b/js/gch/v4.js @@ -236,5 +236,5 @@ } /* feed.js 首页默认不加载(index.html 只引了 topics.js),这里按需拉一次 */ if (window.GC_FEED) init(); - else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110259'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } + else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110260'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } })(); diff --git a/js/gch/v6.js b/js/gch/v6.js index 3d02d5b..0b57ff7 100644 --- a/js/gch/v6.js +++ b/js/gch/v6.js @@ -6,9 +6,9 @@ (function () { var sec = document.getElementById('gcHome'); if (!sec) return; - var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110259'; + var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110260'; document.head.appendChild(l); - var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110259'; + var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110260'; s.onload = function () { if (sec.querySelector('.g4-foot')) merge(); else sec.addEventListener('gc4-ready', merge, { once: true }); }; /* v4 要先拉 feed.js 才渲染 */ document.body.appendChild(s); @@ -68,7 +68,8 @@ /* 11-02 用户:「太多了,只放两个测一测」→ 3 个小列表撤掉(topic/yali、yinshi、zhunbei 页面保留,先不挂入口); 位置从卡堆下面挪到「其他妈妈也在搜」下面 */ sec.insertBefore(box, foot); - sec.insertBefore(qz, foot); + /* 11-03 用户:首页「孕期百宝箱」已有「趣味小测试」入口 → 这里两张测一测卡不要了(加 ?qzcard=1 还能看回) */ + if (/[?&]qzcard=1(?:&|$)/.test(location.search)) sec.insertBefore(qz, foot); var list = box.querySelector('.g6-list'), all = box.querySelector('.g6-all'); var tot = (window.__mbPulse && window.__mbPulse.total && +window.__mbPulse.total.value) || 1510000; /* 11-02 按孕周出题:挑题逻辑在 app.js(window.__mbQaPick:第 1 条固定生娃计算器 + 本孕周段 4 条 + 通用 1 条),孕期数据到了(mb-preg)再刷一次 */ diff --git a/js/kit.js b/js/kit.js index 5a0de01..f60a8e7 100644 --- a/js/kit.js +++ b/js/kit.js @@ -9,7 +9,7 @@ if (/[?&]kit=0(?:&|$)/.test(location.search)) return; var box = document.getElementById('kit'); if (!box) return; - var V = '26110259'; + var V = '26110260'; var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/kit.css?v=' + V; document.head.appendChild(l); document.documentElement.classList.add('has-kit'); diff --git a/topic/_shared/tools.js b/topic/_shared/tools.js index 47fe323..3274eb5 100644 --- a/topic/_shared/tools.js +++ b/topic/_shared/tools.js @@ -68,7 +68,7 @@ function getJSON(u) { return fetch(u, { cache: 'no-cache' }).then(function (r) { if (!r.ok) throw r.status; return r.json(); }); } function related(box) { - getJSON('../_shared/idx.json?v=26110259').then(function (idx) { + getJSON('../_shared/idx.json?v=26110260').then(function (idx) { var me = null; idx.forEach(function (x) { if (x[0] === SLUG) me = x; }); var tag = me ? me[2] : '', h = 0; for (var i = 0; i < SLUG.length; i++) h = (h * 31 + SLUG.charCodeAt(i)) >>> 0; var rest = idx.filter(function (x) { return x[0] !== SLUG; }); @@ -175,7 +175,7 @@ } fetch(API + '/comments?kind=topic&target=' + encodeURIComponent(SLUG) + (OID ? '&openid=' + encodeURIComponent(OID) : '')) .then(function (r) { return r.json(); }).then(function (j) { if (j && j.code === 200) { RC = j.result; paint(); } }).catch(function () {}); - getJSON('../_shared/cm/' + SLUG + '.json?v=26110259').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); + getJSON('../_shared/cm/' + SLUG + '.json?v=26110260').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); } function extras(el) {