king
2024-06-17 b6c7f588b831d6fa4eb23b50ec08ea0b263a0717
src/views/login/loginform.jsx
@@ -23,7 +23,6 @@
    authLogin: PropTypes.func,
    auth: PropTypes.bool,
    authError: PropTypes.string,
    touristLogin: PropTypes.bool,
    lang: PropTypes.string,
    langList: PropTypes.array,
    loginWays: PropTypes.array
@@ -196,8 +195,7 @@
    if (!this.props.auth) {
      warning({
        title: this.props.authError || dict['auth_tip'] || '系统未授权,请联系管理员。',
        okText: dict['ok'] || '确定',
        cancelText: dict['cancel'] || '取消',
        okText: dict['got_it'] || '知道了',
        onOk() {},
        onCancel() {}
      })
@@ -277,16 +275,16 @@
  }
  getvercode = () => {
    const { smsId } = this.state
    const { smsId, dict } = this.state
    let _phone = this.props.form.getFieldValue('phone')
    if (!_phone) {
      message.warning('请输入手机号!')
      message.warning(dict['phone_no_required'] || '请输入手机号!')
      return
    } else if (!/^1[3456789]\d{9}$/.test(_phone)) {
      message.warning('手机号格式错误,请重填!')
      message.warning(dict['phone_error'] || '手机号格式错误,请重填!')
      return
    } else if (!this.props.touristLogin) {
      message.warning('未获取验证码设置,请稍后或刷新重试!')
    } else if (!sessionStorage.getItem('visitorUserID') || !sessionStorage.getItem('visitorLoginUID')) {
      message.warning(dict['vercode_error'] || '未获取验证码设置,请稍后或刷新重试!')
      return
    }