| | |
| | | username: '', |
| | | password: '', |
| | | remember: true, |
| | | protocol: null, |
| | | delay: null, |
| | | loginWays: [], |
| | | smsId: '', |
| | |
| | | localStorage.setItem(window.GLOB.sysSign + 'users', window.btoa(window.encodeURIComponent(JSON.stringify(_users)))) |
| | | } |
| | | |
| | | changeAgree = (val) => { |
| | | this.setState({protocol: val}) |
| | | |
| | | if (this.scanParam && val) { |
| | | this.props.authLogin(this.scanParam.thd_party_appid, this.scanParam.thd_party_openid, this.scanParam.thd_party_member_id, this.scanParam.scanId) |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @description 组件销毁,清除state更新 |
| | | */ |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { langList } = this.props |
| | | const { langList, isDisabled } = this.props |
| | | const { getFieldDecorator } = this.props.form |
| | | const { remember, users, dict, lang, vispwd } = this.state |
| | | |
| | |
| | | )} |
| | | </Form.Item> : null} |
| | | <Form.Item className="btn-login"> |
| | | <Button type="primary" htmlType="submit" className="login-form-button" disabled={this.props.isDisabled} loading={this.props.isDisabled}> |
| | | <Button type="primary" htmlType="submit" className="login-form-button" disabled={isDisabled} loading={isDisabled}> |
| | | {dict['log_in'] || '登录'} |
| | | </Button> |
| | | </Form.Item> |