diff --git a/index.html b/index.html index e5871b0..efa7fe9 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + diff --git a/js/app.js b/js/app.js index cfce12d..7918b42 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26100437'; + var VER = '26100438'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); diff --git a/js/hero-fx.js b/js/hero-fx.js index beaa1cf..40bd88f 100644 --- a/js/hero-fx.js +++ b/js/hero-fx.js @@ -44,6 +44,7 @@ cur = i; const [, png, gif, k] = STAGES[i], my = ++seq; box.style.setProperty('--k', k); + box.classList.toggle('is-big', STAGES[i][0] >= 24); // 24 周起孕囊大,星座牌改压在囊边(见 css .hero-baby.is-big .hero-zod) // 先把旧图淡掉再换,避免新旧宝宝叠在一起闪一下 kid.classList.remove('is-on'); still.classList.remove('is-on'); const s = new Image(); @@ -84,7 +85,9 @@ const due = d && !d.empty && !d.postpartum && d.due; if (!due) { zEl.classList.remove('is-on'); return; } const z = zodiacOf(due[0], due[1], due[2]); - const pair = z.alt ? (z.prevAlt ? [z.alt, z.main] : [z.main, z.alt]) : [z.main]; + /* 2026-10-04 用户:「出现『摩羯·水瓶宝宝』相当于两个星座,必须只能是一个」→ 只按预产期落在哪个区间取一个, + 不再在分界 ±2 天写双星座(zodiacOf 的 alt 留着不用) */ + const pair = [z.main]; // 图标:对应星座的自绘符号(js/zodiac-art.js;不用 ♋ 一类字符,部分安卓没有字形会成方框) zEl.innerHTML = '' + (window.zodiacIcon ? window.zodiacIcon(pair[0][2], 10, 2.6) : '') + '' + '' + pair.map(x => x[2]).join('·') + '宝宝'; diff --git a/mama-box.css b/mama-box.css index a32b7ed..e409ac5 100644 --- a/mama-box.css +++ b/mama-box.css @@ -4654,3 +4654,7 @@ a.skip:focus{left:16px;top:16px} .hi-week b{color:#fff;text-shadow:0 1.5px 1px var(--hs1),0 4px 12px var(--hs2)} /* ↑ 星座牌位置 三版(2026-10-04 用户:「星座卡片和孕囊最下边大概 5 像素距离,不要紧贴孕囊最外侧白边」) top 改成 97% + 5px:囊壁最低点 ≈ 方块 97%(晚期鼓包的囊最低),再空 5px。实测早/中/晚期离白边 5~8px。 */ +/* 星座牌位置 四版(2026-10-04 用户:「23 周以前离孕囊下边约 3 像素;24 周及以后孕囊大了、卡片出屏幕, + 可以压上孕囊一点点」)。23 周前:囊壁最低 ≈ 方块 93%,再空 3px;24 周起(JS 加 .is-big):往左收、往上提,压住囊壁右下一小截。 */ +.hero-zod{top:calc(93% + 3px)} +.hero-baby.is-big .hero-zod{left:calc(60% - 30px);top:calc(88% - 6px)}