From d89431aae1d219376d3d03065c42c978b654da3a Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 00:56:18 +0000 Subject: [PATCH] =?UTF-8?q?login-gate.js=20=E5=BC=B9=E7=AA=97=E6=96=87?= =?UTF-8?q?=E6=A1=88=E5=8F=AF=E6=8C=89=E9=A1=B5=E9=9D=A2=E6=94=B9=EF=BC=88?= =?UTF-8?q?MB=5FGATE=5FTITLE=20/=20MB=5FGATE=5FTEXT=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- js/login-gate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/login-gate.js b/js/login-gate.js index 26fe004..a659c71 100644 --- a/js/login-gate.js +++ b/js/login-gate.js @@ -80,7 +80,7 @@ box.className = 'mbg-m'; box.setAttribute('role', 'dialog'); box.setAttribute('aria-modal', 'true'); - box.innerHTML = '

登录后才能使用

你已退出登录。登录后就能记录、评论和点赞,之前的孕期资料和记录都还在。

' + + box.innerHTML = '

' + (window.MB_GATE_TITLE || '登录后才能使用') + '

' + (window.MB_GATE_TEXT || '你已退出登录。登录后就能记录、评论和点赞,之前的孕期资料和记录都还在。') + '

' + '
'; box.addEventListener('click', function (e) { if (e.target.closest('.mbg-ok')) { hide(); G.login(); return; } @@ -111,6 +111,7 @@ /* 其他应用(数胎动、体重……)引本文件时自己指定: window.MB_GATE_SEL = '.save-btn,.add-record'; 点了要拦的按钮(CSS 选择器) window.MB_GATE_IN = '.note-input'; 一聚焦就提示的输入框 + window.MB_GATE_TEXT = '登录后就能兑换好物…'; 弹窗正文(可选,标题用 MB_GATE_TITLE) 或在自己的提交函数里:if (window.mbGate && mbGate.need()) return; */ function selFor(map, cus) { return window[cus] || map[page()] || ''; } document.addEventListener('click', function (e) {