| | |
| | | import React, {Component} from 'react' |
| | | import { withRouter } from 'react-router-dom' |
| | | import { Spin, notification, Table, Typography, Row, Col, Tooltip } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | |
| | |
| | | bg_black_style_magenta: {name: '洋红色', color: '#eb2f96'}, |
| | | bg_black_style_grass_green: {name: '草绿色', color: '#aeb303'}, |
| | | bg_black_style_deep_red: {name: '深红色', color: '#c32539'}, |
| | | bg_black_style_deep_blue: {name: '深红色', color: '#1d3661'} |
| | | bg_black_style_deep_blue: {name: '深蓝色', color: '#1d3661'} |
| | | } |
| | | |
| | | class AppCheck extends Component { |
| | |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | document.body.className = '' |
| | | this.getAppList() |
| | | if (sessionStorage.getItem('UserID')) { |
| | | this.getAppList() |
| | | return |
| | | } |
| | | } |
| | | |
| | | componentDidMount() { |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | this.props.history.replace('/login') |
| | | return |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | cell.logo = _param.logo || '' |
| | | cell.wxAppId = _param.wxAppId || '' |
| | | cell.wxAppName = _param.wxAppName || '' |
| | | cell.wxMerchId = _param.wxMerchId || '' |
| | | cell.wxMerchName = _param.wxMerchName || '' |
| | | } |
| | | |
| | | return cell |
| | |
| | | |
| | | render () { |
| | | const { loading, columns, applist, selectApp } = this.state |
| | | |
| | | if (!sessionStorage.getItem('UserID')) return null |
| | | |
| | | return ( |
| | | <div className="mk-app-check"> |
| | |
| | | </Col> |
| | | <Col span={12}> |
| | | <div className="app-item"> |
| | | {item.wxAppName ? <div className="label">关联公众号:</div> : null} |
| | | {item.wxAppName ? <div className="content">{item.wxAppName}</div> : null} |
| | | {item.wxAppName || item.wxMerchName ? <> |
| | | <div className="label">关联应用:</div> |
| | | <div className="content">{`${item.wxAppName}${item.wxAppName && item.wxMerchName ? ' / ' + item.wxMerchName : item.wxMerchName || ''}`}</div> |
| | | </> : null} |
| | | </div> |
| | | </Col> |
| | | <Col span={12}> |
| | |
| | | } |
| | | } |
| | | |
| | | export default AppCheck |
| | | export default withRouter(AppCheck) |