退出登录加确认框;未授权时「我的」页提示孕期资料已保存 v26101008

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 06:46:26 +00:00
parent b4e80def9e
commit 4e68a87f81
3 changed files with 26 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>兜爸心选 · 孕育陪伴</title>
<!-- V:26101007 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
<!-- V:26101008 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
<link rel="stylesheet" href="mama-box.css">
<link rel="stylesheet" href="night.css">
<!-- 夜晚模式:首屏绘制前就按上次的选择加 class,避免先白后黑闪一下(开关在首页右上角 #nightBtn,逻辑见 app.js) -->
@@ -929,6 +929,8 @@
谁要是把那行加回来,会把连续记录天数冲掉,而且是静默的。 -->
<span class="me-tag hide" id="meTag"></span>
<p id="meRecordLine">已连续记录 <b>42</b> 天</p>
<!-- 2026-10-10 用户:未授权时说明「数据还在」,避免误以为记录丢了。用 div 不用 p:别占「第一个 <p>」 -->
<div class="me-saved" id="meSaved" style="display:none">孕期资料已保存在本微信</div>
</div>
<i class="me-chev" aria-hidden="true">›</i>
</div>
@@ -1931,6 +1933,16 @@
</div>
</section>
<!-- 2026-10-10 用户:退出登录前二次确认,写清只清授权信息、孕育数据保留 -->
<section class="modal bx-prize lg-modal" id="modalLogout" data-autofocus="off" role="dialog" aria-modal="true" aria-labelledby="lgT">
<h3 id="lgT">确定退出登录?</h3>
<p>退出后不再显示你的昵称、头像和手机号。孕期资料和各项记录仍保存在这个微信上,重新授权就能继续使用。</p>
<div class="modal-foot">
<button class="dl-btn ghost" data-modal="close">再想想</button>
<button class="dl-btn main" id="lgOk">退出登录</button>
</div>
</section>
<section class="modal pf-modal" id="modalProfile" data-autofocus="off" role="dialog" aria-modal="true" aria-labelledby="modalProfileTitle">
<div class="modal-head">
<h3 id="modalProfileTitle">我的资料</h3>