style(首页): 头图与第一块卡片衔接——无来信时工具卡压进头图 (v26100414)
- 无来信:头图 250→262、平底,背景图高度钉在 250,多出部分用底边色补;工具卡 margin-top -26 压上去,两个圆角落在橙色里 - 有来信:头图保持原 250 + 弧底(app.js 同步给 .home-hero 切 .no-letter) - #homeBody z-index:1 防头图子元素盖卡;彩色光斑下错 26px 不洗白头图 - 工具卡顶部向上淡投影、顶部更实的白、光晕减半;水印下移 10px Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26100413';
|
||||
var VER = '26100414';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -738,6 +738,8 @@
|
||||
const card = $('#homeLetter'), body = $('#homeBody');
|
||||
if (card) { card.classList.add('hide'); card.classList.remove('has-new'); }
|
||||
if (body) body.classList.add('no-letter');
|
||||
// 头图跟着切:无来信 → 平底让工具卡压上来;有来信 → 回到弧底(见 mama-box.css「头图 ↔ 第一块卡片的衔接」)
|
||||
const hero = $('.home-hero'); if (hero) hero.classList.add('no-letter');
|
||||
}
|
||||
|
||||
/* 来信提示(首页卡 + 底 tab 红点)的**唯一渲染入口**。
|
||||
@@ -780,6 +782,7 @@
|
||||
card.classList.add('has-new');
|
||||
card.classList.remove('hide');
|
||||
if (body) body.classList.remove('no-letter');
|
||||
const hero = $('.home-hero'); if (hero) hero.classList.remove('no-letter');
|
||||
if (badge) badge.classList.add('show');
|
||||
}
|
||||
/* 2026-10-02 底部导航:「宝宝来信」tab 的信封在有红点时轻轻晃(CSS .has-new)。
|
||||
|
||||
Reference in New Issue
Block a user