king
2021-08-11 a757b75163d77acc5111637fbe20ec61d895a72b
src/pc/components/login/normal-login/loginform.jsx
@@ -3,8 +3,11 @@
import { is, fromJS } from 'immutable'
import { Form, Icon, Input, Button, Checkbox } from 'antd'
import asyncElementComponent from '@/utils/asyncComponent'
import MKEmitter from '@/utils/events.js'
import './index.scss'
const QrCode = asyncElementComponent(() => import('@/components/qrcode'))
class LoginTabForm extends Component {
  static propTpyes = {
@@ -45,7 +48,9 @@
          _loginWays.push(item)
        }
      })
      console.log(nextProps.wrap)
      console.log(loginWays)
      console.log(_loginWays)
      this.setState({
        loginWays: _loginWays,
        activeWay: _loginWays[0],
@@ -131,6 +136,12 @@
            </Button>
          </Form.Item>
        </div> : null}
        {activeWay.type === 'app_scan' ? <div className="form-scan-wrap">
          <div className="qr-wrap">
            <QrCode card={{qrWidth: 500, color: '#000000'}} value={'minkesoft'}/>
          </div>
          请使用客户端扫一扫登录
        </div> : null}
      </Form>
    )
  }