From 706d0f9e5e1f76e2002a91ecccfd62c9ad3ad443 Mon Sep 17 00:00:00 2001
From: pyt <626651354@qq.com>
Date: 星期四, 13 三月 2025 10:46:50 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/threeSide

---
 management/src/pages/Login/index.tsx |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/management/src/pages/Login/index.tsx b/management/src/pages/Login/index.tsx
index f53f29d..4b064d6 100644
--- a/management/src/pages/Login/index.tsx
+++ b/management/src/pages/Login/index.tsx
@@ -11,6 +11,7 @@
 import Settings from '../../../config/defaultSettings';
 import EditPwd from './editPwd.jsx';
 import { updatePwd } from './service.js';
+import bgImg from '../../../public/loginBg.png';
 import './style.less';
 
 const Lang = () => {
@@ -62,6 +63,9 @@
     return {
       height: '100vh',
       overflow: 'auto',
+      backgroundImage: `url(${bgImg})`,
+      backgroundSize: 'cover',
+      backgroundPosition: 'center',
     };
   });
 
@@ -72,7 +76,7 @@
       id: 'pages.login.success',
       defaultMessage: '登录成功!',
     });
-    const userInfo = { userName: data.name,...data };
+    const userInfo = { userName: data.name, ...data };
     localStorage.setItem('userInfo', JSON.stringify(userInfo));
     let permissionList: any[] = [
       "/work_order_transaction_management/work_order_item_configuration",
@@ -122,7 +126,7 @@
     setInitialState((s: any) => ({
       ...s,
       token: data.token,
-      userName:data.name,
+      userName: data.name,
       permission: accessObj,
       currentUser: userInfo,
       settings: Settings,
@@ -165,15 +169,11 @@
             top: '50%',
             left: '50%',
             transform: 'translate(-50%,-50%)',
-            display: 'flex',
-            alignItems: 'center',
           }}
         >
-          <div style={{ width: '787px', fontSize: '26px', textAlign: 'center' }}>
-            <h1>
-              “三个身边”群众工作机制
-            </h1>
-            <h1>平台</h1>
+          <div className='sysName'>
+            <div>“三个身边”</div>
+            <div>群众工作机制</div>
           </div>
           <LoginForm
             contentStyle={{
@@ -197,7 +197,7 @@
               await handleSubmit(values as API.LoginParams);
             }}
           >
-            <h1 style={{ fontSize: '26px', textAlign: 'center', marginBottom: '20px' }}>登录</h1>
+            <div style={{ fontSize: '23px', lineHeight: '32px', textAlign: 'center', marginBottom: '45px', fontWeight: 'bold' }}>登录</div>
             {status === 'error' && loginType === 'username' && (
               <LoginMessage
                 content={intl.formatMessage({
@@ -212,7 +212,7 @@
                   name="phone"
                   fieldProps={{
                     size: 'large',
-                    prefix: <UserOutlined />,
+                    prefix: <img src={require('../../../public/account.png')} style={{ width: 18, height: 18 }} />,
                   }}
                   placeholder="请输入账号"
                   rules={[
@@ -226,7 +226,7 @@
                   name="password"
                   fieldProps={{
                     size: 'large',
-                    prefix: <LockOutlined />,
+                    prefix: <img src={require('../../../public/password.png')} style={{ width: 18, height: 18 }} />,
                   }}
                   placeholder="请输入密码"
                   rules={[
@@ -236,12 +236,12 @@
                     },
                   ]}
                 />
-                <Space>
+                <div className='codeBox'>
                   <ProFormText
                     name="code"
                     fieldProps={{
                       size: 'large',
-                      prefix: <SafetyOutlined />,
+                      prefix: <img src={require('../../../public/code.png')} style={{ width: 18, height: 18 }} />,
                     }}
                     placeholder="请输入验证码"
                     rules={[
@@ -251,10 +251,10 @@
                       },
                     ]}
                   />
-                  <div style={{ marginBottom: '24px' }}>
-                    <Captcha onChange={handleClick} ref={captchaRef} bgColor="#fff" />
+                  <div>
+                    <Captcha onChange={handleClick} ref={captchaRef} bgColor="#fff" height={52} />
                   </div>
-                </Space>
+                </div>
               </>
             )}
             {status === 'error' && loginType === 'mobile' && <LoginMessage content="验证码错误" />}

--
Gitblit v1.7.1