From f18d120ebfe2e3faa88674351dff05c5837879fa Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 30 十二月 2020 09:48:18 +0800
Subject: [PATCH] 登录页调整

---
 src/views/login/loginform.jsx |   12 ++++++------
 src/views/login/index.scss    |   10 ++++++++--
 src/views/login/index.jsx     |    7 ++-----
 3 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx
index 79a10c0..73d268e 100644
--- a/src/views/login/index.jsx
+++ b/src/views/login/index.jsx
@@ -100,11 +100,8 @@
 
       let _url = window.location.href.split('#')[0]
 
-      if (param.remember) { // 璁颁綇瀵嗙爜鏃惰处鍙峰瘑鐮佸瓨鍏ocalStorage
-        localStorage.setItem(_url, window.btoa(window.encodeURIComponent(JSON.stringify({username: param.username, password: param.password}))))
-      } else {
-        localStorage.removeItem(_url)
-      }
+      // 璁颁綇瀵嗙爜鏃惰处鍙峰瘑鐮佸瓨鍏ocalStorage
+      localStorage.setItem(_url, window.btoa(window.encodeURIComponent(JSON.stringify({username: param.username, password: param.password}))))
 
       let _param = {
         UserName: param.username,
diff --git a/src/views/login/index.scss b/src/views/login/index.scss
index eba2bfd..2ec9de8 100644
--- a/src/views/login/index.scss
+++ b/src/views/login/index.scss
@@ -12,7 +12,7 @@
     width: 990px;
     margin: 0 auto;
     img {
-      max-height: 100%;
+      height: 47px;
     }
     .plat-name {
       position: absolute;
@@ -100,7 +100,7 @@
         color: #427CAA;
         font-size: 22px;
         font-weight: bold;
-        margin: 15px 1.6vw 5px;
+        margin: 20px 1.6vw 5px;
       }
 
       h4 {
@@ -177,6 +177,7 @@
         font-size: 16px;
         height: calc(2vw + 5px);
         min-height: 30px;
+        border-radius: 0;
       }
       .ant-form label {
         font-size: 16px;
@@ -187,6 +188,11 @@
       .anticon-eye {
         color: #1890ff;
       }
+      .login-form-button {
+        border-radius: 0;
+        background: #6fb3e9;
+        border: 1px solid #6fb3e9;
+      }
     }
     .login-sync-button {
       position: absolute;
diff --git a/src/views/login/loginform.jsx b/src/views/login/loginform.jsx
index 9bff724..f92a8b4 100644
--- a/src/views/login/loginform.jsx
+++ b/src/views/login/loginform.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Form, Icon, Input, Button, Checkbox, Select, Modal, message } from 'antd'
+import { Form, Icon, Input, Button, Modal, message } from 'antd'
 import md5 from 'md5'
 import moment from 'moment'
 
@@ -271,7 +271,7 @@
 
   render() {
     const { getFieldDecorator } = this.props.form
-    const { activeKey, verdisabled, delay, loginWays, remember } = this.state
+    const { activeKey, verdisabled, delay, loginWays } = this.state
 
     return (
       <Form className={`login-form login-form-${loginWays.length}`} id="login-form" onSubmit={this.handleSubmit}>
@@ -332,13 +332,13 @@
               />
             )}
           </Form.Item> : null}
-          {activeKey === 'uname_pwd' ? <Form.Item className="minline">
+          {/* {activeKey === 'uname_pwd' ? <Form.Item className="minline">
             {getFieldDecorator('remember', {
               valuePropName: 'checked',
               initialValue: remember,
             })(<Checkbox onChange={this.rememberChange}>{this.props.dict['login.remember']}</Checkbox>)}
-          </Form.Item> : null}
-          <Form.Item className="minline right">
+          </Form.Item> : null} */}
+          {/* <Form.Item className="minline right">
             {getFieldDecorator('system', {
               initialValue: localStorage.getItem('bmsSystem') === 'new' ? 'new' : 'old',
             })(
@@ -347,7 +347,7 @@
                 <Select.Option key="new" value="new">鏂扮郴缁�</Select.Option>
               </Select>
             )}
-          </Form.Item>
+          </Form.Item> */}
           {['uname_pwd', 'sms_vcode'].includes(activeKey) ? <Form.Item className="btn-login">
             <Button type="primary" htmlType="submit" className="login-form-button" disabled={this.props.isDisabled} loading={this.props.isDisabled}>
               {this.props.dict['login.submit']}

--
Gitblit v1.8.0