From 0d2fb2e0ea6804bf48d296cc1f60c0ec5f1bf7f9 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 30 May 2023 17:32:55 +0800 Subject: [PATCH] bug --- .../Information/Component/publicBanner.jsx | 16 +-- src/forge/Information/Pages/headerPage.jsx | 24 ++--- src/forge/Information/Pages/main.jsx | 75 +++++++++----- src/forge/Information/Pages/newsList.jsx | 10 +- src/forge/Information/Pages/projectSource.jsx | 15 ++- src/forge/Information/Pages/zoneVIP.jsx | 7 ++ src/forge/Information/img/menu6.png | Bin 4824 -> 5521 bytes src/forge/Information/img/menu7.png | Bin 0 -> 3136 bytes src/forge/Information/index.jsx | 6 +- src/forge/Information/index.scss | 95 ++++++++++++++---- 10 files changed, 176 insertions(+), 72 deletions(-) create mode 100644 src/forge/Information/img/menu7.png diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 3f93e9e5d..d763f7809 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -6,16 +6,20 @@ import Menu3 from '../img/menu3.png'; import Menu4 from '../img/menu4.png'; import Menu5 from '../img/menu5.png'; import Menu6 from '../img/menu6.png'; +import Menu7 from '../img/menu7.png'; +import banner from '../img/mainbanner.png' import { Link } from 'react-router-dom'; function PublicBanner(props){ const [ key , setKey ] = useState("1"); + const { deptId } = props.match.params; const { pathname } = props.history.location; const { data , adminUrl } = props; + useEffect(()=>{ if(pathname){ const head = /\/information\/[0-9]{0,}/g; @@ -39,7 +43,7 @@ function PublicBanner(props){ },[pathname]) return( -
+
{ data &&
@@ -49,13 +53,13 @@ function PublicBanner(props){ }
- 首页 - 开源项目 + 首页 + 开源项目 {/* 资源发布 */} - 领域资讯 + 领域资讯 {/* Sig小组 */} - 专区会员 - { adminUrl && {window.location.href=adminUrl}}>后台管理 } + 专区会员 + { adminUrl && {window.location.href=adminUrl}}>后台管理 }
diff --git a/src/forge/Information/Pages/headerPage.jsx b/src/forge/Information/Pages/headerPage.jsx index 9d4371d80..020252ec4 100644 --- a/src/forge/Information/Pages/headerPage.jsx +++ b/src/forge/Information/Pages/headerPage.jsx @@ -49,18 +49,18 @@ function HeaderPage(props){ } return(
-

{data && data.name}

+

{data && data.firstTitle}

{ data &&
-

{data.name}

-

{data.introductionContent}

+

{data.introductionTitle}

+

{data.introductionContent}

} { data && data.introductionImage && - + }
@@ -69,18 +69,18 @@ function HeaderPage(props){ newsList && newsList.length>0 &&
- +

{newsList[0].name}

{newsList[0].summary}

-

+

{newsList[0].publishTime}

- 查看详情 + 查看详情

-