| | |
| | | } |
| | | } |
| | | |
| | | let content = window.decodeURIComponent(window.atob(prolCont)) |
| | | |
| | | return ( |
| | | <> |
| | | {prolType !== 'not_required' ? <Checkbox defaultChecked={checked} onChange={change} style={{marginRight: '8px'}}></Checkbox> : null} |
| | | <span dangerouslySetInnerHTML={{__html: content}}></span> |
| | | <Checkbox defaultChecked={checked} onChange={change} style={{marginRight: '8px'}}></Checkbox> |
| | | <span dangerouslySetInnerHTML={{__html: prolCont}}></span> |
| | | </> |
| | | ) |
| | | } |
| | |
| | | protocol = localStorage.getItem(window.GLOB.sysSign + 'protocol') === 'true' |
| | | } else if (prolType === 'every_time') { |
| | | protocol = false |
| | | } else if (prolType === 'not_required') { |
| | | protocol = true |
| | | } |
| | | |
| | | let remember = true |
| | |
| | | </Select> |
| | | )} |
| | | </Form.Item> : null} |
| | | {prolType ? <Form.Item className="proline"> |
| | | <CheckWrap checked={protocol} onChange={(val) => this.setState({protocol: val})} prolCont={prolCont} prolType={prolType}/> |
| | | </Form.Item> : null} |
| | | <Form.Item className="btn-login"> |
| | | {protocol === false ? <Tooltip placement="top" trigger="click" title={dict['protocol_check'] || '请阅读并同意协议!'}> |
| | | {protocol === false ? <Tooltip overlayStyle={{maxWidth: 500}} placement="top" trigger="click" title={dict['protocol_check'] || '请阅读并同意协议!'}> |
| | | <Button type="primary" htmlType="submit" className="login-form-button disabled"> |
| | | {dict['log_in'] || '登录'} |
| | | </Button> |
| | |
| | | {dict['log_in'] || '登录'} |
| | | </Button>} |
| | | </Form.Item> |
| | | {prolType ? <Form.Item className="proline"> |
| | | <CheckWrap checked={protocol} onChange={(val) => this.setState({protocol: val})} prolCont={prolCont} prolType={prolType}/> |
| | | </Form.Item> : null} |
| | | {window.GLOB.sysType === 'cloud' && options.cdomain.indexOf('mk9h') > -1 ? <Form.Item className="register-line"> |
| | | <a href="http://www.minkesoft.com/signup" target="_blank" rel="noopener noreferrer" className="register">注册</a> |
| | | <a href="http://www.minkesoft.com/forgotPwd" target="_blank" rel="noopener noreferrer" className="forgot">忘记密码?</a> |
| | |
| | | </Select> |
| | | )} |
| | | </Form.Item> : null} |
| | | {prolType ? <Form.Item className="proline"> |
| | | <CheckWrap checked={protocol} onChange={(val) => this.setState({protocol: val})} prolCont={prolCont} prolType={prolType}/> |
| | | </Form.Item> : null} |
| | | <Form.Item className="btn-login"> |
| | | {protocol === false ? <Tooltip placement="top" trigger="click" title={dict['protocol_check'] || '请阅读并同意协议!'}> |
| | | {protocol === false ? <Tooltip overlayStyle={{maxWidth: 500}} placement="top" trigger="click" title={dict['protocol_check'] || '请阅读并同意协议!'}> |
| | | <Button type="primary" htmlType="submit" className="login-form-button disabled"> |
| | | {dict['log_in'] || '登录'} |
| | | </Button> |
| | |
| | | {dict['log_in'] || '登录'} |
| | | </Button>} |
| | | </Form.Item> |
| | | {prolType ? <Form.Item className="proline"> |
| | | <CheckWrap checked={protocol} onChange={(val) => this.setState({protocol: val})} prolCont={prolCont} prolType={prolType}/> |
| | | </Form.Item> : null} |
| | | {window.GLOB.sysType === 'cloud' && options.cdomain.indexOf('mk9h') > -1 ? <Form.Item className="register-line"> |
| | | <a href="http://www.minkesoft.com/signup" target="_blank" rel="noopener noreferrer" className="register">注册</a> |
| | | <a href="http://www.minkesoft.com/forgotPwd" target="_blank" rel="noopener noreferrer" className="forgot">忘记密码?</a> |