v26110605 退出后头图/我的孕期卡改登录文案,弹窗按钮居中,「宝宝出生了」和孕期卡也拦
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
'.mbg-c{width:min(300px,82vw);background:#fff;border-radius:20px;padding:24px 20px 18px;text-align:center;box-shadow:0 18px 50px rgba(60,20,30,.25);font-family:inherit}' +
|
||||
'.mbg-c h3{margin:0 0 8px;font-size:18px;color:#3B2A2A}' +
|
||||
'.mbg-c p{margin:0 0 18px;font-size:14px;line-height:1.6;color:#8A7470}' +
|
||||
'.mbg-b{display:flex;gap:10px}.mbg-b button{flex:1;height:42px;border-radius:21px;border:0;font-size:15px;font-weight:600;font-family:inherit}' +
|
||||
'.mbg-b{display:flex;gap:10px}.mbg-b button{flex:1;display:flex;align-items:center;justify-content:center;padding:0;text-align:center;height:42px;border-radius:21px;border:0;font-size:15px;font-weight:600;font-family:inherit}' +
|
||||
'.mbg-x{background:#F6EEEC;color:#8A7470}.mbg-ok{background:linear-gradient(135deg,#FF8A7A,#F25F6B);color:#fff}' +
|
||||
'html.night .mbg-c{background:#2D2730}html.night .mbg-c h3{color:#F4EAEF}html.night .mbg-c p{color:#B9A9AF}html.night .mbg-x{background:#3A3239;color:#C9B9BE}';
|
||||
document.head.appendChild(st);
|
||||
@@ -97,7 +97,7 @@
|
||||
var REC = ['taidong', 'yunqitizhong', 'yun', 'yunqixuetang', 'gongsuopinlv', 'taierguzhong', 'chanjianrili', 'bushui']
|
||||
.map(function (t) { return '#htGrid .tg[data-tool="' + t + '"]'; }).join(',');
|
||||
var SEL = {
|
||||
home: REC + ',#vitals .vt-it,.tab-fab,.fab,.fab-w,#htEdit,.tg-add,#homeExchMod,#meExchCard,#meExchGo,#meExchOrders,#bbBanner,[data-modal="modalProfile"],[data-modal="modalWhisper"]',
|
||||
home: REC + ',#vitals .vt-it,.tab-fab,.fab,.fab-w,#htEdit,.tg-add,#homeExchMod,#meExchCard,#meExchGo,#meExchOrders,#bbBanner,[data-modal="modalProfile"],[data-modal="modalWhisper"],#bfMe,.preg-card',
|
||||
plaza: '#blk,#bfv,#csend,#cpic,#cemo,#cpOk,[data-like],[data-cl],[data-rk],#cmgo,[data-write],[data-mywrite],#tabRec',
|
||||
topic: '.tc-lk,.tc-go,.tc-in .pic-b,.tc-in .emo-b'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user