批量优化

This commit is contained in:
hero920103 committed 2026-10-08 15:30:37 +08:00
1 parent 438145cae7
commit c925b198d1
50 files changed
+5716 -291

No files matched your search

+25
View File
@@ -164,6 +164,17 @@
75% { transform: translateX(4px); }
}
.notice-box {
display: flex; align-items: flex-start; gap: 9px;
background: #f0fff4; border: 1px solid #b7ebc2; color: #1f7a37;
padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6;
margin-bottom: 18px;
}
.notice-box.warn {
background: #fffbe6; border-color: #ffe89e; color: #a96a00;
}
.notice-box svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.field { margin-bottom: 18px; }
.field-label {
display: flex; align-items: center; justify-content: space-between;
@@ -455,6 +466,17 @@
<p class="panel-sub">请输入您的账号与密码以继续</p>
</div>
{{if .Notice}}
<div class="notice-box{{if eq .Notice "registered_warn"}} warn{{end}}">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
{{if eq .Notice "registered_warn"}}<circle cx="12" cy="12" r="9"/><path d="M12 8v5M12 16h.01"/>{{else}}<path d="M12 3l7 3v6c0 4.2-2.9 7.6-7 9-4.1-1.4-7-4.8-7-9V6l7-3z"/><path d="M9.2 12.2l2 2 3.6-4"/>{{end}}
</svg>
<span>
{{if eq .Notice "reset"}}密码已重置,请使用新密码登录{{else if eq .Notice "registered_warn"}}{{.WarnMsg}},可先登录{{else}}注册成功,请使用新账号登录{{end}}
</span>
</div>
{{end}}
<div class="error" id="error">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<circle cx="12" cy="12" r="9"/><path d="M12 8v5M12 16h.01"/>
@@ -493,6 +515,7 @@
<div class="row-extra">
<label class="remember"><input type="checkbox" id="remember"> 记住账号</label>
<a class="link" href="/auth/forgot?client_id={{urlquery .ClientID}}&redirect={{urlquery .Redirect}}">忘记密码?</a>
</div>
<button class="btn" id="submitBtn" type="submit">
@@ -501,6 +524,8 @@
</button>
</form>
<div class="back" style="margin-top:16px">还没有账号?<a class="link" href="/auth/register?client_id={{urlquery .ClientID}}&redirect={{urlquery .Redirect}}">立即注册</a></div>
<div class="third-area" id="thirdArea" style="display:none">
<div class="divider"><span>其他登录方式</span></div>
<div class="third-list" id="thirdList"></div>