king
2020-12-30 f18d120ebfe2e3faa88674351dff05c5837879fa
登录页调整
3个文件已修改
27 ■■■■■ 已修改文件
src/views/login/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.scss 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/loginform.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.jsx
@@ -100,11 +100,8 @@
      let _url = window.location.href.split('#')[0]
      if (param.remember) { // 记住密码时账号密码存入localStorage
      // 记住密码时账号密码存入localStorage
        localStorage.setItem(_url, window.btoa(window.encodeURIComponent(JSON.stringify({username: param.username, password: param.password}))))
      } else {
        localStorage.removeItem(_url)
      }
      let _param = {
        UserName: param.username,
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;
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']}