diff --git a/demo/hero-ideas/0.jpg b/demo/hero-ideas/0.jpg
new file mode 100644
index 0000000..348bf01
Binary files /dev/null and b/demo/hero-ideas/0.jpg differ
diff --git a/demo/hero-ideas/a.jpg b/demo/hero-ideas/a.jpg
new file mode 100644
index 0000000..8d1a922
Binary files /dev/null and b/demo/hero-ideas/a.jpg differ
diff --git a/demo/hero-ideas/b.jpg b/demo/hero-ideas/b.jpg
new file mode 100644
index 0000000..a849378
Binary files /dev/null and b/demo/hero-ideas/b.jpg differ
diff --git a/demo/hero-ideas/c.jpg b/demo/hero-ideas/c.jpg
new file mode 100644
index 0000000..0b87c2d
Binary files /dev/null and b/demo/hero-ideas/c.jpg differ
diff --git a/demo/hero-ideas/d.jpg b/demo/hero-ideas/d.jpg
new file mode 100644
index 0000000..d96a991
Binary files /dev/null and b/demo/hero-ideas/d.jpg differ
diff --git a/demo/hero-ideas/e.jpg b/demo/hero-ideas/e.jpg
new file mode 100644
index 0000000..925662e
Binary files /dev/null and b/demo/hero-ideas/e.jpg differ
diff --git a/demo/hero-ideas/index.html b/demo/hero-ideas/index.html
new file mode 100644
index 0000000..d1f8f78
--- /dev/null
+++ b/demo/hero-ideas/index.html
@@ -0,0 +1,17 @@
+
+首页头图左侧 · 5 个创意效果图
+
+首页头图左侧 · 5 个创意效果图
都是在真实首页上替换左侧区域截的图(示例:孕 29 周、还有 77 天见面)。点图片放大,左右切换。只是效果图,还没开发。
+
现在的样子翻页倒计时 + 时分秒 + 孕周进度条,信息都对,但全是数字,看久了像个计时器。
① 宝宝悄悄话用宝宝的口吻说一句当周的变化(“我今天学会眨眼睛啦”),每天换一句,点「换一句」还能再看。最有情绪、最想截图分享;下面一行保留孕周和见面天数。
② 撕页日历做成一本倒计时日历,大字写剩几天和见面那天是周几。每天第一次打开,手指一划「撕掉一页」,有撕纸动效和声音,养成每天来撕一页的习惯。
③ 星星罐每陪宝宝一天攒一颗星,罐子越装越满(已攒 203 颗,再攒 77 颗见面)。进度一眼看得见,可以加「今天的星星」点亮动画。
④ 宝宝心跳一颗会跳的心 + 心电线,跟着胎心节奏(约 140 次/分)轻轻跳动,配一句本周发育。安静、有陪伴感,孕早期没胎心的周数换成「心脏正在长」。
⑤ 今天和宝宝的约定每天 3 件小事(数胎动、喝水、读故事),做完打勾,右上角小圆环显示完成度。把首页从“看数字”变成“每天有事做”,还能连到数胎动等工具。
+![]()
+
\ No newline at end of file
diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html
index 52085fd..159e29e 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
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
@@ -2591,17 +2591,17 @@
-
+
-
-
+
+
-
+
diff --git a/js/app.js b/js/app.js
index cfbd6c8..28027ed 100644
--- a/js/app.js
+++ b/js/app.js
@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
- var VER = '26110401';
+ var VER = '26110402';
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 4972200..cf51f70 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=26110401'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
+ else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110402'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
})();
diff --git a/js/gch/v6.js b/js/gch/v6.js
index f7f9cdc..250b072 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=26110401';
+ var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110402';
document.head.appendChild(l);
- var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110401';
+ var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110402';
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 c3c8922..2c8e1a4 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 = '26110401';
+ var V = '26110402';
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');
@@ -43,7 +43,7 @@
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); }
- /* 人数口径(11-03 改):测过 = 30 个测试 gcTested 之和 × .456;看过 = 「此刻」总人数 × .574;算过 = 4 个计算器 heat 之和 × 总人数(同 topic/jisuan) */
+ /* 人数口径(11-03 改):测过 = 30 个测试 gcTested 之和 × .456;看过 = 「此刻」总人数 × .574;算过 = CALC 全部计算器 heat 之和 × 总人数(同 topic/jisuan) */
function nums() {
/* 11-03 用户:「三个入口的人数太大,几十万就行,要有零有整」→ 系数压到几十万(测过 ≈68 万 / 看过 ≈87 万 / 算过 ≈50 万),且一律带一位小数(wanX)。
仍不小于下面列表里单条的最大值(单个测试 ≤12 万、单条百问 ≤64 万、单个计算器 ≤18 万),口径不打架。模拟数,12-31 复核 */
@@ -67,9 +67,20 @@
/* 计算器(同 topic/jisuan 列表;heat 也同那页) */
var CALC = [
{ q: '生娃到底要花多少钱?一键算清', h: 'topic/huafei/', heat: .118 },
- { q: '预产期是哪天?还有几天见面', h: 'topic/yuchanqi-js/', heat: .083 }, /* 11-04 用户:孕期增重是记录工具不是计算器 → 换成新做的预产期计算器 */
- { q: '胎儿现在多重?填 B 超数估一估', h: '/taier-guzhong/', heat: .071, gate: 15 },
- { q: '产假能休多少天?哪天回去上班', h: 'topic/zhichang/', heat: .062, cm: 1 } /* cm:带 calc=1,进去第一屏就是计算器(11-03) */
+ { q: '预产期是哪天?还有几天见面', h: 'topic/yuchanqi-js/', heat: .083, b: [1, 2, 0] }, /* 11-04 用户:孕期增重是记录工具不是计算器 → 换成新做的预产期计算器 */
+ { q: '胎儿现在多重?填 B 超数估一估', h: '/taier-guzhong/', heat: .071, gate: 15, b: [4, 5] },
+ { q: '产假能休多少天?哪天回去上班', h: 'topic/zhichang/', heat: .062, cm: 1, b: [4, 5, 6] }, /* cm:带 calc=1,进去第一屏就是计算器(11-03) */
+ /* 11-04 用户:「首页这 6 条也加上新的计算器」→ b = 适合的孕周段(同上 QZ_POOL 段号),第二条计算器从本段可用的里按天轮换 */
+ { q: '今天孕几周几天?宝宝像什么', h: 'topic/yunzhou-js/', heat: .076, b: [1, 2, 3] },
+ { q: '每次产检哪天去、查什么?', h: 'topic/chanjian-js/', heat: .069, b: [1, 2, 3, 4] },
+ { q: '孕期胖多少才合适?', h: 'topic/zengzhong-js/', heat: .058, b: [2, 3, 4] },
+ { q: '宝宝会是什么血型?', h: 'topic/xuexing-js/', heat: .066, b: [2, 3, 4] },
+ { q: '宝宝长大能有多高?', h: 'topic/shengao-js/', heat: .079, b: [3, 4, 5] },
+ { q: '坐月子要花多少钱?', h: 'topic/yuezi-js/', heat: .064, b: [4, 5, 6] },
+ { q: '产假期间能领多少生育津贴?', h: 'topic/jintie-js/', heat: .072, b: [5, 6] },
+ { q: '育儿补贴你家能领多少?', h: 'topic/butie-js/', heat: .081, b: [6, 0] },
+ { q: '有宝宝一年能少交多少税?', h: 'topic/geshui-js/', heat: .047, b: [6, 0] },
+ { q: '出生后哪些手续要在哪天前办?', h: 'topic/shouxu-js/', heat: .043, b: [6, 0] }
];
var QA = null, day = Math.floor((Date.now() + 288e5) / 864e5);
function band() { var p = window.__mbPreg || {}; return p.postpartum || !p.week ? 0 : (window.__mbQaBand ? window.__mbQaBand(p.week) : 0); }
@@ -87,10 +98,11 @@
out.qa.push({ q: x.q, href: x.href + location.search + location.hash, n: window.__mbQaViews ? window.__mbQaViews(+x.heat || .03) : total() * (+x.heat || .03), u: '人看过' /* 11-03 同百问列表页口径 */ });
});
}
- var cl = CALC.filter(function (x) { return !(x.gate && wk && wk < x.gate); });
- if (b >= 5) cl = [cl[cl.length - 1]].concat(cl.slice(0, -1)); /* 孕 29 周起产假排前 */
- /* 11-04 用户:「生娃计算器放第一个,标个火」→ 计算器两条里 huafei 必在,排到 6 条最前(hot) */
- var hf = CALC[0]; cl = [hf].concat(cl.filter(function (x) { return x !== hf; }));
+ /* 11-04 用户:「生娃计算器放第一个,标个火」→ 计算器两条里 huafei 必在,排到 6 条最前(hot);
+ 第二条从适合本孕周段(x.b)的计算器里按天轮换(11-04 加了 10 个新计算器) */
+ var hf = CALC[0], cp = CALC.filter(function (x) { return x !== hf && x.b && x.b.indexOf(b) >= 0 && !(x.gate && wk && wk < x.gate); });
+ if (!cp.length) cp = CALC.filter(function (x) { return x !== hf && !x.gate; });
+ var cl = [hf, cp[day % cp.length]];
cl.slice(0, 2).forEach(function (x) { out.js.push({ q: x.q, href: x.h + (x.cm ? (location.search ? location.search + '&' : '?') + 'calc=1' : location.search) + location.hash, n: total() * x.heat, u: '人算过' }); });
var r = [];
if (out.js[0]) r.push(Object.assign({ c: 'js', hot: 1 }, out.js[0]));
@@ -153,6 +165,16 @@
'topic/huafei/': ['算出养到 18 岁约 62.8 万', '算出头一年约 9.6 万', '算出养到 3 岁约 21.4 万', '算出养到 18 岁约 48.5 万'],
'topic/yuchanqi-js/': ['算出还有 96 天见面', '算出现在孕 23 周 + 4 天', '算出预产期在 3 月 12 日', '算出预产期在 4 月 20 日'],
'/taier-guzhong/': ['估出宝宝约 1.6 斤', '估出宝宝约 2.3 斤', '估出宝宝约 3.1 斤'],
+ 'topic/yunzhou-js/': ['算出今天孕 18 周 + 2 天', '算出现在 孕 5 月', '算出宝宝像 一个芒果'],
+ 'topic/chanjian-js/': ['排出下次产检在 12 月 3 日', '排出糖耐在 1 月 8 日前做'],
+ 'topic/zengzhong-js/': ['算出孕期胖 8~14 公斤合适', '算出现在胖得 刚好'],
+ 'topic/xuexing-js/': ['算出宝宝 59% 是 A 型', '算出宝宝可能是 O 型或 B 型'],
+ 'topic/shengao-js/': ['算出宝宝约 175 cm', '算出女儿约 162 cm'],
+ 'topic/yuezi-js/': ['算出月子中心约 4 万', '算出请月嫂约 1.6 万'],
+ 'topic/jintie-js/': ['算出生育津贴约 4.7 万', '算出津贴约 3.2 万'],
+ 'topic/butie-js/': ['算出能领 10800 元', '算出两个孩子领 1.6 万'],
+ 'topic/geshui-js/': ['算出一年少交 2400 元税', '算出一年少交 4800 元税'],
+ 'topic/shouxu-js/': ['排好 11 件出生手续', '查到上户口还剩 6 天'],
'topic/zhichang/': ['算出产假能休 178 天(广东)', '算出产假能休 158 天(上海)', '算出产假能休 188 天(河南)', '算出产假能休 180 天(吉林)']
};
var lvT = 0;
diff --git a/js/share-card.js b/js/share-card.js
index 16ffb74..05eeafa 100644
--- a/js/share-card.js
+++ b/js/share-card.js
@@ -8,7 +8,7 @@
postMessage 不是实时投递,微信在分享那一刻才派发,所以每次换内容都要再报一次;子页面没引 jweixin,这里按需加载。 */
(function (g) {
'use strict';
- var V = '26110401';
+ var V = '26110402';
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 29b9032..5aba769 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=26110401'; 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=26110402'; 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=26110401').then(function (idx) {
+ getJSON('../_shared/idx.json?v=26110402').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=26110401').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
+ getJSON('../_shared/cm/' + SLUG + '.json?v=26110402').then(function (d) { L = d.c || []; paint(); }).catch(function () { paint(); });
}
function extras(el) {
diff --git a/topic/butie-js/index.html b/topic/butie-js/index.html
index ce8c1ef..5bfeabe 100644
--- a/topic/butie-js/index.html
+++ b/topic/butie-js/index.html
@@ -11,7 +11,7 @@
月数按「自然月」数:从 max(出生月, 2025-01) 起,到满 3 周岁那个月之前为止(结果标「约」,以当地核定为准)。
最多填 3 个孩子;还没出生的填预产期先算。地方另有加码的(如部分城市每孩另发)不在这里算。
共用 ../_shared/calc.css + calc.js(返回 / 禁回弹 / 日期按北京时间 / 记住上次填的值);自成一页,不引 app.js。 -->
-
+
@@ -45,7 +45,7 @@
地方可能另有补贴:部分城市在国家 3600 元之外还另发生育补贴、育儿补贴,问一下当地卫健部门或看政务平台。
-
+
-
+