退出登录移到「设置与服务」末尾(退出授权登录, 仅已授权显示), 删用户卡右上角退出图标 (v26090728)
This commit is contained in:
24
index.html
24
index.html
@@ -6,8 +6,8 @@
|
||||
<meta name="theme-color" content="#F4593C">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>妈妈盒子 · 孕育陪伴</title>
|
||||
<!-- V:26090727 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090727">
|
||||
<!-- V:26090728 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090728">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -771,14 +771,6 @@
|
||||
谁要是把那行加回来,会把连续记录天数冲掉,而且是静默的。 -->
|
||||
<p>已连续记录 <b>42</b> 天</p>
|
||||
</div>
|
||||
<!-- 退出登录图标按钮:默认隐藏,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"/>
|
||||
</svg>
|
||||
</button>
|
||||
<i class="me-chev" aria-hidden="true">›</i>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1027,6 +1019,12 @@
|
||||
<button class="li ripple" data-open="detailSetting" data-set="about">
|
||||
<span class="li-ico b"><svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true"><circle cx="12" cy="12" r="8.2" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M12 11v5.4" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"/><circle cx="12" cy="7.9" r="1.15" fill="currentColor"/></svg></span>
|
||||
<span class="li-t">关于妈妈盒子</span><span class="li-v">v3.2.1</span><i class="chev">›</i></button>
|
||||
<!-- 退出授权登录:仅已授权时显示(applyRemoteProfile 控制)。
|
||||
调 box_app /auth/logout —— 只翻授权状态,不清昵称/头像/手机号等资料 -->
|
||||
<button class="li ripple" id="meLogoutCard" style="display:none">
|
||||
<span class="li-ico r"><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"/></svg></span>
|
||||
<span class="li-t" style="color:#C33A2E">退出授权登录</span>
|
||||
<i class="chev">›</i></button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -1771,8 +1769,8 @@
|
||||
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
|
||||
不影响应用其余功能。 -->
|
||||
|
||||
<script src="js/app.js?v=26090727"></script>
|
||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090727 -->
|
||||
<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">v26090727</div>
|
||||
<script src="js/app.js?v=26090728"></script>
|
||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090728 -->
|
||||
<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">v26090728</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4222,7 +4222,7 @@
|
||||
}
|
||||
/* 授权入口:未授权时显示(引导先授权);退出按钮:已授权时显示 */
|
||||
var _box = $('#meAuthBox'); if (_box) _box.style.display = _authorized ? 'none' : '';
|
||||
var _lx = $('#meLogoutBtn'); if (_lx) _lx.style.display = _authorized ? '' : 'none';
|
||||
var _lx = $('#meLogoutCard'); if (_lx) _lx.style.display = _authorized ? '' : 'none';
|
||||
if (!p.userName) { var _ai2 = $('#meAvatarImg'); if (_ai2) _ai2.removeAttribute('src'); }
|
||||
}
|
||||
if (pg && pg.code === 200 && pg.result) {
|
||||
@@ -4419,7 +4419,7 @@
|
||||
成功后重载页面 → applyRemoteProfile 重新拉到空显示字段 → 回到未登录态、授权入口重现。
|
||||
⚠️ stopPropagation:me-card 整卡是 data-modal="modalProfile",不阻止冒泡
|
||||
会顺带打开资料弹窗。 */
|
||||
var meLogout = $('#meLogoutBtn');
|
||||
var meLogout = $('#meLogoutCard');
|
||||
if (meLogout) meLogout.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
@@ -1557,12 +1557,6 @@ a.skip:focus{left:16px;top:16px}
|
||||
.me-card:active{transform:scale(.985)}
|
||||
/* 尖括号跟全站 .chev 一个灰度,别再用白色 */
|
||||
.me-chev{margin-left:auto;flex:0 0 auto;font-style:normal;font-size:24px;line-height:1;color:#C9BFB8}
|
||||
/* 退出登录图标按钮:住 me-card **右上角**(绝对定位,不占 flex 流)。
|
||||
⚠️ 只在已登录时显示(applyRemoteProfile 按 p.userName 控制显隐);
|
||||
未登录显示"退出"没有意义。chev 恢复 margin-left:auto 占最右。 */
|
||||
.me-card{position:relative}
|
||||
.me-exit{position:absolute;top:10px;right:44px;color:#C9BFB8;flex:0 0 auto}
|
||||
.me-exit:active{color:#C33A2E}
|
||||
/* 头像底从「白蒙版 + 白描边」换成暖橘底 + 品牌色剪影(与 .pc-ico 同一套配色)。
|
||||
⚠️ 外圈本批从 #FFF3EC 改回了纯 #fff。那圈浅橘白光晕本来是照着
|
||||
「卡是白的」调的 —— 卡一变暖(终点 #FFE9DB),#FFF3EC 就夹在
|
||||
|
||||
Reference in New Issue
Block a user