| | |
| | | } |
| | | |
| | | if (['every_time', 'once', 'not_required'].includes(res.require_legal_consent) && res.legal_documents) { |
| | | systemMsg.prolType = res.require_legal_consent |
| | | systemMsg.prolCont = res.legal_documents |
| | | try { |
| | | systemMsg.prolCont = window.decodeURIComponent(window.atob(systemMsg.prolCont)) |
| | | if (res.require_legal_consent !== 'not_required') { |
| | | systemMsg.prolType = res.require_legal_consent |
| | | } |
| | | } catch(e) { |
| | | systemMsg.prolType = '' |
| | | systemMsg.prolCont = '' |
| | | } |
| | | } |
| | | |
| | | if ([10, 20, 30, 40, 50, 60, 70, 80, 90, 100].includes(res.member_level)) { |
| | |
| | | /> : null} |
| | | </div> |
| | | <div className="login-bottom"> |
| | | <p> |
| | | {webSite && copyRight ? |
| | | <a target="_blank" rel="noopener noreferrer" href={webSite} dangerouslySetInnerHTML={{ __html: copyRight.replace(/\s/ig, ' ') }}></a> : |
| | | <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, ' ') : '' }}></p> |
| | | <span dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, ' ') : '' }}></span> |
| | | } |
| | | <br/> |
| | | {prolCont && !prolType ? <span style={{marginLeft: '15px'}} dangerouslySetInnerHTML={{ __html: prolCont }}></span> : null} |
| | | </p> |
| | | {ICP ? <a target="_blank" rel="noopener noreferrer" href="https://beian.miit.gov.cn/#/Integrated/index" dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, ' ') }}></a> : null} |
| | | </div> |
| | | {/* 编辑状态登录 */} |
| | |
| | | .btn-login { |
| | | margin-bottom: 3vh; |
| | | clear: both; |
| | | height: auto; |
| | | } |
| | | .register-line { |
| | | font-size: 14px; |
| | |
| | | display: inline-block; |
| | | margin-bottom: 3vh; |
| | | margin-top: -10px; |
| | | height: 35px; |
| | | } |
| | | .minline.right { |
| | | float: right; |
| | |
| | | margin-bottom: 10px; |
| | | height: auto; |
| | | margin-top: calc(-3vh + 10px); |
| | | font-size: 14px; |
| | | font-size: 13px; |
| | | .ant-form-item-children { |
| | | display: flex; |
| | | align-items: center; |
| | | align-items: flex-start; |
| | | line-height: 1.5; |
| | | color: rgba(0, 0, 0, 0.5); |
| | | |
| | | .ant-checkbox-inner { |
| | | width: 15px; |
| | | height: 15px; |
| | | } |
| | | |
| | | a { |
| | | color: var(--mk-sys-color); |
| | |
| | | padding-top: 20px; |
| | | p { |
| | | margin-bottom: 5px; |
| | | } |
| | | p + br { |
| | | display: none; |
| | | text-align: center; |
| | | } |
| | | a { |
| | | color: var(--mk-sys-font-color); |
| | |
| | | } |
| | | } |
| | | |
| | | 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 |
| | |
| | | )} |
| | | </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> |
| | |
| | | )} |
| | | </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> |