diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html
index 534615f..1737f54 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
-
-
+
+
-
-
-
+
+
+
+
+
@@ -1719,10 +1719,18 @@
.qa-kw.c4{background:#FFF1DA;color:#D5871C}.qa-kw.c5{background:#E6F6EE;color:#2E9C6A}.qa-kw.c6{background:#FFEDE5;color:#E5683F}
.qa-rk{position:absolute;left:-5px;top:-5px;width:18px;height:18px;border-radius:50%;border:2px solid #fff;color:#fff;font-size:10.5px;font-weight:900;line-height:14px;font-style:italic}
.qa-rk.r1{background:linear-gradient(135deg,#F0453A,#FF8A3D)}.qa-rk.r2{background:linear-gradient(135deg,#FF8A2E,#FFC06E)}.qa-rk.r3{background:linear-gradient(135deg,#8D6BFF,#B9A3FF)}
- .qa-it.kw .qa-q{gap:9px;align-items:center}
- .qa-it.kw .qa-no,.qa-it.kw.t3 .qa-no{align-self:center;margin-top:0}
- .qa-it.kw .qa-bd,.qa-it.kw .qa-ch{align-self:flex-start}
- .qa-it.kw .qa-a{margin-left:103px}.qa-it.kw.t3 .qa-a{margin-left:113px}
+ .qa-it.kw .qa-q{gap:12px}
+ .qa-lc{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;width:48px}
+ .qa-lc .qa-no{width:auto;margin:0;line-height:1}
+ .qa-it.t3 .qa-lc .qa-no{width:auto;font-size:22px}
+ .qa-it.kw .qa-a,.qa-it.kw.t3 .qa-a{margin-left:72px}
+ /* 11-04 分类标签 / 本周热问 前的扁平图标 */
+ .qa-cat{display:inline-flex;align-items:center;gap:5px}
+ .qa-ci{width:14px;height:14px;flex:none;fill:#B49D97}
+ .qa-ci.c1{fill:#E0507A}.qa-ci.c2{fill:#6E5BD6}.qa-ci.c3{fill:#2F86C9}.qa-ci.c4{fill:#D5871C}.qa-ci.c5{fill:#2E9C6A}.qa-ci.c6{fill:#E5683F}.qa-ci.c0{fill:#FF7A59}
+ .qa-cat.on .qa-ci{fill:#fff}
+ .qa-sec b{display:inline-flex;align-items:center;gap:5px}
+ .qa-fi{width:17px;height:17px;fill:#FF5A36}
html.night .qa-rk{border-color:#2F2737}
.qa-it.open .qa-a{display:block}
.qa-it.hit{animation:qaHit 1.2s ease}
@@ -2572,17 +2580,17 @@
-
+
-
-
+
+
-
+
diff --git a/js/app.js b/js/app.js
index 1a2226b..c62ad7e 100644
--- a/js/app.js
+++ b/js/app.js
@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
- var VER = '26110289';
+ var VER = '26110290';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -5627,6 +5627,22 @@
'脐带绕颈怎么办?': '脐带绕颈', '什么时候开始休产假?': '休产假', '要不要请月嫂?怎么选?': '月嫂',
'宝宝衣物用品要买多少?': '宝宝衣物', '侧切、撕裂能避免吗?': '侧切', '催产怎么做?疼吗?': '催产'
};
+ const QA_IC = {
+ 全部: '',
+ 孕周: '',
+ 身体: '',
+ 准备: '',
+ 产检: '',
+ 宝宝: '',
+ 生活: '',
+ 营养: '',
+ 职场: '',
+ 花钱: '',
+ 心情: '',
+ 趣味: '',
+ 补剂: '',
+ 专题: ''
+ };
const QA_TC = { 身体: 'c1', 准备: 'c2', 产检: 'c3', 宝宝: 'c4', 生活: 'c5', 营养: 'c6', 职场: 'c2', 花钱: 'c6', 心情: 'c1', 趣味: 'c4', 补剂: 'c3', 专题: 'c5' };
$('#qaTopic').classList.add('hide');
const inBand = x => !!(band && x.st && x.st.indexOf(band) >= 0);
@@ -5641,7 +5657,9 @@
['全部'].concat(cats).forEach(c => {
const b = document.createElement('button');
b.type = 'button'; b.className = 'qa-cat'; b.dataset.cat = c;
- b.textContent = c === '__st' ? '⏳ 孕 ' + state.week + ' 周' : c === '全部' ? '✨ 全部' : (QA_EM[c] ? QA_EM[c] + ' ' : '') + c;
+ /* 11-04 用户:「标签前面的小图标全部扁平化」→ emoji 换成实心单色 SVG(QA_IC),颜色跟分类彩签同色,选中时变白 */
+ const ik = c === '__st' ? '孕周' : c;
+ b.innerHTML = (QA_IC[ik] ? '' : '') + (c === '__st' ? '孕 ' + state.week + ' 周' : c);
b.addEventListener('click', () => qaFilter(c));
cb.appendChild(b);
});
@@ -5650,7 +5668,7 @@
const sec = (t, d) => { const h = document.createElement('div'); h.className = 'qa-sec'; h.innerHTML = '' + t + '' + d + ''; L.appendChild(h); };
const snip = a => (a || '').replace(/\s+/g, ' ').trim();
order.forEach((x, i) => {
- if (i === 0) sec('🔥 本周热问', '看的人最多的 3 个问题');
+ if (i === 0) sec('本周热问', '看的人最多的 3 个问题');
if (i === 3) sec('全部问题', '点开就有答案');
const it = document.createElement('div');
it.className = 'qa-it' + (i < 3 ? ' t3 r' + (i + 1) : '');
@@ -5680,7 +5698,10 @@
const bd = QA_BD(i), g = document.createElement('span');
if (bd) { g.className = 'qa-bd ' + bd[1]; g.textContent = bd[0]; }
const ch = document.createElement('i'); ch.className = 'qa-ch'; ch.textContent = '›';
- h.appendChild(no); if (it._kw) h.appendChild(it._kw); h.appendChild(t); if (g.textContent) h.appendChild(g); h.appendChild(ch);
+ /* 11-04 用户:「序号在上、关键词块在下,右边放标题」→ 有关键词的条目左边是一竖列(序号 + 关键词块) */
+ if (it._kw) { const col = document.createElement('span'); col.className = 'qa-lc'; col.appendChild(no); col.appendChild(it._kw); h.appendChild(col); }
+ else h.appendChild(no);
+ h.appendChild(t); if (g.textContent) h.appendChild(g); h.appendChild(ch);
const a = document.createElement('div'); a.className = 'qa-a';
a.textContent = x.a || '';
/* 有专题页的条目(首页那 6 个)点了直接进专题页 */
diff --git a/js/gch/v4.js b/js/gch/v4.js
index d827725..b205702 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=26110289'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
+ else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110290'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
})();
diff --git a/js/gch/v6.js b/js/gch/v6.js
index 6f2e0f2..17725be 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=26110289';
+ var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110290';
document.head.appendChild(l);
- var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110289';
+ var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110290';
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.js b/js/kit.js
index 27c11b1..fc86a66 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 = '26110289';
+ var V = '26110290';
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');
@@ -150,7 +150,7 @@
}
var LV_JS = {
'topic/huafei/': ['算出养到 18 岁约 62.8 万', '算出头一年约 9.6 万', '算出养到 3 岁约 21.4 万', '算出养到 18 岁约 48.5 万'],
- 'topic/yuchanqi-js/': ['算出还有 96 天见面', '算出现在孕 23 周 + 4 天', '算出预产期在 3 月 12 日', '算出 NT 该在 下周做'],
+ 'topic/yuchanqi-js/': ['算出还有 96 天见面', '算出现在孕 23 周 + 4 天', '算出预产期在 3 月 12 日', '算出预产期在 4 月 20 日'],
'/taier-guzhong/': ['估出宝宝约 1.6 斤', '估出宝宝约 2.3 斤', '估出宝宝约 3.1 斤'],
'topic/zhichang/': ['算出产假能休 178 天(广东)', '算出产假能休 158 天(上海)', '算出产假能休 188 天(河南)', '算出产假能休 180 天(吉林)']
};
@@ -160,7 +160,8 @@
var id = (x.href.match(/[?&]id=(t\d+)/) || [])[1], r = (window.GC_RES || {})[id];
return r && r.length ? r.map(function (t) { return '测出「' + esc(t) + '」'; }) : null;
}
- if (x.c === 'qa') return ['刚看完这条', '正在看', '收藏了这条', '把这条转给了老公'];
+ /* 11-04 用户:「转给了老公」我们识别不到、是凭空编的 → 只写站内本来就有的动作(看、收藏、转发),不写对象 */
+ if (x.c === 'qa') return ['刚看完这条', '正在看', '收藏了这条', '转发了这条'];
var k = Object.keys(LV_JS).filter(function (h) { return x.href.indexOf(h) === 0; })[0];
return k ? LV_JS[k] : null;
}
diff --git a/topic/_shared/tools.js b/topic/_shared/tools.js
index 819740d..f29f18d 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=26110289').then(function (idx) {
+ getJSON('../_shared/idx.json?v=26110290').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=26110289').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
+ getJSON('../_shared/cm/' + SLUG + '.json?v=26110290').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
}
function extras(el) {