mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-31 03:53:30 +08:00
登录页面优化
This commit is contained in:
@@ -22,10 +22,13 @@ const LoginPage = () => {
|
||||
const [captchaVal, setCaptchaVal] = useState<string>("");
|
||||
const [captchaKey, setCaptchaKey] = useState<string>("");
|
||||
const [captchaLoading, setCaptchaLoading] = useState(true);
|
||||
const [bodyHeight, setBodyHeight] = useState<number>(0);
|
||||
|
||||
useEffect(() => {
|
||||
fetchImageCaptcha();
|
||||
document.title = "登录";
|
||||
let value = document.documentElement.clientHeight;
|
||||
setBodyHeight(value);
|
||||
}, []);
|
||||
|
||||
const fetchImageCaptcha = () => {
|
||||
@@ -123,7 +126,10 @@ const LoginPage = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={styles["login-content"]}>
|
||||
<div
|
||||
className={styles["login-content"]}
|
||||
style={{ height: bodyHeight + "px" }}
|
||||
>
|
||||
<div className={styles["top-content"]}>
|
||||
<div className={styles["title"]}>学员登录</div>
|
||||
<Image src={banner} width={150} height={150} />
|
||||
|
||||
Reference in New Issue
Block a user