import React, { useEffect, useState } from 'react' import { Collapse } from 'antd'; import {useDispatch, useSelector} from "react-redux"; import H24 from './h24' import H2 from './h2' import moment from 'moment'; import RadarPage from '../../Home/panels/forecastPanels/meteorology/radar/player' import SateCloudPage from '../../Home/panels/forecastPanels/meteorology/sateCloud/player' import './index.less' const { Panel } = Collapse; const Page = ({showPanels}) => { const dispatch = useDispatch(); const [myKey, setMyKey] = useState('1') const [badgeType, setBadgeType] = useState('') const [tmObj,setTmObj] = useState({ tm:moment(), hours:'08' }) useEffect(()=>{ setBadgeType('雷达回波') dispatch.runtime.setCameraTarget({ center: [115.2, 31.18], zoom: 9, pitch: 60 }) dispatch.map.setLayerVisible({ ShuiKuLayer: true }) return ()=>{ dispatch.map.setLayerVisible({ ShuiKuLayer: false }) } },[]) return (
setMyKey(e)} // expandIconPosition="end" // accordion={true} // bordered={false} // defaultActiveKey={['1']} // destrInactivePanel defaultActiveKey={['1']} expandIconPosition='end' destrInactivePanel accordion onChange={e => { setMyKey(e) }} > 未来24小时
} > {/* { myKey==='1'?:null } */} 短临预报
} > {/* { myKey==='2'?

:null } */}

{ (badgeType === '雷达回波'&&myKey==='1') ? (
) : null} {(badgeType === '卫星云图'&&myKey==='1') ? (
) : null} ); } export default Page;