mama-box: 退出按钮改卡片右上角绝对定位 + 仅已登录(userName)时显示 (v26090707)

This commit is contained in:
2026-09-07 23:42:30 +08:00
parent 3b52b1c222
commit 91db3873ee
3 changed files with 16 additions and 11 deletions

View File

@@ -6,8 +6,8 @@
<meta name="theme-color" content="#F4593C">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>妈妈盒子 · 孕育陪伴</title>
<!-- V:26090706 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
<link rel="stylesheet" href="mama-box.css?v=26090706">
<!-- V:26090707 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
<link rel="stylesheet" href="mama-box.css?v=26090707">
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>
<body>
@@ -761,8 +761,9 @@
谁要是把那行加回来,会把连续记录天数冲掉,而且是静默的。 -->
<p>已连续记录 <b>42</b> 天</p>
</div>
<!-- 右侧:退出登录图标按钮(清除本机身份 → 重新授权测试)+ 尖括号提示卡可点 -->
<button class="icon-btn plain me-exit" id="meLogoutBtn" aria-label="退出登录">
<!-- 退出登录图标按钮:默认隐藏,applyRemoteProfile 确认已登录(有 userName)才显示。
绝对定位在卡片右上角(尖括号左边);stopPropagation 防止触发资料弹窗 -->
<button class="icon-btn plain me-exit" id="meLogoutBtn" aria-label="退出登录" style="display:none">
<svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true">
<path d="M14 5h5a1.5 1.5 0 0 1 1.5 1.5v11A1.5 1.5 0 0 1 19 19h-5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
<path d="M10 12H3m0 0 3.5-3.5M3 12l3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
@@ -1757,8 +1758,8 @@
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
不影响应用其余功能。 -->
<script src="js/app.js?v=26090706"></script>
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090706 -->
<div id="ver" style="position:fixed;left:0;right:0;bottom:10px;text-align:center;z-index:9999;pointer-events:none;color:#B3A69C;font-size:10px;letter-spacing:.5px">v26090706</div>
<script src="js/app.js?v=26090707"></script>
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090707 -->
<div id="ver" style="position:fixed;left:0;right:0;bottom:10px;text-align:center;z-index:9999;pointer-events:none;color:#B3A69C;font-size:10px;letter-spacing:.5px">v26090707</div>
</body>
</html>