diff --git a/assets/kw/k00.webp b/assets/kw/k00.webp new file mode 100644 index 0000000..cf51be6 Binary files /dev/null and b/assets/kw/k00.webp differ diff --git a/assets/kw/k01.webp b/assets/kw/k01.webp new file mode 100644 index 0000000..7b76335 Binary files /dev/null and b/assets/kw/k01.webp differ diff --git a/assets/kw/k02.webp b/assets/kw/k02.webp new file mode 100644 index 0000000..0f51f35 Binary files /dev/null and b/assets/kw/k02.webp differ diff --git a/assets/kw/k03.webp b/assets/kw/k03.webp new file mode 100644 index 0000000..5365670 Binary files /dev/null and b/assets/kw/k03.webp differ diff --git a/assets/kw/k04.webp b/assets/kw/k04.webp new file mode 100644 index 0000000..748f43c Binary files /dev/null and b/assets/kw/k04.webp differ diff --git a/assets/kw/k05.webp b/assets/kw/k05.webp new file mode 100644 index 0000000..0bcf2e1 Binary files /dev/null and b/assets/kw/k05.webp differ diff --git a/assets/kw/k06.webp b/assets/kw/k06.webp new file mode 100644 index 0000000..4591865 Binary files /dev/null and b/assets/kw/k06.webp differ diff --git a/assets/kw/k07.webp b/assets/kw/k07.webp new file mode 100644 index 0000000..66a2e1c Binary files /dev/null and b/assets/kw/k07.webp differ diff --git a/assets/kw/k08.webp b/assets/kw/k08.webp new file mode 100644 index 0000000..d7abd89 Binary files /dev/null and b/assets/kw/k08.webp differ diff --git a/assets/kw/k09.webp b/assets/kw/k09.webp new file mode 100644 index 0000000..c7b56fb Binary files /dev/null and b/assets/kw/k09.webp differ diff --git a/assets/kw/k10.webp b/assets/kw/k10.webp new file mode 100644 index 0000000..07a9b70 Binary files /dev/null and b/assets/kw/k10.webp differ diff --git a/assets/kw/k11.webp b/assets/kw/k11.webp new file mode 100644 index 0000000..1b0dc5a Binary files /dev/null and b/assets/kw/k11.webp differ diff --git a/assets/kw/k12.webp b/assets/kw/k12.webp new file mode 100644 index 0000000..796dfb7 Binary files /dev/null and b/assets/kw/k12.webp differ diff --git a/assets/kw/k13.webp b/assets/kw/k13.webp new file mode 100644 index 0000000..c6c2d1b Binary files /dev/null and b/assets/kw/k13.webp differ diff --git a/assets/kw/k14.webp b/assets/kw/k14.webp new file mode 100644 index 0000000..89b084a Binary files /dev/null and b/assets/kw/k14.webp differ diff --git a/assets/kw/k15.webp b/assets/kw/k15.webp new file mode 100644 index 0000000..694e745 Binary files /dev/null and b/assets/kw/k15.webp differ diff --git a/assets/kw/k16.webp b/assets/kw/k16.webp new file mode 100644 index 0000000..52839c0 Binary files /dev/null and b/assets/kw/k16.webp differ diff --git a/assets/kw/k17.webp b/assets/kw/k17.webp new file mode 100644 index 0000000..1256252 Binary files /dev/null and b/assets/kw/k17.webp differ diff --git a/assets/kw/k18.webp b/assets/kw/k18.webp new file mode 100644 index 0000000..990e7c0 Binary files /dev/null and b/assets/kw/k18.webp differ diff --git a/assets/kw/k19.webp b/assets/kw/k19.webp new file mode 100644 index 0000000..1420cf5 Binary files /dev/null and b/assets/kw/k19.webp differ diff --git a/assets/kw/k20.webp b/assets/kw/k20.webp new file mode 100644 index 0000000..f0b0c26 Binary files /dev/null and b/assets/kw/k20.webp differ diff --git a/assets/kw/k21.webp b/assets/kw/k21.webp new file mode 100644 index 0000000..2070b5d Binary files /dev/null and b/assets/kw/k21.webp differ diff --git a/assets/kw/k22.webp b/assets/kw/k22.webp new file mode 100644 index 0000000..b0b7ab9 Binary files /dev/null and b/assets/kw/k22.webp differ diff --git a/assets/kw/k23.webp b/assets/kw/k23.webp new file mode 100644 index 0000000..d9e0fce Binary files /dev/null and b/assets/kw/k23.webp differ diff --git a/assets/kw/k24.webp b/assets/kw/k24.webp new file mode 100644 index 0000000..98aec4e Binary files /dev/null and b/assets/kw/k24.webp differ diff --git a/assets/kw/k25.webp b/assets/kw/k25.webp new file mode 100644 index 0000000..eb1d35b Binary files /dev/null and b/assets/kw/k25.webp differ diff --git a/assets/kw/k26.webp b/assets/kw/k26.webp new file mode 100644 index 0000000..517562c Binary files /dev/null and b/assets/kw/k26.webp differ diff --git a/assets/kw/k27.webp b/assets/kw/k27.webp new file mode 100644 index 0000000..43302f3 Binary files /dev/null and b/assets/kw/k27.webp differ diff --git a/assets/kw/k28.webp b/assets/kw/k28.webp new file mode 100644 index 0000000..39688e6 Binary files /dev/null and b/assets/kw/k28.webp differ diff --git a/assets/kw/k29.webp b/assets/kw/k29.webp new file mode 100644 index 0000000..7744486 Binary files /dev/null and b/assets/kw/k29.webp differ diff --git a/assets/kw/k30.webp b/assets/kw/k30.webp new file mode 100644 index 0000000..bf06980 Binary files /dev/null and b/assets/kw/k30.webp differ diff --git a/assets/kw/k31.webp b/assets/kw/k31.webp new file mode 100644 index 0000000..00b1702 Binary files /dev/null and b/assets/kw/k31.webp differ diff --git a/assets/kw/k32.webp b/assets/kw/k32.webp new file mode 100644 index 0000000..d394b74 Binary files /dev/null and b/assets/kw/k32.webp differ diff --git a/assets/kw/k33.webp b/assets/kw/k33.webp new file mode 100644 index 0000000..9b2a3b0 Binary files /dev/null and b/assets/kw/k33.webp differ diff --git a/assets/kw/k34.webp b/assets/kw/k34.webp new file mode 100644 index 0000000..abb34b1 Binary files /dev/null and b/assets/kw/k34.webp differ diff --git a/assets/kw/k35.webp b/assets/kw/k35.webp new file mode 100644 index 0000000..e50bdcf Binary files /dev/null and b/assets/kw/k35.webp differ diff --git a/assets/kw/k36.webp b/assets/kw/k36.webp new file mode 100644 index 0000000..575dda8 Binary files /dev/null and b/assets/kw/k36.webp differ diff --git a/assets/kw/k37.webp b/assets/kw/k37.webp new file mode 100644 index 0000000..e681e20 Binary files /dev/null and b/assets/kw/k37.webp differ diff --git a/assets/kw/k38.webp b/assets/kw/k38.webp new file mode 100644 index 0000000..20f9248 Binary files /dev/null and b/assets/kw/k38.webp differ diff --git a/assets/kw/k39.webp b/assets/kw/k39.webp new file mode 100644 index 0000000..b18bad5 Binary files /dev/null and b/assets/kw/k39.webp differ diff --git a/assets/kw/k40.webp b/assets/kw/k40.webp new file mode 100644 index 0000000..0ff5579 Binary files /dev/null and b/assets/kw/k40.webp differ diff --git a/assets/kw/k41.webp b/assets/kw/k41.webp new file mode 100644 index 0000000..331715c Binary files /dev/null and b/assets/kw/k41.webp differ diff --git a/assets/kw/k42.webp b/assets/kw/k42.webp new file mode 100644 index 0000000..ca6312c Binary files /dev/null and b/assets/kw/k42.webp differ diff --git a/assets/kw/k43.webp b/assets/kw/k43.webp new file mode 100644 index 0000000..11db900 Binary files /dev/null and b/assets/kw/k43.webp differ diff --git a/assets/kw/k44.webp b/assets/kw/k44.webp new file mode 100644 index 0000000..db37445 Binary files /dev/null and b/assets/kw/k44.webp differ diff --git a/assets/kw/k45.webp b/assets/kw/k45.webp new file mode 100644 index 0000000..1779712 Binary files /dev/null and b/assets/kw/k45.webp differ diff --git a/assets/kw/k46.webp b/assets/kw/k46.webp new file mode 100644 index 0000000..4fac5ae Binary files /dev/null and b/assets/kw/k46.webp differ diff --git a/assets/kw/k47.webp b/assets/kw/k47.webp new file mode 100644 index 0000000..07875b1 Binary files /dev/null and b/assets/kw/k47.webp differ diff --git a/assets/kw/k48.webp b/assets/kw/k48.webp new file mode 100644 index 0000000..d97cfa2 Binary files /dev/null and b/assets/kw/k48.webp differ diff --git a/assets/kw/k49.webp b/assets/kw/k49.webp new file mode 100644 index 0000000..34b3376 Binary files /dev/null and b/assets/kw/k49.webp differ diff --git a/assets/kw/k50.webp b/assets/kw/k50.webp new file mode 100644 index 0000000..cfb904b Binary files /dev/null and b/assets/kw/k50.webp differ diff --git a/assets/kw/k51.webp b/assets/kw/k51.webp new file mode 100644 index 0000000..80caeaa Binary files /dev/null and b/assets/kw/k51.webp differ diff --git a/assets/kw/k52.webp b/assets/kw/k52.webp new file mode 100644 index 0000000..afcdd3a Binary files /dev/null and b/assets/kw/k52.webp differ diff --git a/assets/kw/k53.webp b/assets/kw/k53.webp new file mode 100644 index 0000000..343e77e Binary files /dev/null and b/assets/kw/k53.webp differ diff --git a/assets/kw/k54.webp b/assets/kw/k54.webp new file mode 100644 index 0000000..151c78f Binary files /dev/null and b/assets/kw/k54.webp differ diff --git a/assets/kw/k55.webp b/assets/kw/k55.webp new file mode 100644 index 0000000..581fe06 Binary files /dev/null and b/assets/kw/k55.webp differ diff --git a/assets/kw/k56.webp b/assets/kw/k56.webp new file mode 100644 index 0000000..509cad9 Binary files /dev/null and b/assets/kw/k56.webp differ diff --git a/assets/kw/k57.webp b/assets/kw/k57.webp new file mode 100644 index 0000000..6405697 Binary files /dev/null and b/assets/kw/k57.webp differ diff --git a/assets/kw/k58.webp b/assets/kw/k58.webp new file mode 100644 index 0000000..cb535ac Binary files /dev/null and b/assets/kw/k58.webp differ diff --git a/assets/kw/k59.webp b/assets/kw/k59.webp new file mode 100644 index 0000000..8228186 Binary files /dev/null and b/assets/kw/k59.webp differ diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html index 38291c0..644a476 100644 --- a/guangchang/ceshi/index.html +++ b/guangchang/ceshi/index.html @@ -320,9 +320,9 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
- - - + + + - - - - + + + + + + @@ -1724,6 +1724,12 @@ .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} + .qa-list .qa-q{gap:12px} + .qa-list .qa-a,.qa-list .qa-it.t3 .qa-a{margin-left:72px} + .qa-lc .qa-no{margin-top:2px} + .qa-kw.ph{background-size:cover;background-position:center;color:#fff;box-shadow:0 3px 8px -3px rgba(60,30,30,.35)} + .qa-kw.ph::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(160deg,rgba(40,20,20,.18),rgba(30,15,15,.58))} + .qa-kw.ph span{position:relative;text-shadow:0 1px 3px rgba(0,0,0,.45)} /* 11-04 分类标签 / 本周热问 前的扁平图标 */ .qa-cat{display:inline-flex;align-items:center;gap:5px} .qa-ci{width:14px;height:14px;flex:none;fill:#B49D97} @@ -2580,17 +2586,17 @@ - + - - + + - + diff --git a/js/app.js b/js/app.js index 0bf68bc..85517be 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110296'; + var VER = '26110297'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -5635,6 +5635,8 @@ '尿频、乳房胀痛正常吗?': '尿频', '孕晚期喘不上气、睡不好怎么办?': '喘不上气', '孕期情绪低落、焦虑怎么办?': '孕期焦虑', '孕期感冒发烧能吃药吗?': '感冒发烧', '建档要带什么、查什么?': '建档材料' }; + /* 11-04 用户:「核心词方块的背景每个配一张小图(风景什么的都行)」→ assets/kw/kNN.webp(120×120,取自广场 Burst 免费商用图库,尽量贴题),文字白色压暗色蒙层 */ + const QA_KP = {"生娃花费":"k00.webp","大排畸":"k01.webp","糖耐":"k02.webp","四维彩超":"k03.webp","数胎动":"k04.webp","孕期控糖":"k05.webp","宫缩":"k06.webp","胎儿大小":"k07.webp","抽筋":"k08.webp","糖耐饮食":"k09.webp","营养智商":"k10.webp","建档":"k11.webp","孕期体重":"k12.webp","养宠物":"k13.webp","出远门":"k14.webp","孕吐":"k15.webp","生育津贴":"k16.webp","NT":"k17.webp","水肿":"k18.webp","腰酸背痛":"k19.webp","海鲜":"k20.webp","产假":"k21.webp","空调":"k22.webp","开车":"k23.webp","泡澡":"k24.webp","胎位":"k25.webp","过预产期":"k26.webp","临产信号":"k27.webp","见红":"k28.webp","误吃药":"k29.webp","宫外孕":"k30.webp","反应消失":"k31.webp","双胞胎":"k32.webp","睡姿":"k33.webp","脐带绕颈":"k34.webp","休产假":"k35.webp","月嫂":"k36.webp","宝宝衣物":"k37.webp","侧切":"k38.webp","催产":"k39.webp","孕期运动":"k40.webp","补剂":"k41.webp","剖宫产":"k42.webp","护肤":"k43.webp","吃水果":"k44.webp","两道杠":"k45.webp","唐筛":"k46.webp","看牙":"k47.webp","胎心胎芽":"k48.webp","抽血":"k49.webp","告诉领导":"k50.webp","防辐射":"k51.webp","流感疫苗":"k52.webp","胎心监护":"k53.webp","便秘":"k54.webp","尿频":"k55.webp","喘不上气":"k56.webp","孕期焦虑":"k57.webp","感冒发烧":"k58.webp","建档材料":"k59.webp"}; const QA_IC = { 全部: '', 孕周: '', @@ -5691,6 +5693,7 @@ it.classList.add('kw'); const kt = document.createElement('i'); kt.className = 'qa-kw ' + (QA_TC[x.tag] || 'c5') + ' n' + kw.length; + if (QA_KP[kw]) { kt.classList.add('ph'); kt.style.backgroundImage = 'url(assets/kw/' + QA_KP[kw] + ')'; } kt.innerHTML = '' + (kw.length === 4 ? kw.slice(0, 2) + '
' + kw.slice(2) : kw) + '
'; it._kw = kt; /* 序号照留(11-04 用户要求),关键词方块排在序号后面 */ } @@ -5707,8 +5710,8 @@ if (bd) { g.className = 'qa-bd ' + bd[1]; g.textContent = bd[0]; } const ch = document.createElement('i'); ch.className = 'qa-ch'; ch.textContent = '›'; /* 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); + /* 11-04 用户:「带图和不带图的标题要上下对齐」→ 没关键词的也包一层同宽的左列,标题都从同一条线起 */ + { const col = document.createElement('span'); col.className = 'qa-lc'; col.appendChild(no); if (it._kw) col.appendChild(it._kw); h.appendChild(col); } 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 || ''; diff --git a/js/gch/v4.js b/js/gch/v4.js index 2b84269..e95433d 100644 --- a/js/gch/v4.js +++ b/js/gch/v4.js @@ -43,7 +43,7 @@ sec.innerHTML = '

孕妈广场

' + /* 11-03 用户:首页孕妈广场右上角的分类(全部 / 家庭婚姻 / 职场 / 经验)取消,换一句小 slogan */ - '孕期路上,有人陪你聊
' + + '孕期路上,有人陪你' + /* 11-02 用户:「逛广场」单独挂在右边突兀 → 整行做成入口条(浅粉底,整条可点),右侧实心「进广场」 */ '
看看其他妈妈的故事进广场›
' + '
' + @@ -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=26110296'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } + else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110297'; fs.onload = fs.onerror = init; document.body.appendChild(fs); } })(); diff --git a/js/gch/v6.js b/js/gch/v6.js index 9d1a53b..5723684 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=26110296'; + var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110297'; document.head.appendChild(l); - var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110296'; + var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110297'; 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 0183175..44bcb0f 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 = '26110296'; + var V = '26110297'; 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/js/share-card.js b/js/share-card.js index 6f4dd02..3fc5ec1 100644 --- a/js/share-card.js +++ b/js/share-card.js @@ -8,7 +8,7 @@ postMessage 不是实时投递,微信在分享那一刻才派发,所以每次换内容都要再报一次;子页面没引 jweixin,这里按需加载。 */ (function (g) { 'use strict'; - var V = '26110296'; + var V = '26110297'; var isWx = /MicroMessenger/i.test(navigator.userAgent || ''); var waiting = [], loading = false; function ready(cb) { diff --git a/topic/_shared/tools.js b/topic/_shared/tools.js index 3a6c514..3b5228c 100644 --- a/topic/_shared/tools.js +++ b/topic/_shared/tools.js @@ -57,7 +57,7 @@ '.tc-more{display:block;width:100%;margin-top:6px;height:40px;border:0;border-radius:99px;background:#F7F8FA;color:#4E5969;font-size:13px;font-weight:600}'; var SLUG = (location.pathname.match(/\/topic\/([^\/]+)\//) || [])[1] || ''; /* 11-04 微信转发图:每个专题一张 assets/share/t/.jpg(核心词大字 + logo),见 js/share-card.js */ - if (SLUG) (function () { var s = document.createElement('script'); s.src = '../../js/share-card.js?v=26110296'; s.onload = function () { window.mbShare('../../assets/share/t/' + SLUG + '.jpg'); }; document.head.appendChild(s); })(); + if (SLUG) (function () { var s = document.createElement('script'); s.src = '../../js/share-card.js?v=26110297'; s.onload = function () { window.mbShare('../../assets/share/t/' + SLUG + '.jpg'); }; document.head.appendChild(s); })(); var SK = 'mmbox.tp.v1', UK = (function () { var m = ((location.hash || '') + '&' + (location.search || '')).match(/[#?&]openid=([^&]*)/); return m ? decodeURIComponent(m[1]) : '_guest'; })(); function loadMe() { try { var a = JSON.parse(localStorage.getItem(SK) || '{}') || {}; var m = a[UK] || {}; m.cm = m.cm || {}; m.lk = m.lk || {}; return { a: a, m: m }; } catch (e) { return { a: {}, m: { cm: {}, lk: {} } }; } } function saveMe(st) { try { st.a[UK] = st.m; localStorage.setItem(SK, JSON.stringify(st.a)); } catch (e) {} } @@ -70,7 +70,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=26110296').then(function (idx) { + getJSON('../_shared/idx.json?v=26110297').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; }); @@ -177,7 +177,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=26110296').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); + getJSON('../_shared/cm/' + SLUG + '.json?v=26110297').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); }); } function extras(el) { diff --git a/topic/jisuan/index.html b/topic/jisuan/index.html index 2fe8b51..445eadd 100644 --- a/topic/jisuan/index.html +++ b/topic/jisuan/index.html @@ -113,7 +113,7 @@ button{font:inherit;border:0;background:none;color:inherit;cursor:pointer} document.addEventListener('touchmove', function (e) { if (!sc.contains(e.target)) e.preventDefault(); }, { passive: false }); })(); - + diff --git a/topic/yuchanqi-js/index.html b/topic/yuchanqi-js/index.html index e390a7c..c3dd4b7 100644 --- a/topic/yuchanqi-js/index.html +++ b/topic/yuchanqi-js/index.html @@ -187,7 +187,7 @@ button{cursor:pointer} })(); - +