From 564979ed2a7a19fd055c66aa9db6008f2a51d262 Mon Sep 17 00:00:00 2001 From: karlcarlo Date: Sun, 11 Oct 2026 14:29:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AD=95=E5=91=A8=E9=97=A8=E6=A7=9B=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=EF=BC=9A=E6=96=87=E5=AD=97=E6=94=B9=E3=80=8C=E5=AD=95?= =?UTF-8?q?N=E5=91=A8=E5=BC=80=E6=94=BE=E3=80=8D=20v26101022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: AI 助手 --- index.html | 2 +- js/app.js | 6 +++--- mama-box.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 8276adc..cfe42a4 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + diff --git a/js/app.js b/js/app.js index e81f6a1..9075f1b 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26101021'; + var VER = '26101022'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -376,13 +376,13 @@ $('#sgLeft').textContent = (left >= 7 ? '还有 ' + Math.ceil(left / 7) + ' 周' : '还有 ' + left + ' 天') + ',大约 ' + mdTxt(gaToDate(g.wk * 7)) + ' 开放'; openModal('modalStageGate'); } - /* 记一下宫格上的小标签「16周开放」(图标右上角):没到门槛的灰一点,到了自动去掉;首页工具卡改成直接换替补(swapHomeCards) */ + /* 记一下宫格上的小标签「孕16周开放」(图标右上角):没到门槛的灰一点,到了自动去掉;首页工具卡改成直接换替补(swapHomeCards) */ function markStageLocks() { $$('#appsGrid .app').forEach(b => { const g = stageGateOf(decodeURIComponent(b.dataset.url || ''), decodeURIComponent(b.dataset.id || '')); const on = stageLocked(g); b.classList.toggle('is-locked', on); - if (on) b.dataset.lock = g.wk + '周开放'; else delete b.dataset.lock; + if (on) b.dataset.lock = '孕' + g.wk + '周开放'; else delete b.dataset.lock; }); swapHomeCards(); } diff --git a/mama-box.css b/mama-box.css index 8b107d0..6be331d 100644 --- a/mama-box.css +++ b/mama-box.css @@ -4752,7 +4752,7 @@ a.skip:focus{left:16px;top:16px} .apps-grid .app.is-done::after{top:2px} /* ================= 孕周开放门槛(2026-10-11)================= - 没到孕周的工具:记一下宫格里图标右上角挂一枚「16周开放」小标签,配色同站内通用标签(品牌橘字 + 10% 品牌橘底,叠在米底上为实色 #FDE7E1,免得透出图标)(大半在图标外,只压住右上角一点),图标略淡;点了弹 #modalStageGate。 + 没到孕周的工具:记一下宫格里图标右上角挂一枚「孕16周开放」小标签,配色同站内通用标签(品牌橘字 + 10% 品牌橘底,叠在米底上为实色 #FDE7E1,免得透出图标)(大半在图标外,只压住右上角一点),图标略淡;点了弹 #modalStageGate。 配色只用现有的暖米 / 品牌橘,不另起颜色:角标是米底灰字,进度条是品牌橘渐变。 */ .apps-grid .app.is-locked .a-ico{opacity:.5;filter:saturate(.6)} .apps-grid .app.is-locked .a-n{color:var(--muted)}