fix(首页): 删除妈妈的树洞 / 预览页不再自动跳上次应用 / 「我的」加盲盒卡册常驻入口 (v26100103)
- 妈妈的树洞整块删除(HTML/CSS/JS),需要恢复看 git 历史 - 预览页 /mama-box-preview/ 跳过冷启动恢复上次应用,避免一打开链接就跳到孕检日历 - 「我的」设置与服务里加「我的孕期卡册 N/37」,与首页横幅同一入口;未建档/未到孕周时隐藏 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
55
index.html
55
index.html
@@ -7,7 +7,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>兜爸心选 · 孕育陪伴</title>
|
||||
<!-- V:26100102 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<!-- V:26100103 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<link rel="stylesheet" href="mama-box.css">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
||||
@@ -455,53 +455,7 @@
|
||||
⚠️ 唯一的例外是安全提示:内容里出现明显的轻生字眼时,收好之后在卡内显示一行援助热线
|
||||
(12356 全国心理援助热线),这不是「回应心事」,是兜底,别删。
|
||||
⚠️ 纸团飞进树洞的动画靠 Element.animate;不支持的老内核直接跳到「已收好」,不影响收存。 -->
|
||||
<!-- 妈妈的树洞 · 星夜版(2026-10-01 重做:用户要「很有创意、炫酷,模块不用太大」)。
|
||||
一块深夜蓝的小天幕:右边一棵剪影树,树干上的洞是一个缓慢旋转的发光漩涡(#thHole);
|
||||
天上的每颗亮星 = 你扔进来的一条心事(#thSky 由 JS 按本机记录画,位置由时间戳哈希定,刷新不跳)。
|
||||
扔进去:输入的字一个个飞起、绕成弧线被吸进漩涡 → 洞口爆亮 → 一颗新星从洞里射上天空,停在那儿眨眼。
|
||||
⚠️ 心事仍然只存本机 localStorage(用户 2026-09-30 选定),不回应、不上传;轻生字眼兜底热线照旧。
|
||||
⚠️ 保留的 id:thText / thSend / thMine / thCount / thDone / thList / thHole —— app.js treeHole() 依赖。 -->
|
||||
<section class="tree-hole" id="treeHole">
|
||||
<div class="th-head">
|
||||
<h2 class="th-title">妈妈的树洞</h2>
|
||||
<span class="th-lock"><svg viewBox="0 0 24 24" width="11" height="11" aria-hidden="true"><path d="M7 10V7.5a5 5 0 0 1 10 0V10" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/><rect x="4.5" y="10" width="15" height="11" rx="3" fill="currentColor"/></svg>只存在你的手机里</span>
|
||||
</div>
|
||||
<div class="th-night" id="thNight">
|
||||
<div class="th-sky" id="thSky" aria-hidden="true"></div>
|
||||
<span class="th-moon" aria-hidden="true"></span>
|
||||
<i class="th-fly f1" aria-hidden="true"></i><i class="th-fly f2" aria-hidden="true"></i><i class="th-fly f3" aria-hidden="true"></i>
|
||||
<p class="th-lead">说不出口的话,扔进来<br><em>每一句,都会变成一颗星</em></p>
|
||||
<svg class="th-tree" id="thTree" viewBox="0 0 120 130" aria-hidden="true">
|
||||
<defs>
|
||||
<radialGradient id="thCore" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0" stop-color="#FFF6D8"/><stop offset=".45" stop-color="#FFC978"/><stop offset="1" stop-color="#FF8F6B" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g class="th-crown" fill="#2A2B5C">
|
||||
<circle cx="38" cy="44" r="26"/><circle cx="80" cy="40" r="28"/><circle cx="60" cy="22" r="22"/>
|
||||
<circle cx="98" cy="60" r="16"/><circle cx="22" cy="64" r="15"/><circle cx="60" cy="56" r="24"/>
|
||||
</g>
|
||||
<path d="M46 130c4-20 5-38 3-56h22c-2 18-1 36 3 56z" fill="#2A2B5C"/>
|
||||
<path d="M54 82c-7-6-15-8-22-7M68 82c6-6 13-8 20-7" stroke="#2A2B5C" stroke-width="5" stroke-linecap="round" fill="none"/>
|
||||
<circle class="th-halo" cx="60" cy="102" r="17" fill="url(#thCore)"/>
|
||||
<ellipse cx="60" cy="102" rx="8" ry="10.5" fill="#0E0F2B"/>
|
||||
<g id="thHole" class="th-vortex">
|
||||
<path d="M60 94a8 8 0 0 1 7 9M60 110a8 8 0 0 1-7-9M53 97a5 5 0 0 1 9 1M67 107a5 5 0 0 1-9-1" stroke="#FFD58F" stroke-width="1.4" stroke-linecap="round" fill="none"/>
|
||||
<circle cx="60" cy="102" r="1.8" fill="#FFF3CF"/>
|
||||
</g>
|
||||
</svg>
|
||||
<div class="th-form">
|
||||
<textarea id="thText" maxlength="500" rows="1" placeholder="今天想说点什么……"></textarea>
|
||||
<button class="th-send" id="thSend" type="button" aria-label="扔进树洞"><svg viewBox="0 0 24 24" width="17" height="17" aria-hidden="true"><path d="M12 2.5l2.3 6.2 6.2 2.3-6.2 2.3L12 19.5l-2.3-6.2L3.5 11l6.2-2.3z" fill="currentColor"/></svg></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="th-row">
|
||||
<button class="th-mine" id="thMine" type="button">我的心事 · <b id="thCount">0</b> 颗星 ›</button>
|
||||
<div class="th-done" id="thDone" aria-live="polite"></div>
|
||||
</div>
|
||||
<ul class="th-list hide" id="thList"></ul>
|
||||
<p class="th-help">持续低落、睡不好或有伤害自己的念头,请告诉家人或医生,也可拨打心理援助热线 <a href="tel:12356">12356</a></p>
|
||||
</section>
|
||||
<!-- 「妈妈的树洞」整块已删(2026-10-01 用户要求)。样式与 JS 一并删除,需要恢复看 git 历史 70c9786。 -->
|
||||
|
||||
<!-- 模块三 · 书架卡带。
|
||||
上一版是「一张横排大卡 + 下面两张小卡」的老三段,和上面两个模块
|
||||
@@ -1176,6 +1130,11 @@
|
||||
<h2 class="sec-title dark">设置与服务</h2>
|
||||
<div class="list-card">
|
||||
<!-- 「提醒设置」整项已按需求删除 -->
|
||||
<!-- 孕期盲盒卡册的常驻入口(2026-10-01 用户反馈:开完盲盒后想回看,只认首页横幅不够)。
|
||||
点击与首页横幅同一路径(app.js openBoxEntry);#meBoxV 显示「已收集 N/37」,未拿到数据时隐藏整行。 -->
|
||||
<button class="li ripple hide" id="meBoxCard">
|
||||
<span class="li-ico o"><svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true"><rect x="4.5" y="10.5" width="15" height="9.5" rx="2" fill="none" stroke="currentColor" stroke-width="1.8"/><rect x="3.3" y="7.2" width="17.4" height="3.6" rx="1.3" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M12 7.2V20M12 7.2C10.4 3.8 7 4.3 8 6.4c.6 1 2.4.9 4 .8zM12 7.2c1.6-3.4 5-2.9 4-.8-.6 1-2.4.9-4 .8z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></svg></span>
|
||||
<span class="li-t">我的孕期卡册</span><span class="li-v" id="meBoxV"></span><i class="chev">›</i></button>
|
||||
<button class="li ripple" data-open="detailSetting" data-set="privacy">
|
||||
<span class="li-ico p"><svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true"><rect x="4.5" y="10" width="15" height="10.5" rx="3" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M8.2 10V7.6a3.8 3.8 0 0 1 7.6 0V10" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><circle cx="12" cy="15.2" r="1.5" fill="currentColor"/></svg></span>
|
||||
<span class="li-t">隐私与权限</span><i class="chev">›</i></button>
|
||||
|
||||
Reference in New Issue
Block a user