king
2025-05-13 1a176e4bdba485301385caac1a29102e598d25cc
src/views/login/loginform.jsx
@@ -26,6 +26,7 @@
    username: '',
    password: '',
    remember: true,
    protocol: null,
    delay: null,
    loginWays: [],
    smsId: '',
@@ -302,6 +303,14 @@
    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更新
   */
@@ -312,7 +321,7 @@
  }
  render() {
    const { langList } = this.props
    const { langList, isDisabled } = this.props
    const { getFieldDecorator } = this.props.form
    const { remember, users, dict, lang, vispwd } = this.state
@@ -377,7 +386,7 @@
            )}
          </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>