import React, { useEffect, useState } from 'react' import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import './style.less' import { FullScreenContainer } from '$components' function homePage(props) { const { dispatch } = props; const childStyle = { height: '32%', color: '#fff', marginBottom: 17 } const cardHeight = document.body.clientHeight * 0.896 * 0.32 const cardContentHeight = cardHeight - 42 - 13 return
{ window.open('https://superchangnan.anxinyun.cn/') }}>
{ dispatch(push('/waterprevention')) }}>
{ dispatch(push('/communitysafty')) }}>
{ dispatch(push('/firecontrol')) }}>
} function mapStateToProps(state) { const { auth, global } = state; return { clientHeight: global.clientHeight, actions: global.actions, }; } export default connect(mapStateToProps)(homePage);