v26110605 退出后头图/我的孕期卡改登录文案,弹窗按钮居中,「宝宝出生了」和孕期卡也拦

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 00:31:30 +00:00
parent 2f2a0a5029
commit 7369704712
2 changed files with 6 additions and 5 deletions

View File

@@ -2005,9 +2005,9 @@
别再直接改 display:与本模块的另一个 owner 撞竞态(2026-09-22 实测漏过 degraded 场景)。 */
fpRender();
/* ① 我的 · 孕期卡 → 引导 */
$('#pcTitle').textContent = '待完善孕期信息';
$('#pcTitle').textContent = OUT() ? '已退出登录' : '待完善孕期信息';
setMeTag('');
$('#pcSub').textContent = '填好预产期,开启孕期陪伴';
$('#pcSub').textContent = OUT() ? '登录后查看你的孕期信息和记录' : '填好预产期,开启孕期陪伴';
$('#pcBar').style.setProperty('--p', '0%');
const rg = $('#pcRing');
if (rg) {
@@ -2023,7 +2023,7 @@
$('#heroPlus').textContent = '';
$('#heroDays').textContent = '--';
$('#heroWho').textContent = nm;
setHero({ due: '填好预产期,开启倒计时', emoji: '🌱', hi: 'sprout', size: '', pct: 0 });
setHero({ due: OUT() ? '登录后查看宝宝这周的变化' : '填好预产期,开启倒计时', emoji: '🌱', hi: 'sprout', size: '', pct: 0 });
/* ③ 档案页 → 占位 */
$('#arTitleName').textContent = nm;
$('#arLine1').textContent = '完善孕期信息后开启';
@@ -3812,6 +3812,7 @@
/* 2026-11-07 用户:退出登录后按访客显示(js/login-gate.js 的 mbGate.out)——身份两键对页面「不存在」,
页面各处现成的访客分支自动生效(不出孕周、记录、来信……)。
跳到别的应用(withIdentity)和授权仍用真身份(rawParam):授权页要认人,其他应用由各自处理退出状态。 */
function OUT() { return !!(window.mbGate && window.mbGate.out); }
function hashParam(name) {
if ((name === 'openid' || name === 'unionid') && window.mbGate && window.mbGate.out) return '';
return rawParam(name);