样式修改完成,待测试

This commit is contained in:
rain
2026-07-07 17:07:34 +08:00
parent 0f6ed0cad3
commit 8a6a8acab7
32 changed files with 2097 additions and 505 deletions
+22 -8
View File
@@ -305,6 +305,26 @@
return true;
}
function getLoginRedirectUrl() {
const redirect = new URLSearchParams(window.location.search).get("redirect");
return (
redirect ||
(typeof CommonUtil !== "undefined"
? CommonUtil.siteHref("/index.html")
: "index.html")
);
}
function redirectAfterLogin() {
window.location.href = getLoginRedirectUrl();
}
function bindReferralThenRedirect() {
AuthPageUtil.bindPendingReferralInviteCode()
.then(redirectAfterLogin)
.catch(redirectAfterLogin);
}
function submitLogin() {
const payload = Object.assign(
{
@@ -331,14 +351,7 @@
layerInstance.msg(
"登录成功,即将跳转到首页",
{ icon: 1, time: 1200 },
function () {
const redirect = new URLSearchParams(window.location.search).get("redirect");
window.location.href =
redirect ||
(typeof CommonUtil !== "undefined"
? CommonUtil.siteHref("/index.html")
: "index.html");
},
bindReferralThenRedirect,
);
return;
}
@@ -363,6 +376,7 @@
layui.use(["layer", "jquery"], function () {
layerInstance = layui.layer;
AuthPageUtil.captureReferralInviteFromUrl();
loadVerifyConfig().then(refreshCaptcha);
$("#loginForm").on("submit", function (event) {
event.preventDefault();