修改文档

This commit is contained in:
Shen Wei
2026-04-28 07:34:37 +08:00
parent 3224ec4787
commit cf4001c4f8
16 changed files with 1489 additions and 171 deletions

View File

@@ -1111,5 +1111,32 @@
</div><!-- /主容器 -->
<script>
// 静态原型串联:从登录页跳转后显示一次登录成功提示
(function () {
const params = new URLSearchParams(window.location.search);
if (params.get('from') === 'login' && params.get('login') === 'success') {
const displayName = params.get('name') || '经纪人';
const toast = document.createElement('div');
toast.className = 'fixed bottom-6 right-6 z-[70] w-80 bg-white rounded-lg shadow-lg border border-neutral-200 flex items-start gap-3 p-3';
toast.innerHTML = `
<svg class="w-5 h-5 text-success-600 mt-0.5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
</svg>
<div class="min-w-0">
<p class="text-sm font-medium text-neutral-800">登录成功</p>
<p class="text-xs text-neutral-500 mt-0.5">欢迎回来,${displayName}</p>
</div>
`;
document.body.appendChild(toast);
setTimeout(() => {
toast.style.transition = 'opacity .25s ease';
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 260);
}, 2200);
}
})();
</script>
</body>
</html>