| | |
| | | authLogin: PropTypes.func, |
| | | auth: PropTypes.bool, |
| | | authError: PropTypes.string, |
| | | touristLogin: PropTypes.bool, |
| | | lang: PropTypes.string, |
| | | langList: PropTypes.array, |
| | | loginWays: PropTypes.array |
| | |
| | | if (!this.props.auth) { |
| | | warning({ |
| | | title: this.props.authError || dict['auth_tip'] || '系统未授权,请联系管理员。', |
| | | okText: dict['ok'] || '确定', |
| | | cancelText: dict['cancel'] || '取消', |
| | | okText: dict['got_it'] || '知道了', |
| | | onOk() {}, |
| | | onCancel() {} |
| | | }) |
| | |
| | | } |
| | | |
| | | 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 |
| | | } |
| | | |