| | |
| | | import Utils from '@/utils/utils.js' |
| | | import avatar from '@/assets/img/avatar.jpg' |
| | | import wxicon from '@/assets/img/wx-icon.png' |
| | | import mkpublic from '@/assets/img/mkpublic.jpg' |
| | | import './index.scss' |
| | | |
| | | const { confirm } = Modal |
| | |
| | | fullName: '', |
| | | logourl: window.GLOB.mainlogo, |
| | | wxVisible: false, |
| | | wxStep: 1, |
| | | loginVisible: false, |
| | | loginLoading: false, |
| | | avatar: Utils.getrealurl(sessionStorage.getItem('avatar')), |
| | |
| | | } |
| | | } |
| | | }) |
| | | |
| | | if (sessionStorage.getItem('local_error')) { |
| | | try { |
| | | let param = JSON.parse(sessionStorage.getItem('local_error')) |
| | | setTimeout(() => { |
| | | Api.genericInterface({ |
| | | func: 's_special_error_note_log', |
| | | ...param |
| | | }).then(res => { |
| | | if (res.status) { |
| | | sessionStorage.removeItem('local_error') |
| | | } |
| | | }) |
| | | }, 3000) |
| | | } catch (e) { |
| | | sessionStorage.removeItem('local_error') |
| | | } |
| | | } |
| | | } |
| | | |
| | | shouldComponentUpdate (nextProps, nextState) { |
| | |
| | | cancelText: dict['cancel'] || '取消', |
| | | onOk() { |
| | | sessionStorage.clear() |
| | | that.props.history.replace('/login') |
| | | window.location.reload() |
| | | setTimeout(() => { |
| | | that.props.history.replace('/login') |
| | | window.location.reload() |
| | | }, 100) |
| | | }, |
| | | onCancel() {} |
| | | }) |
| | |
| | | if (PageParam.OpenType === 'outpage' && PageParam.linkUrl) { |
| | | fstItem.OpenType = 'newpage' |
| | | fstItem.src = window.GLOB.systemType === 'production' && PageParam.linkProUrl ? PageParam.linkProUrl : PageParam.linkUrl |
| | | fstItem.src = fstItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) |
| | | fstItem.src = fstItem.src.replace(/@userid@/ig, sessionStorage.getItem('UserID')) |
| | | if (/#\/iframe\//.test(fstItem.src)) { |
| | | fstItem.src = fstItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) |
| | | fstItem.type = 'iframe' |
| | | fstItem.OpenType = 'newtab' |
| | | } |
| | |
| | | if (trdItem.type === 'NewPage') { |
| | | trdItem.OpenType = 'newpage' |
| | | trdItem.src = window.GLOB.systemType === 'production' && PageParam.proUrl ? PageParam.proUrl : PageParam.url || '' |
| | | trdItem.src = trdItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) |
| | | trdItem.src = trdItem.src.replace(/@userid@/ig, sessionStorage.getItem('UserID')) |
| | | if (/#\/iframe\//.test(trdItem.src)) { |
| | | trdItem.src = trdItem.src.replace(/@loginuid@/ig, sessionStorage.getItem('LoginUID')) |
| | | trdItem.type = 'iframe' |
| | | trdItem.OpenType = 'newtab' |
| | | } |
| | |
| | | if (!isNaN(s) && s > 90) { |
| | | Modal.warning({ |
| | | width: 520, |
| | | title: <span>系统检测到您的账户存在风险,请及时到<a target="_blank" rel="noopener noreferrer" href="https://cloud.mk9h.cn/admin/index.html">云中心</a>修改密码!</span>, |
| | | title: <span>系统检测到您的账户存在风险,请及时到<a target="_blank" rel="noopener noreferrer" href="https://cloud.positecgroup.com/admin/index.html">云中心</a>修改密码!</span>, |
| | | okText: '知道了' |
| | | }) |
| | | return |
| | |
| | | <Menu.Item key="verup" onClick={this.verup}> |
| | | {dict['page_upd'] || '页面更新'} |
| | | </Menu.Item> |
| | | {window.GLOB.WXNotice ? <Menu.Item key="wxnotice" onClick={() => this.setState({wxVisible: true})}> |
| | | {window.GLOB.WXNotice ? <Menu.Item key="wxnotice" onClick={() => this.setState({wxVisible: true, wxStep: 1})}> |
| | | 微信消息 |
| | | </Menu.Item> : null} |
| | | {window.GLOB.appVersion ? <Menu.Item key="version" onClick={this.about}> |
| | |
| | | footer={null} |
| | | destroyOnClose |
| | | > |
| | | <div className="wx-sms-wrap"> |
| | | {this.state.wxStep !== 2 ? <div className="wx-sms-wrap"> |
| | | <img className="mk-img" src={mkpublic} alt=""/> |
| | | <div className="mk-tip"> |
| | | <span>微信扫码</span> |
| | | <span>关注公众号</span> |
| | | <span>关注公众号且授权后方可接收消息。</span> |
| | | <span onClick={() => this.setState({wxStep: 2})}>下一步</span> |
| | | </div> |
| | | </div> : <div className="wx-sms-wrap"> |
| | | <QrCode card={{qrWidth: 200, color: '#000000'}} value={window.GLOB.baseurl + 'mob/wxnotice.html?userid=' + sessionStorage.getItem('UserID') + '&loginuid=' + sessionStorage.getItem('LoginUID')}/> |
| | | <div className="tip"> |
| | | <img src={wxicon} alt=""/> |
| | | <span>微信扫码</span> |
| | | <span>关注公众号</span> |
| | | <span>获取用户授权</span> |
| | | </div> |
| | | </div> |
| | | </div>} |
| | | </Modal> |
| | | </header> |
| | | ) |