fix uos
This commit is contained in:
parent
ff1b0ecb90
commit
487da5513e
|
@ -28,9 +28,9 @@ function Introduction({data, statistics=true}) {
|
|||
{firstTitle}
|
||||
<span className='firstTitle_back font-34'>ABOUT US</span>
|
||||
</div>
|
||||
<div className='flexCenter'>
|
||||
{introductionContent && <span dangerouslySetInnerHTML={{ __html: introductionContent }} className='font-16 mr35' style={{lineHeight: '40px'}}></span>}
|
||||
{introductionImage && <img src={introductionImage} alt="" width="526px"/>}
|
||||
<div>
|
||||
{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'>
|
||||
{Object.keys(label).map(item=>{
|
||||
|
|
|
@ -19,27 +19,25 @@ function Partner({data}) {
|
|||
|
||||
const gridItems = [];
|
||||
|
||||
const item = (item, index) => (
|
||||
<div key={index} className={`partner_1_logo flexCenter align ${item.link && 'pointer'}`} onClick={()=>{item.link && window.open(item.link)}}>
|
||||
<img src={item.logo} alt=''/>
|
||||
</div>
|
||||
)
|
||||
|
||||
// 将items数组分成每两行为一个周期的数组
|
||||
for (let i = 0; i < rows; i++) {
|
||||
const rowItems = list.slice(i * 11, i * 11 + 11);
|
||||
|
||||
gridItems.push(
|
||||
<div key={i} className='logoList'>
|
||||
{rowItems.slice(0, 6).map((item, index) => (
|
||||
<div key={index} className='partner_1_logo flexCenter align'>
|
||||
<img src={item.logo} alt=''/>
|
||||
</div>
|
||||
))}
|
||||
{rowItems.slice(0, 6).map(item)}
|
||||
</div>
|
||||
);
|
||||
|
||||
gridItems.push(
|
||||
<div key={i + rows} className='logoList' style={{margin: '20px auto' }}>
|
||||
{rowItems.slice(6, 11).map((item, index) => (
|
||||
<div key={index} className='partner_1_logo flexCenter align'>
|
||||
<img src={item.logo} alt=''/>
|
||||
</div>
|
||||
))}
|
||||
{rowItems.slice(6, 11).map(item)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 <div className='source_1_bg'>
|
||||
<div className='source_1 width1200 pt50 pb60 flexCenter'>
|
||||
<div className='mr50' style={{width: '37%'}}>
|
||||
<p className='font-bd font-30 mb10 task-hide'>{sectionResourceTitle}</p>
|
||||
<p className='font-bd font-30 mb10 task-hide'>{homepageResourceTitle}</p>
|
||||
<p className='font-15 color212 mb20'>{subTitle}</p>
|
||||
<p className='mb30'><a href={`/zone/${key}/source`} className='color-blue'>前往资源中心 {'>'} </a></p>
|
||||
{zoneList.slice(0,2).map(item=>{
|
||||
|
@ -58,7 +58,7 @@ function Source({data, subTitle}) {
|
|||
<div className='df wrap between'>
|
||||
{sourceList.map(i=>{
|
||||
const time = i.updateTime || i.createTime
|
||||
return <div className='s_1_souce mr25 mb30'>
|
||||
return <div className='s_1_souce mr25 mt30'>
|
||||
<div className='flexCenter between m15' style={{minHeight: 90}}>
|
||||
<div style={{width: '0'}} className='flex1'>
|
||||
<p className='task-hide'><Link to={`/zone/${key}/source/${i.id}`} className=" font-17 font-bd">{i.name}</Link></p>
|
||||
|
|
|
@ -339,7 +339,7 @@
|
|||
.image_v_1{
|
||||
width: 180px;
|
||||
height: 150px;
|
||||
object-fit: cover;
|
||||
object-fit: scale-down;
|
||||
}
|
||||
}
|
||||
.specialProjects_1_bg{
|
||||
|
|
Loading…
Reference in New Issue