diff --git a/src/pages/2026/banner/index.jsx b/src/pages/2026/banner/index.jsx index b42227712..436211168 100644 --- a/src/pages/2026/banner/index.jsx +++ b/src/pages/2026/banner/index.jsx @@ -31,7 +31,7 @@ function Banner(props) { useEffect(()=>{ setDocumentTitle(mainInfo?.name || "第八届CCF开源创新大赛"); - },[]) + },[location.pathname]) return(
diff --git a/src/pages/2026/img/dynamics.png b/src/pages/2026/img/dynamics.png index 4a81cb854..ef7dccef5 100644 Binary files a/src/pages/2026/img/dynamics.png and b/src/pages/2026/img/dynamics.png differ diff --git a/src/pages/2026/information/index.jsx b/src/pages/2026/information/index.jsx index 73a742c5d..5e3044d8f 100644 --- a/src/pages/2026/information/index.jsx +++ b/src/pages/2026/information/index.jsx @@ -15,13 +15,14 @@ import { throttle } from '@/utils/mettingUtil'; function Information() { const [ isSpin , setIsSpin ] = useState(false); const [ informationList , setInformationList ] = useState([]); + const [ allInformations , setAllInformations ] = useState([]); const { dirList } = useModel('2026Config'); const [ tabKey , setTabKey ] = useState(0); const [ positionNum ,setPositionNum ] = useState([]); const[ title ,setTitle] = useState(undefined); const[ searchTitle ,setSearchTitle] = useState(undefined); const [ showNews , setShowNews] = useState(false); - + function saishiNewActive(){ const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { @@ -94,6 +95,9 @@ function Information() { totalList[e.name] = e.list }) setInformationList(totalList); + let mergedArr = [...new Set([...totalList.guide, ...totalList.notice,...totalList.forum])] + setAllInformations(mergedArr.filter(i=>i.isHomepage === "1")); + setIsSpin(false); saishiNewActive();//设置赛事新闻的动画效果 }) @@ -137,12 +141,12 @@ console.log(information,dirList);
{ - informationList["guide"] && informationList["guide"].length > 0 ? + allInformations && allInformations.length > 0 ?
{ - informationList["guide"].map((e,k)=>{ + allInformations.map((e,k)=>{ return( -
+ k < 4 &&
{e.name} {e.publishTime}
diff --git a/src/pages/2026/information/index.less b/src/pages/2026/information/index.less index 7f662da60..e878a4161 100644 --- a/src/pages/2026/information/index.less +++ b/src/pages/2026/information/index.less @@ -39,6 +39,7 @@ } .time{ margin-left: auto; + color:#6f728c; } &:nth-child(2n){ margin-left: 0px;