百问核心词方块配小图+标题对齐;测试列表摇一摇悬浮条;广场 slogan 改「有人陪你」(v26110297)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BIN
assets/kw/k00.webp
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/kw/k01.webp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/kw/k02.webp
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
assets/kw/k03.webp
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
assets/kw/k04.webp
Normal file
|
After Width: | Height: | Size: 1002 B |
BIN
assets/kw/k05.webp
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/kw/k06.webp
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/kw/k07.webp
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/kw/k08.webp
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/kw/k09.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/kw/k10.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/kw/k11.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k12.webp
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/kw/k13.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/kw/k14.webp
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/kw/k15.webp
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/kw/k16.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/kw/k17.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/kw/k18.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/kw/k19.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/kw/k20.webp
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
assets/kw/k21.webp
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/kw/k22.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/kw/k23.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/kw/k24.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/kw/k25.webp
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/kw/k26.webp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/kw/k27.webp
Normal file
|
After Width: | Height: | Size: 998 B |
BIN
assets/kw/k28.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k29.webp
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/kw/k30.webp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/kw/k31.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k32.webp
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/kw/k33.webp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/kw/k34.webp
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/kw/k35.webp
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/kw/k36.webp
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
assets/kw/k37.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k38.webp
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/kw/k39.webp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/kw/k40.webp
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/kw/k41.webp
Normal file
|
After Width: | Height: | Size: 798 B |
BIN
assets/kw/k42.webp
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/kw/k43.webp
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/kw/k44.webp
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
assets/kw/k45.webp
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/kw/k46.webp
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/kw/k47.webp
Normal file
|
After Width: | Height: | Size: 804 B |
BIN
assets/kw/k48.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/kw/k49.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/kw/k50.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k51.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/kw/k52.webp
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/kw/k53.webp
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/kw/k54.webp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/kw/k55.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/kw/k56.webp
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
assets/kw/k57.webp
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/kw/k58.webp
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/kw/k59.webp
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@@ -320,9 +320,9 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
</div>
|
||||
<div class="toast" id="toast"></div>
|
||||
|
||||
<script src="../../js/share-card.js?v=26110296"></script>
|
||||
<script src="meta.js?v=26110296"></script>
|
||||
<script src="tests.js?v=26110296"></script>
|
||||
<script src="../../js/share-card.js?v=26110297"></script>
|
||||
<script src="meta.js?v=26110297"></script>
|
||||
<script src="tests.js?v=26110297"></script>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
@@ -144,6 +144,12 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
.cst button.on{background:linear-gradient(135deg,#EFEAFF,#E6F0FF);border-color:#D9D0FA;color:#4F45B5;font-weight:900}
|
||||
.csg{margin-top:22px}
|
||||
/* 11-04 测试列表「热闹」:实时在测 + 战报 + 手气测 + 卡片在测 / TOP / 弹入 / 扫光 */
|
||||
.luck-fl{position:fixed;left:50%;top:64px;z-index:60;display:flex;align-items:center;gap:8px;height:44px;padding:0 6px 0 8px;border-radius:99px;color:#fff;
|
||||
background:linear-gradient(120deg,#7B5CF5,#A17BFF 60%,#FF8FB1);box-shadow:0 10px 22px -8px rgba(123,92,245,.75);transform:translate(-50%,-14px) scale(.9);opacity:0;pointer-events:none;transition:transform .3s cubic-bezier(.3,1.4,.5,1),opacity .2s;white-space:nowrap}
|
||||
.luck-fl.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
|
||||
.luck-fl-d{width:30px;height:30px;animation:lkIdle 3.2s ease-in-out infinite}.luck-fl-d svg{width:100%;height:100%;display:block}
|
||||
.luck-fl b{font-size:14px;font-weight:800}
|
||||
.luck-fl em{height:32px;padding:0 14px;border-radius:99px;background:#fff;color:#6A4BE0;font-size:13.5px;font-style:normal;font-weight:900;line-height:32px;animation:lkPulse 1.8s ease-in-out infinite}
|
||||
.luck{position:relative;display:flex;align-items:center;gap:10px;width:calc(100% - 24px);margin:12px 12px 0;padding:14px 12px 14px 14px;border-radius:20px;text-align:left;color:#fff;
|
||||
background:radial-gradient(circle at 88% 0,rgba(255,255,255,.28) 0 38px,transparent 39px),radial-gradient(circle at 6% 120%,rgba(255,201,77,.45) 0 46px,transparent 47px),linear-gradient(120deg,#7B5CF5,#A17BFF 55%,#FF8FB1);box-shadow:0 10px 22px -10px rgba(123,92,245,.7);overflow:visible}
|
||||
.luck-dc{flex:none;width:46px;height:46px;filter:drop-shadow(0 4px 6px rgba(60,30,140,.35));animation:lkIdle 3.2s ease-in-out infinite;transform-origin:50% 60%}
|
||||
@@ -831,11 +837,11 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
<div id="sheet" role="dialog" aria-modal="true"><i class="sg"></i><div class="sbd" id="sbd"></div></div>
|
||||
<div class="toast" id="toast"></div>
|
||||
|
||||
<script src="topics.js?v=26110296"></script>
|
||||
<script src="data.js?v=26110296"></script>
|
||||
<script src="feed.js?v=26110296"></script>
|
||||
<script src="ceshi/meta.js?v=26110296"></script>
|
||||
<script src="../js/share-card.js?v=26110296"></script>
|
||||
<script src="topics.js?v=26110297"></script>
|
||||
<script src="data.js?v=26110297"></script>
|
||||
<script src="feed.js?v=26110297"></script>
|
||||
<script src="ceshi/meta.js?v=26110297"></script>
|
||||
<script src="../js/share-card.js?v=26110297"></script>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -901,7 +907,7 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
var CMD = null, CMERR = false;
|
||||
/* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */
|
||||
var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; };
|
||||
fetch('cm.json?v=26110296').then(function (r) { return r.json(); }).then(function (j) {
|
||||
fetch('cm.json?v=26110297').then(function (r) { return r.json(); }).then(function (j) {
|
||||
CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); }
|
||||
}).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); });
|
||||
function commentsOf(n) {
|
||||
@@ -1218,6 +1224,25 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
'<div class="csv"><div class="csv-n"><i class="csv-dot"></i>此刻 <b id="csvN" class="num">' + csNowBase().toLocaleString() + '</b> 人正在测<span class="csv-av" id="csvAv">' + csAvs(5) + '</span></div>' +
|
||||
'<div class="csv-r" id="csvR"></div></div>';
|
||||
}
|
||||
/* 11-04 用户:「往下滑时『摇一摇』浮在最上面,让用户随时能用」→ 大卡滑出屏幕后,顶栏下面浮一条小的摇一摇(点了同样全屏摇号) */
|
||||
var luckIO = null;
|
||||
function luckFloat() {
|
||||
var fl = document.getElementById('luckFl');
|
||||
if (!fl) {
|
||||
fl = document.createElement('button'); fl.type = 'button'; fl.id = 'luckFl'; fl.className = 'luck-fl';
|
||||
fl.innerHTML = '<span class="luck-fl-d">' + diceSVG(5) + '</span><b>不知道测哪个?</b><em>摇一摇</em>';
|
||||
fl.addEventListener('click', function () { var g = document.getElementById('csvGo'); if (g) csdRoll(g); });
|
||||
document.body.appendChild(fl);
|
||||
}
|
||||
var tg = document.getElementById('csvGo'); if (!tg || !('IntersectionObserver' in window)) return;
|
||||
if (luckIO) luckIO.disconnect();
|
||||
luckIO = new IntersectionObserver(function (es) {
|
||||
var e = es[0], nav = document.querySelector('#top .nav'), b = nav ? nav.getBoundingClientRect().bottom : 56;
|
||||
fl.style.top = (Math.max(0, b) + 8) + 'px';
|
||||
fl.classList.toggle('on', catF === 'ceshi' && !e.isIntersecting && e.boundingClientRect.top < b + 10);
|
||||
}, { threshold: 0, rootMargin: '-60px 0px 0px 0px' });
|
||||
luckIO.observe(tg);
|
||||
}
|
||||
var csdBusy = false;
|
||||
/* 11-04 用户:「点摇一摇,整个页面上浮出一个动态效果,结束后再跳到那个测试」→ 全屏浮层:两颗大骰子翻滚 + 老虎机转测试名(越转越慢)→ 落定弹出那个测试的卡(分组配色 + 专属图标)+ 全屏撒彩纸 → 进入 */
|
||||
function csdRoll(btn) {
|
||||
@@ -1331,7 +1356,8 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
}
|
||||
function renderHead() {
|
||||
var t = TBY[cur], el = $('#head'), fh = $('#fh');
|
||||
if (catF === 'ceshi') { el.innerHTML = cbnHTML('ceshi') + csLiveHTML(); ceshiFh(fh); csLiveRun(); return; } /* 原一行介绍 ceshiHead 并进 banner */
|
||||
var fl0 = document.getElementById('luckFl'); if (fl0) fl0.classList.remove('on');
|
||||
if (catF === 'ceshi') { el.innerHTML = cbnHTML('ceshi') + csLiveHTML(); ceshiFh(fh); csLiveRun(); luckFloat(); return; } /* 原一行介绍 ceshiHead 并进 banner */
|
||||
if (!t) {
|
||||
var hl = hotList();
|
||||
el.innerHTML = (catF ? cbnHTML(catF) : qifuHTML()) + /* 祈福树只在「全部」 */
|
||||
|
||||
@@ -105,7 +105,7 @@ main{padding:6px 16px 0}
|
||||
</div>
|
||||
<div class="wb"><button type="button" id="write"><svg class="ic" viewBox="0 0 24 24"><path d="M12 20h9M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z"/></svg>写新的故事</button></div>
|
||||
|
||||
<script src="../topics.js?v=26110296"></script>
|
||||
<script src="../topics.js?v=26110297"></script>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
22
index.html
@@ -7,10 +7,10 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>兜爸心选 · 孕育陪伴</title>
|
||||
<!-- V:26110296 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<!-- V:26110297 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<link rel="stylesheet" href="mama-box.css">
|
||||
<link rel="stylesheet" href="night.css">
|
||||
<link rel="stylesheet" href="js/hero-cd.css?v=26110296">
|
||||
<link rel="stylesheet" href="js/hero-cd.css?v=26110297">
|
||||
<!-- 夜晚模式:首屏绘制前就按上次的选择加 class,避免先白后黑闪一下(开关在首页右上角 #nightBtn,逻辑见 app.js) -->
|
||||
<script>try{if(localStorage.getItem('mmbox.night.v1')==='1'){document.documentElement.classList.add('night');document.querySelector('meta[name=theme-color]').content='#2A2340'}}catch(e){}</script>
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
@@ -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 @@
|
||||
<script src="/_bridge/avatar-picker.js?v=26101105"></script>
|
||||
<script src="/_bridge/hand-icons.js?v=26101202"></script>
|
||||
<script src="js/zodiac-art.js"></script>
|
||||
<script src="guangchang/topics.js?v=26110296"></script>
|
||||
<script src="guangchang/topics.js?v=26110297"></script>
|
||||
<script src="js/app.js"></script>
|
||||
<script src="js/hero-cd.js?v=26110296"></script>
|
||||
<script src="js/kit.js?v=26110296"></script>
|
||||
<script src="js/hero-cd.js?v=26110297"></script>
|
||||
<script src="js/kit.js?v=26110297"></script>
|
||||
<script>
|
||||
/* 11-02 首页「孕妈广场」效果稿:地址带 ?gcv=1~6 时,把 #gcHome 换成 demo/gch/vN.css + vN.js 的版式并滚到这一块。
|
||||
11-02 用户:「用第一版,放到预览页面上」;后改定彩色卡 → 不带参数也默认用 V6 合并版(广场卡堆 + 其他妈妈也在搜 + 测一测第 4 版彩色卡),不滚动、不显示效果稿角标 */
|
||||
(function () {
|
||||
var m = location.search.match(/[?&]gcv=([1-6])(?:&|$)/);
|
||||
if (!m) window.__gcDefault = 1;
|
||||
var n = m ? m[1] : '6', l = document.createElement('link'), s = document.createElement('script'), q = m ? Date.now() : 'v=26110296';
|
||||
var n = m ? m[1] : '6', l = document.createElement('link'), s = document.createElement('script'), q = m ? Date.now() : 'v=26110297';
|
||||
var dir = n === '4' || n === '6' ? 'js/gch/' : 'demo/gch/'; /* 11-03 上正式:定稿 V6(含它套的 V4)并进 js/gch/,其余效果稿仍在 demo/ */
|
||||
l.rel = 'stylesheet'; l.href = dir + 'v' + n + '.css?' + q;
|
||||
s.src = dir + 'v' + n + '.js?' + q;
|
||||
@@ -2599,7 +2605,7 @@
|
||||
/* 11-02 品牌露出(用户定 4 处都要):默认加载,?brand=0 可关掉对比;11-03 已并进 js/gch/ */
|
||||
if (!/[?&]brand=0/.test(location.search)) {
|
||||
var bl = document.createElement('link'), bs = document.createElement('script');
|
||||
bl.rel = 'stylesheet'; bl.href = 'js/gch/brand.css?v=26110296'; bs.src = 'js/gch/brand.js?v=26110296';
|
||||
bl.rel = 'stylesheet'; bl.href = 'js/gch/brand.css?v=26110297'; bs.src = 'js/gch/brand.js?v=26110297';
|
||||
document.head.appendChild(bl); document.body.appendChild(bs);
|
||||
}
|
||||
})();
|
||||
@@ -2610,7 +2616,7 @@
|
||||
<script src="js/hero-fx.js"></script>
|
||||
<!-- 2026-10-05 首页头图:宝宝时不时动一动小手小脚(独立文件,删掉这一行即下线) -->
|
||||
<script src="js/baby-limbs.js?v=26101201"></script>
|
||||
<script src="js/coach.js?v=26110296"></script>
|
||||
<script src="js/coach.js?v=26110297"></script>
|
||||
<script src="js/birth-flow.js?v=26110201"></script>
|
||||
|
||||
<!-- 禁止下拉回弹(2026-10-11 统一规则,与孕期体重同一段):竖向拖动时从手指下往上找还能朝该方向滚的容器,找不到才拦;横滑、双指、可滚列表不受影响 -->
|
||||
|
||||
@@ -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 = {
|
||||
全部: '<path d="M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z"/>',
|
||||
孕周: '<path d="M12 3a9 9 0 110 18 9 9 0 010-18zm-1 4v6l5 3 1-1.6-4-2.4V7z"/>',
|
||||
@@ -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 = '<span>' + (kw.length === 4 ? kw.slice(0, 2) + '<br>' + kw.slice(2) : kw) + '</span>';
|
||||
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 || '';
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
sec.innerHTML =
|
||||
'<div class="g4-head"><h2 class="g4-title"><span>孕妈广场</span></h2>' +
|
||||
/* 11-03 用户:首页孕妈广场右上角的分类(全部 / 家庭婚姻 / 职场 / 经验)取消,换一句小 slogan */
|
||||
'<span class="g4-slg"><i></i>孕期路上,有人陪你聊</span></div>' +
|
||||
'<span class="g4-slg"><i></i>孕期路上,有人陪你</span></div>' +
|
||||
/* 11-02 用户:「逛广场」单独挂在右边突兀 → 整行做成入口条(浅粉底,整条可点),右侧实心「进广场」 */
|
||||
'<div class="g4-sub" role="button" tabindex="0"><span class="g4-avs" aria-hidden="true">' + ['p05', 'm07', 'p11', 'm16', 'p02', 'm03', 'p09', 'm12', 'p13', 'm19'].map(function (n) { return '<img src="' + ava(n) + '" alt="" loading="lazy">'; }).join('') + '</span><span class="g4-st">看看<b>其他妈妈</b>的故事</span><span class="g4-in">进广场<i>›</i></span></div>' +
|
||||
'<div class="g4-stage"><div class="g4-deck" aria-live="polite"></div>' +
|
||||
@@ -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); }
|
||||
})();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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/<slug>.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) {
|
||||
|
||||
@@ -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 });
|
||||
})();
|
||||
</script>
|
||||
<script src="../../js/share-card.js?v=26110296"></script>
|
||||
<script src="../../js/share-card.js?v=26110297"></script>
|
||||
<script>window.mbShare('../../assets/share/t/jisuan.jpg', '孕期计算器:生娃花费、预产期、产假天数,一算就知道'); /* 11-04 微信转发图 */</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -187,7 +187,7 @@ button{cursor:pointer}
|
||||
})();
|
||||
</script>
|
||||
<script src="../_shared/brand.js?v=26110203"></script>
|
||||
<script src="../../js/share-card.js?v=26110296"></script>
|
||||
<script src="../../js/share-card.js?v=26110297"></script>
|
||||
<script>window.mbShare('../../assets/share/t/yuchanqi-js.jpg', '预产期计算器:宝宝哪天到?还有几天见面'); /* 11-04 微信转发图 */</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||