diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html
index 37ea46f..f88701a 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,8 +1719,10 @@
.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:12px}
- .qa-it.kw .qa-a,.qa-it.kw.t3 .qa-a{margin-left:72px}
+ .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}
html.night .qa-rk{border-color:#2F2737}
.qa-it.open .qa-a{display:block}
.qa-it.hit{animation:qaHit 1.2s ease}
@@ -2570,17 +2572,17 @@
-
+
-
-
+
+
-
+
diff --git a/js/app.js b/js/app.js
index 566af85..5ab8fe4 100644
--- a/js/app.js
+++ b/js/app.js
@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
- var VER = '26110287';
+ var VER = '26110288';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -5614,7 +5614,18 @@
const QA_KW = {
'生娃计算器,到底要花多少钱?': '生娃花费', '大排畸什么时候做?能看出什么?': '大排畸', '糖耐怎么做?没过怎么办?': '糖耐',
'四维彩超有必要做吗?': '四维彩超', '胎动多少算正常?怎么数?': '数胎动', '妊娠期糖尿病要紧吗?怎么控糖?': '孕期控糖',
- '肚子发紧是宫缩吗?': '宫缩', 'B 超说宝宝偏大或偏小,怎么办?': '胎儿大小', '孕期腿抽筋怎么办?': '抽筋', '糖耐前一天怎么吃?': '糖耐饮食'
+ '肚子发紧是宫缩吗?': '宫缩', 'B 超说宝宝偏大或偏小,怎么办?': '胎儿大小', '孕期腿抽筋怎么办?': '抽筋', '糖耐前一天怎么吃?': '糖耐饮食',
+ /* 11-04 用户:「效果可以,随机再放到 40 个,序号也要留着」→ 另随机 30 条(seed 1104),其余 60 条只显示序号 */
+ '孕期营养影响孩子智商吗?': '营养智商', '怀孕后什么时候去医院建档?': '建档', '孕期体重长多少合适?': '孕期体重',
+ '怀孕了还能养猫、养狗吗?': '养宠物', '孕期能坐飞机、出远门吗?': '出远门', '孕吐什么时候能结束?': '孕吐',
+ '生育津贴怎么领?能领多少?': '生育津贴', 'NT 检查查什么?要注意什么?': 'NT', '孕期水肿正常吗?怎么消?': '水肿',
+ '孕期腰酸背痛怎么缓解?': '腰酸背痛', '孕期能吃螃蟹、海鲜吗?': '海鲜', '产假有多少天?怎么休更合适?': '产假',
+ '孕期能开空调、用电热毯吗?': '空调', '孕期还能开车吗?': '开车', '孕期能泡澡、泡温泉吗?': '泡澡',
+ '胎位不正怎么办?': '胎位', '到了预产期还没动静怎么办?': '过预产期', '临产有哪些信号?什么时候去医院?': '临产信号',
+ '孕早期见红是要流产吗?': '见红', '不知道怀孕时吃了药、喝了酒怎么办?': '误吃药', '宫外孕有什么信号?': '宫外孕',
+ '早孕反应突然消失要紧吗?': '反应消失', '怀了双胞胎要注意什么?': '双胞胎', '孕期一定要左侧睡吗?': '睡姿',
+ '脐带绕颈怎么办?': '脐带绕颈', '什么时候开始休产假?': '休产假', '要不要请月嫂?怎么选?': '月嫂',
+ '宝宝衣物用品要买多少?': '宝宝衣物', '侧切、撕裂能避免吗?': '侧切', '催产怎么做?疼吗?': '催产'
};
const QA_TC = { 身体: 'c1', 准备: 'c2', 产检: 'c3', 宝宝: 'c4', 生活: 'c5', 营养: 'c6', 职场: 'c2', 花钱: 'c6', 心情: 'c1', 趣味: 'c4', 补剂: 'c3', 专题: 'c5' };
$('#qaTopic').classList.add('hide');
@@ -5648,12 +5659,14 @@
const h = document.createElement('button'); h.type = 'button'; h.className = 'qa-q';
const no = document.createElement('i'); no.className = 'qa-no'; no.textContent = i < 9 ? '0' + (i + 1) : i + 1;
/* 11-04 用户:「全是字,从标题里提炼 2~4 个核心字做成前面的小图标,扫一眼就知道讲啥」→ 先做孕 26 周前 10 条看效果(QA_KW),
- 有关键词的条目把序号换成关键词方块(底色 / 字色跟分类彩签同色系),前 3 条右上角带名次小圆点;没配关键词的照旧显示序号 */
+ 有关键词的条目在序号后面加关键词方块(底色 / 字色跟分类彩签同色系);没配关键词的只有序号 */
const kw = QA_KW[x.q];
if (kw) {
it.classList.add('kw');
- no.className = 'qa-kw ' + (QA_TC[x.tag] || 'c5') + ' n' + kw.length;
- no.innerHTML = '' + (kw.length === 4 ? kw.slice(0, 2) + '
' + kw.slice(2) : kw) + '' + (i < 3 ? '' + (i + 1) + '' : '');
+ const kt = document.createElement('i');
+ kt.className = 'qa-kw ' + (QA_TC[x.tag] || 'c5') + ' n' + kw.length;
+ kt.innerHTML = '' + (kw.length === 4 ? kw.slice(0, 2) + '
' + kw.slice(2) : kw) + '';
+ it._kw = kt; /* 序号照留(11-04 用户要求),关键词方块排在序号后面 */
}
const t = document.createElement('span'); t.className = 'qa-m';
const tq = document.createElement('span'); tq.className = 'qa-tx'; tq.textContent = x.q; t.appendChild(tq);
@@ -5667,7 +5680,7 @@
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); h.appendChild(t); if (g.textContent) h.appendChild(g); h.appendChild(ch);
+ h.appendChild(no); if (it._kw) h.appendChild(it._kw); 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 5eed656..05d81fe 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=26110287'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
+ else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110288'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
})();
diff --git a/js/gch/v6.js b/js/gch/v6.js
index 8b64003..e994f4b 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=26110287';
+ var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110288';
document.head.appendChild(l);
- var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110287';
+ var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110288';
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 d276df7..df37c42 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 = '26110287';
+ var V = '26110288';
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 5cb33b3..3751788 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=26110287').then(function (idx) {
+ getJSON('../_shared/idx.json?v=26110288').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=26110287').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
+ getJSON('../_shared/cm/' + SLUG + '.json?v=26110288').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
}
function extras(el) {