增加跳转
This commit is contained in:
parent
727771fdfd
commit
3ebec23da1
|
|
@ -30,7 +30,7 @@ function detail(props) {
|
||||||
}, [id])
|
}, [id])
|
||||||
|
|
||||||
function getDocListByDirId(id) {
|
function getDocListByDirId(id) {
|
||||||
getSubDocList(id).then(res => {
|
getSubDocList(id, {pageSize:10,pageNum:1}).then(res => {
|
||||||
if (res && res.data.rows) {
|
if (res && res.data.rows) {
|
||||||
let rows = res.data.rows;
|
let rows = res.data.rows;
|
||||||
setList1(rows);
|
setList1(rows);
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ function List() {
|
||||||
|
|
||||||
<div className="font-15 opacity8 task-hide-2 lineh-24 pl8">{item.summary}</div>
|
<div className="font-15 opacity8 task-hide-2 lineh-24 pl8">{item.summary}</div>
|
||||||
<div className="FlexAJ mt20 pb10 pl8">
|
<div className="FlexAJ mt20 pb10 pl8">
|
||||||
<Button className="black-border-button">了解更多</Button>
|
<Button className="black-border-button" href={`/news/${item.id}`}>了解更多</Button>
|
||||||
<span className="opacity8">{item.publishTime}发布</span>
|
<span className="opacity8">{item.publishTime}发布</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -79,7 +79,7 @@ function List() {
|
||||||
</div>
|
</div>
|
||||||
<div className="others-news mt20">
|
<div className="others-news mt20">
|
||||||
{list1.slice(4).map(item => {
|
{list1.slice(4).map(item => {
|
||||||
return <Link key={item.id} to={`/news/${item.id}`} className="font-22 task-hide community-news-item">{item.name}{item.name}{item.name}<i className="iconfont icon-jiantou3 ml5 font-20"></i></Link>
|
return <Link key={item.id} to={`/news/${item.id}`} className="font-22 task-hide community-news-item">{item.name}<i className="iconfont icon-jiantou3 ml5 font-20"></i></Link>
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -87,7 +87,7 @@ function List() {
|
||||||
<div className="activities-box pb80">
|
<div className="activities-box pb80">
|
||||||
<div className="font-40 font-bd center mb60 pt60">精彩活动</div>
|
<div className="font-40 font-bd center mb60 pt60">精彩活动</div>
|
||||||
{firstActivity && <div className="first-activity width1600 FlexAJ">
|
{firstActivity && <div className="first-activity width1600 FlexAJ">
|
||||||
<span style={{whiteSpace: 'break-spaces'}} className="font-36 font-bd lineh-50">{firstActivity.summary}</span>
|
<Link style={{whiteSpace: 'break-spaces'}} className="font-36 font-bd lineh-50" to={`/news/${firstActivity.id}`}>{firstActivity.summary}</Link>
|
||||||
<img src={firstActivity.headImg} alt="" width={186} className="headImg"/>
|
<img src={firstActivity.headImg} alt="" width={186} className="headImg"/>
|
||||||
<span className="font-38 font-bd lineh-50">{moment(firstActivity.name).format('MM/DD')}<br/>{moment(firstActivity.name).format('HH:MM')}</span>
|
<span className="font-38 font-bd lineh-50">{moment(firstActivity.name).format('MM/DD')}<br/>{moment(firstActivity.name).format('HH:MM')}</span>
|
||||||
<RenderHtml value={firstActivity.content} className="first-activity-content"/>
|
<RenderHtml value={firstActivity.content} className="first-activity-content"/>
|
||||||
|
|
@ -100,7 +100,7 @@ function List() {
|
||||||
<div>
|
<div>
|
||||||
<span className="font-20">{item.name}</span>
|
<span className="font-20">{item.name}</span>
|
||||||
<div className="font-15 opacity8 mb40">{item.summary}</div>
|
<div className="font-15 opacity8 mb40">{item.summary}</div>
|
||||||
<Button className="black-border-button moreheight">了解更多</Button>
|
<Button className="black-border-button moreheight" href={`/news/${item.id}`}>了解更多</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
})}
|
})}
|
||||||
|
|
@ -114,7 +114,7 @@ function List() {
|
||||||
{firstDynamics && <div className="firstDynamics">
|
{firstDynamics && <div className="firstDynamics">
|
||||||
<div className="font-22">{firstDynamics.name}</div>
|
<div className="font-22">{firstDynamics.name}</div>
|
||||||
<div className="font-15 opacity8">{firstDynamics.summary}</div>
|
<div className="font-15 opacity8">{firstDynamics.summary}</div>
|
||||||
<Button className="black-border-button mt30">了解更多</Button>
|
{/* <Button className="black-border-button mt30">了解更多</Button> */}
|
||||||
</div>}
|
</div>}
|
||||||
<div className="dynamics-list">
|
<div className="dynamics-list">
|
||||||
{list3.slice(1, 9).map(item=>{
|
{list3.slice(1, 9).map(item=>{
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
}
|
}
|
||||||
&.moreheight{
|
&.moreheight{
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue