From f4ee7083099df953a50866910079673e594f5570 Mon Sep 17 00:00:00 2001 From: deploy Date: Wed, 4 Nov 2026 00:00:11 +0000 Subject: [PATCH] =?UTF-8?q?v26110277=20=E7=99=BE=E5=AE=9D=E7=AE=B1?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E3=80=8C=E5=A4=A7=E5=AE=B6=E9=83=BD=E5=9C=A8?= =?UTF-8?q?=E7=94=A8=E3=80=8D=EF=BC=8C=E4=B8=89=E4=B8=AA=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E5=92=8C6=E6=9D=A1=E5=90=88=E8=BF=9B=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E5=BC=A0=E9=9D=A2=E6=9D=BF?= 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 | 16 ++++++++-------- js/app.js | 2 +- js/gch/v4.js | 2 +- js/gch/v6.js | 4 ++-- js/kit.css | 9 ++++++++- js/kit.js | 10 +++++----- topic/_shared/tools.js | 4 ++-- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html index a0f6ba6..ac26304 100644 --- a/guangchang/ceshi/index.html +++ b/guangchang/ceshi/index.html @@ -320,8 +320,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
- - + + - - - + + + + + @@ -2559,17 +2559,17 @@ - + - - + + - + diff --git a/js/app.js b/js/app.js index 1240436..1fbab3a 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110276'; + var VER = '26110277'; 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 163f494..3395f16 100644 --- a/js/gch/v4.js +++ b/js/gch/v4.js @@ -231,5 +231,5 @@ } /* feed.js 首页默认不加载(index.html 只引了 topics.js),这里按需拉一次 */ if (window.GC_FEED) init(); - else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110276'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } + else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110277'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } })(); diff --git a/js/gch/v6.js b/js/gch/v6.js index 02f6a9d..1a52b2f 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=26110276'; + var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110277'; document.head.appendChild(l); - var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110276'; + var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110277'; s.onload = function () { if (sec.querySelector('.g4-foot')) merge(); else sec.addEventListener('gc4-ready', merge, { once: true }); }; /* v4 要先拉 feed.js 才渲染 */ document.body.appendChild(s); diff --git a/js/kit.css b/js/kit.css index 71f868d..51e49c2 100644 --- a/js/kit.css +++ b/js/kit.css @@ -41,7 +41,7 @@ html.night .kit-lh{border-color:rgba(255,255,255,.1)} /* 11-03 下方 6 条:一行一条(类型图标块 + 问题 + 类型·人数 + ›),和孕妈广场的名次+配图列表区分开(见 kit.js paint 注释) 11-03 用户:「这种排版还可以,就是有点乱」→ 6 张独立卡 + 彩色左边框 + 彩色胶囊 改成:一张白底卡里 6 行细分隔线; 颜色只留在左边图标块,下面一行统一灰字,右边只留一个浅灰 ›,问题尽量一行放下。 */ -.kit-rows{margin:12px 0 4px;padding:2px 14px;border-radius:18px;background:#fff;box-shadow:0 6px 18px -12px rgba(160,100,80,.4)} +.kit-rows{margin:6px 0 0;padding:0 6px} .kr{display:flex;align-items:center;gap:12px;padding:13px 0;text-decoration:none;color:inherit;border-bottom:1px solid #F5ECE8} .kr:last-child{border-bottom:0} .kr:active{opacity:.7} @@ -62,3 +62,10 @@ html.night .kit-lh{border-color:rgba(255,255,255,.1)} html.night .kit-rows{background:#2F2737;box-shadow:none} html.night .kr{border-color:#3C3345} html.night .kr-q{color:#F1E6EE} +/* 11-03 三个入口 + 6 条合成一张面板(去掉「大家都在用」标题) */ +.kit-pn{padding:7px 7px 2px;border-radius:22px;background:#fff;box-shadow:0 8px 22px -14px rgba(160,100,80,.45)} +.kit-pn .kit-rows .kr:first-child{border-top:1px solid #F5ECE8;margin-top:4px} +html.night .kit-pn{background:#2F2737;box-shadow:none} +html.night .kit-pn .kit-rows{background:none} +html.night .kit-pn .kit-rows .kr:first-child{border-top-color:#3C3345} +.kit-pn .kit-g{gap:7px} diff --git a/js/kit.js b/js/kit.js index d542ff5..f719a3b 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'), sec = document.getElementById('kitHome'); if (!box || !sec) return; - var V = '26110276'; + var V = '26110277'; 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'); @@ -28,16 +28,17 @@ /* ---------- 上:三个入口 ---------- */ var E = [ - { k: 'qz', n: '趣味小测试', d: '1 分钟出结果,测测你是哪种孕妈', c: '30 个测试', img: 'ceshi', u: '人测过' }, + { k: 'qz', n: '趣味小测试', d: '1 分钟测出你是哪种孕妈', c: '30 个测试', img: 'ceshi', u: '人测过' }, { k: 'qa', n: '孕期百问', d: '孕妈最常问的问题,一次看明白', c: '100 个问题', img: 'kepu', u: '人看过' }, { k: 'js', n: '孕期计算器', d: '花多少钱、休几天产假,算一算', c: '4 个计算器', img: 'jisuan', u: '人算过' } ]; - box.innerHTML = '

孕期百宝箱

测一测 · 查一查 · 算一算
' + + box.innerHTML = '

孕期百宝箱

测一测 · 查一查 · 算一算
' + E.map(function (x) { return ''; }).join('') + '
' + - '
大家都在用
'; + /* 11-03 用户:「『大家都在用』跟百宝箱像两块,割裂了」→ 去掉这个小标题和虚线,三个入口 + 6 条装进同一张白底面板(.kit-pn),一眼看出是百宝箱里的内容 */ + '
'; sec.classList.remove('hide'); function setCnt(k, t) { var e = box.querySelector('.e-' + k + ' em'); if (e) e.firstChild.nodeValue = t; } function setNum(k, n) { var e = box.querySelector('.e-' + k + ' .kit-n i'); if (e && n) e.textContent = wanX(n); } @@ -102,7 +103,6 @@ function paint() { nums(); var d = rows(), L = box.querySelector('.kit-list'); - box.querySelector('.kit-wk').textContent = d.wk ? '孕 ' + d.wk + ' 周' : ''; /* 11-03 用户:「这 6 条跟下面孕妈广场那 6 条太像,换个形式」→(便签墙试过,用户要回到一行一条的排列,只换样式) 一行一条,但不用名次数字和配图:左边按类型的彩色图标块(测试紫 / 百问绿 / 计算器橙),中间问题 + 类型·人数,右边 ›(11-03 用户嫌乱,样式收成一张白卡,见 kit.css)。 */ L.className = 'kit-list kit-rows'; diff --git a/topic/_shared/tools.js b/topic/_shared/tools.js index 2f28a0d..b8229de 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=26110276').then(function (idx) { + getJSON('../_shared/idx.json?v=26110277').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=26110276').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); + getJSON('../_shared/cm/' + SLUG + '.json?v=26110277').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); } function extras(el) {