diff --git a/src/forge/Information/Pages/homepage/component/introduction.jsx b/src/forge/Information/Pages/homepage/component/introduction.jsx index 19e55566a..12a8a3ec8 100644 --- a/src/forge/Information/Pages/homepage/component/introduction.jsx +++ b/src/forge/Information/Pages/homepage/component/introduction.jsx @@ -28,9 +28,9 @@ function Introduction({data, statistics=true}) { {firstTitle} ABOUT US -
- {introductionContent && } - {introductionImage && } +
+ {introductionImage && } + {introductionContent && }
{statistics &&
{Object.keys(label).map(item=>{ diff --git a/src/forge/Information/Pages/homepage/component/partner.jsx b/src/forge/Information/Pages/homepage/component/partner.jsx index b349cbee6..cb567561d 100644 --- a/src/forge/Information/Pages/homepage/component/partner.jsx +++ b/src/forge/Information/Pages/homepage/component/partner.jsx @@ -19,27 +19,25 @@ function Partner({data}) { const gridItems = []; + const item = (item, index) => ( +
{item.link && window.open(item.link)}}> + +
+ ) + // 将items数组分成每两行为一个周期的数组 for (let i = 0; i < rows; i++) { const rowItems = list.slice(i * 11, i * 11 + 11); gridItems.push(
- {rowItems.slice(0, 6).map((item, index) => ( -
- -
- ))} + {rowItems.slice(0, 6).map(item)}
); gridItems.push(
- {rowItems.slice(6, 11).map((item, index) => ( -
- -
- ))} + {rowItems.slice(6, 11).map(item)}
); } diff --git a/src/forge/Information/Pages/homepage/component/source.jsx b/src/forge/Information/Pages/homepage/component/source.jsx index abf46bdae..c9b267949 100644 --- a/src/forge/Information/Pages/homepage/component/source.jsx +++ b/src/forge/Information/Pages/homepage/component/source.jsx @@ -7,7 +7,7 @@ import Nodata from '../../../../Nodata'; import '../index.scss'; function Source({data, subTitle}) { - const {id, key, sectionResourceTitle} = data || {}; + const {id, key, homepageResourceTitle="资源发布"} = data || {}; const [ chooseZoneId , setChooseZoneId ] = useState(undefined); const [ zoneList , setZoneList ] = useState([]); const [ sourceList , setSourceList ] = useState([]); @@ -42,7 +42,7 @@ function Source({data, subTitle}) { return
-

{sectionResourceTitle}

+

{homepageResourceTitle}

{subTitle}

前往资源中心 {'>'}

{zoneList.slice(0,2).map(item=>{ @@ -58,7 +58,7 @@ function Source({data, subTitle}) {
{sourceList.map(i=>{ const time = i.updateTime || i.createTime - return
+ return

{i.name}

diff --git a/src/forge/Information/Pages/homepage/index.scss b/src/forge/Information/Pages/homepage/index.scss index 6603b3a27..db0855268 100644 --- a/src/forge/Information/Pages/homepage/index.scss +++ b/src/forge/Information/Pages/homepage/index.scss @@ -339,7 +339,7 @@ .image_v_1{ width: 180px; height: 150px; - object-fit: cover; + object-fit: scale-down; } } .specialProjects_1_bg{