优化uos首页无数据样式

This commit is contained in:
谢思 2024-10-31 10:04:38 +08:00
parent 955e0d6f12
commit e5691c6c86
3 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@ function Introduction({data, statistics=true}) {
{introductionImage && <img src={introductionImage} alt="" width="526px" align="right" hspace="35" vspace="10"/>}
{introductionContent && <span dangerouslySetInnerHTML={{ __html: introductionContent }} className='font-16' style={{lineHeight: '40px'}}></span>}
</div>
{statistics && <div className='df wrap mt50 between'>
{statistics && <div className='df wrap pt50 between width1200'>
{Object.keys(label).map(item=>{
return <div className='align font-16'>
<span className='font-34 color-blue font-bd'>{data1[item]}</span><br/>

View File

@ -164,9 +164,9 @@ function News({data, subTitle, firstDirIntro, secondDirIntro}) {
</Row>
</div>}
</div>
<div className='df wrap backWhite pt15 pb15 pl10 pr10'>
{dirs && !!dirs.length && <div className='df wrap backWhite pt15 pb15 pl10 pr10'>
{renderItems()}
</div>
</div>}
</div>
</div>
}

View File

@ -1,6 +1,7 @@
import React , { useEffect, useState } from 'react';
import { getPartnerList } from '../../../api';
import '../index.scss';
import Nodata from '../../../../Nodata';
function Partner({data}) {
const {id, key, homepagePartnersTitle} = data || {};
@ -46,6 +47,7 @@ function Partner({data}) {
<div className='partner_1 width1200 pt50 pb60'>
<p className='font-bd font-30 mb10 task-hide center mb50'>{homepagePartnersTitle}</p>
<div>{gridItems}</div>
{list && !list.length && <Nodata _html="暂无数据"/>}
</div>
</div>
}