diff --git a/frontend/login/index.html b/frontend/login/index.html index 32eaf8e..8a88068 100644 --- a/frontend/login/index.html +++ b/frontend/login/index.html @@ -19,9 +19,9 @@ document.documentElement.style.colorScheme = theme; })(); - + - + @@ -33,6 +33,73 @@

A股个人复盘工作台

+

收盘之后 · 复盘开始

看懂情绪周期,把复盘变成下一次的先手。

@@ -90,6 +157,6 @@
- + diff --git a/frontend/login/page.js b/frontend/login/page.js index 23af83b..73f22ec 100644 --- a/frontend/login/page.js +++ b/frontend/login/page.js @@ -15,6 +15,7 @@ error: "", username: "", password: "", + passwordVisible: false, }; function escapeHtml(value) { @@ -102,6 +103,8 @@ const lead = options.lead; const hint = options.hint; const invalid = state.error ? " is-invalid" : ""; + const passwordType = state.passwordVisible ? "text" : "password"; + const passwordToggle = state.passwordVisible ? "隐藏" : "显示"; return [ options.back ? '' @@ -114,7 +117,7 @@ "
", '
', ``, - ``, + ``, ``, state.error ? `

${escapeHtml(state.error)}

` : '', `