From c91b7f8c589401e282ddd142eeac86456ad23d38 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 5 Jul 2023 10:07:05 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=8F=91=E5=B8=83-zone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Information/Component/publicBanner.jsx | 7 +- src/forge/Information/Pages/source.jsx | 140 ++++++++++++++++++ src/forge/Information/Pages/sourceDetail.jsx | 67 +++++++++ src/forge/Information/api.js | 27 ++++ src/forge/Information/img/sourceCardBack.png | Bin 0 -> 40198 bytes src/forge/Information/img/sourceFile.png | Bin 0 -> 1020 bytes src/forge/Information/img/sourceIcon.png | Bin 0 -> 959 bytes src/forge/Information/img/zone1Menu3.png | Bin 0 -> 5267 bytes .../img/{menu3.png => zoneMenu3.png} | Bin src/forge/Information/index.jsx | 20 +++ src/forge/Information/index.scss | 104 +++++++++++++ 11 files changed, 363 insertions(+), 2 deletions(-) create mode 100644 src/forge/Information/Pages/source.jsx create mode 100644 src/forge/Information/Pages/sourceDetail.jsx create mode 100644 src/forge/Information/img/sourceCardBack.png create mode 100644 src/forge/Information/img/sourceFile.png create mode 100644 src/forge/Information/img/sourceIcon.png create mode 100644 src/forge/Information/img/zone1Menu3.png rename src/forge/Information/img/{menu3.png => zoneMenu3.png} (100%) diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 6bb64b59..33d6ab1f 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -1,6 +1,5 @@ import React , { useState , useEffect } from 'react'; import { Menu } from 'antd'; -import banner from '../img/mainbanner.png' import { Link } from 'react-router-dom'; import { tempConfig } from '../tempInfo'; import TopEdition from './TopEdition' @@ -18,6 +17,7 @@ function PublicBanner(props){ const info = /[A-Za-z0-9]{0,}\/news/g; const infodetail = /[A-Za-z0-9]{0,}\/newdetail/g; const project = /[A-Za-z0-9]{0,}\/projects/g; + const source = /[A-Za-z0-9]{0,}\/source/g; const vip = /[A-Za-z0-9]{0,}\/VIP/g; if(pathname === `/zone/${deptId}`){ setKey("1"); @@ -25,6 +25,9 @@ function PublicBanner(props){ else if(project.test(pathname)){ setKey("2"); } + else if(source.test(pathname)){ + setKey("3"); + } else if(info.test(pathname) || infodetail.test(pathname)){ setKey("4"); } @@ -48,7 +51,7 @@ function PublicBanner(props){