样式修改完成,待测试
This commit is contained in:
+22
-8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user