diff --git a/src/pages/login/index.module.less b/src/pages/login/index.module.less index 3d22836..c56b537 100644 --- a/src/pages/login/index.module.less +++ b/src/pages/login/index.module.less @@ -28,18 +28,36 @@ .left-box { width: 440px; height: 100%; - .icon{ - + box-sizing: border-box; + padding: 80px 10px 80px 30px; + .icon { + width: 400px; + height: 400px; } } .right-box { width: 440px; height: 100%; - .captcha { + box-sizing: border-box; + padding: 50px 30px; + display: flex; + flex-direction: column; + .title { width: 120px; - height: 48px; - margin-left: 10px; - cursor: pointer; + height: auto; + font-size: 30px; + font-weight: 600; + color: #333333; + line-height: 30px; + border-bottom: 4px solid #ff4d4f; + box-sizing: border-box; + padding-bottom: 10px; + } + .captcha { + width: 125px; + height: 54px; + margin-left: 15px; + border: none; cursor: pointer; } } diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 9d36d08..63fd591 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; import styles from "./index.module.less"; -import { Typography, Spin, Input, Button, message } from "antd"; +import { Spin, Input, Button, message } from "antd"; import { login, system } from "../../api/index"; import { setToken } from "../../utils/index"; import { useDispatch } from "react-redux"; @@ -91,33 +91,31 @@ export const Login: React.FC = () => {
-
- 登录后台 -
-
+
后台登录
+
{ setEmail(e.target.value); }} - style={{ width: 300 }} + style={{ width: 400, height: 54 }} placeholder="请输入账号" />
-
+
{ setPassword(e.target.value); }} - style={{ width: 300 }} + style={{ width: 400, height: 54 }} placeholder="请输入密码" />
-
+
{ setCaptcha_val(e.target.value); @@ -130,9 +128,14 @@ export const Login: React.FC = () => { alt="" />
-
-
diff --git a/src/utils/index.less b/src/utils/index.less index bb4c22e..3872d05 100644 --- a/src/utils/index.less +++ b/src/utils/index.less @@ -46,6 +46,14 @@ margin-right: 24px; } +.mt-50 { + margin-top: 50px; +} + +.mb-50 { + margin-bottom: 50px; +} + .float-left { width: 100%; height: auto; @@ -82,7 +90,7 @@ .c-flex { display: flex; flex-direction: column; - align-items: center; + align-items: center; } .primary {