孕期首页 v26102101(预览):全部工具只出孕期工具;孕期→育儿过渡(37 周提示卡、过预产期每天问一次、登记出生、恭喜过渡页、已出生去育儿首页卡、我的页入口)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-10-21 01:22:50 +00:00
parent 75076f698e
commit dbdd37c95d
3 changed files with 262 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26101211';
var VER = '26102101';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -499,8 +499,9 @@
「H5应用授权示例(wx-h5-demo)」曾经在这里被单独屏蔽,2026-09-20 按需求去掉:
mama-box 要用它排查 openid 为空的场景,且它的可见性该由后台上下架决定。
详见上面那段注释;别在前端重新引入名单。 */
/* 2026-10-21 用户定:孕期首页只出孕期工具,育儿工具(category=育儿工具)就算上架了也不在这里出现 */
const apps = items
.filter(a => a.url)
.filter(a => a.url && a.category === '孕期工具')
.sort((x, y) => (y.seq || 0) - (x.seq || 0) || (y.no || 0) - (x.no || 0));
apps.forEach(a => { APP_BY_ID[a.identifier] = a; }); /* 供首页工具卡按 identifier 取 URL */
renderAppGrid(apps);