v26110483 百宝箱第 5 条固定「孕期营养影响孩子智商吗?」
This commit is contained in:
@@ -244,5 +244,5 @@
|
||||
}
|
||||
/* feed.js 首页默认不加载(index.html 只引了 topics.js),这里按需拉一次 */
|
||||
if (window.GC_FEED) init();
|
||||
else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110482'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
|
||||
else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110483'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
|
||||
})();
|
||||
|
||||
10
js/kit.js
10
js/kit.js
@@ -82,6 +82,7 @@
|
||||
{ q: '有宝宝一年能少交多少税?', h: 'topic/geshui-js/', heat: .047, b: [6, 0] },
|
||||
{ q: '出生后哪些手续要在哪天前办?', h: 'topic/shouxu-js/', heat: .043, b: [6, 0] }
|
||||
];
|
||||
var QA_FIX = 'topic/yingyang/';
|
||||
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); }
|
||||
function rows() {
|
||||
@@ -92,7 +93,10 @@
|
||||
out.qz.push({ q: t.title, href: 'guangchang/ceshi/' + cleanQ({ id: t.id }), n: window.gcTested ? window.gcTested(t.id) : 0, u: '人测过' });
|
||||
}
|
||||
if (QA && QA.length) {
|
||||
var skip = ['topic/huafei/', 'topic/ceshi/', 'topic/duiyou/', 'topic/zhichang/'];
|
||||
/* 11-05 用户:6 条的第 5 个固定放孕期百问「孕期营养影响孩子智商吗?」(topic/yingyang/)→ 单独取出,别的百问位不再挑它 */
|
||||
var fx = QA.filter(function (x) { return x.href === QA_FIX; })[0];
|
||||
if (fx) out.fix = { q: fx.q, href: fx.href + location.search + location.hash, n: window.__mbQaViews ? window.__mbQaViews(+fx.heat || .03) : total() * (+fx.heat || .03), u: '人看过' };
|
||||
var skip = ['topic/huafei/', 'topic/ceshi/', 'topic/duiyou/', 'topic/zhichang/', QA_FIX];
|
||||
var all = window.__mbQaPick ? window.__mbQaPick(QA, wk, 40) : QA;
|
||||
all.filter(function (x) { return x.href && skip.indexOf(x.href) < 0; }).slice(0, 4).forEach(function (x) {
|
||||
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 同百问列表页口径 */ });
|
||||
@@ -109,7 +113,9 @@
|
||||
/* 11-04 用户:「百宝箱下面从 6 个改成 4 个」→ 生娃计算器(火)+ 测试 + 百问 + 第二个计算器,各类至少一条 */
|
||||
/* 11-04 UGC 开关关着(js/ugc.js):不出测试,换成第二条百问,仍是 4 条 */
|
||||
/* 11-05 用户:「孕期百宝箱里调出 6 篇」→ 回到 6 条:火 + 测试2 + 百问2 + 计算器;UGC 关着时测试换百问(百问最多取 4 条) */
|
||||
(window.__mbUgc ? [['qz', 0], ['qa', 0], ['js', 1], ['qz', 1], ['qa', 1]] : [['qa', 0], ['qa', 1], ['js', 1], ['qa', 2], ['qa', 3]]).forEach(function (p) { if (out[p[0]][p[1]]) r.push(Object.assign({ c: p[0] }, out[p[0]][p[1]])); });
|
||||
(window.__mbUgc ? [['qz', 0], ['qa', 0], ['js', 1], ['fix'], ['qa', 1]] : [['qa', 0], ['qa', 1], ['js', 1], ['fix'], ['qa', 2]]).forEach(function (p) {
|
||||
var x = p[0] === 'fix' ? out.fix : out[p[0]][p[1]]; if (x) r.push(Object.assign({ c: p[0] === 'fix' ? 'qa' : p[0] }, x));
|
||||
});
|
||||
return { r: r, wk: wk };
|
||||
}
|
||||
var TAG = { qz: '测试', qa: '百问', js: '计算器' };
|
||||
|
||||
Reference in New Issue
Block a user