首页广场 V6 测一测:上面两个主推 + 下面 3 个小列表;新测试 压力(yali)/饮食(yinshi)/待产准备(zhunbei)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-02 04:15:13 +00:00
parent c239567524
commit a9fb9c6421
24 changed files with 2367 additions and 2 deletions

View File

@@ -57,6 +57,16 @@
'<small>' + q.who + '</small><b>' + esc(q.t) + '</b><em>开始测 ›</em></a>';
}).join('') + '</div><p class="g6-vf">两个都测完,看看你们是哪种组合 · 已有 23.9万 人测过</p></div>';
}
/* 11-02 用户:「上面两个,下面再摆 3 个小列表,相当于 5 个测一测」→ 三个都显示,不分版 */
var QL = [
{ href: 'topic/yali/', t: '你最近的孕期压力有多大?', m: '12 题 · 6.1万 人测过', img: 'topic/yali/img/hero.webp' },
{ href: 'topic/yinshi/', t: '你的孕期饮食能打几分?', m: '12 题 · 5.4万 人测过', img: 'topic/yinshi/img/hero.webp' },
{ href: 'topic/zhunbei/', t: '迎接宝宝,你准备好几成了?', m: '12 题 · 4.7万 人测过', img: 'topic/zhunbei/img/hero.webp' }
];
qz.insertAdjacentHTML('beforeend', '<div class="g6-ql">' + QL.map(function (q) {
return '<a class="g6-li ripple" href="' + lk(q) + '"><img src="' + esc(q.img) + '" alt="" loading="lazy" onerror="this.style.visibility=\'hidden\'">' +
'<span class="g6-lb"><b>' + esc(q.t) + '</b><small>' + q.m + '</small></span><em>去测</em></a>';
}).join('') + '</div>');
sec.insertBefore(qz, foot);
sec.insertBefore(box, foot);
var list = box.querySelector('.g6-list'), all = box.querySelector('.g6-all');