dev_cs
杨树明 6 years ago
parent f7775fe1f1
commit 737209285f

@ -56,6 +56,18 @@ class NewShixunModel extends Component{
diff:type
})
}
ItsCourse=(item)=>{
return <Menu className={"inherits"}>
{item.map((list,key)=>{
return(
<Menu.Item key={key} id={list.id}>
{list.name}
</Menu.Item>
)
})}
</Menu>
}
render() {
let {diff,datas,shixun_list,shixuns_count}=this.state;
@ -95,6 +107,8 @@ class NewShixunModel extends Component{
</Menu>
);
return(
<div>
<style>
@ -187,7 +201,11 @@ class NewShixunModel extends Component{
</p>
<p className="newshixunmodelbotfont">
已被广泛应用于移动及桌面应用程序Web应用程序分布式系统和嵌入式系统应用程序等各个领域的软件开发中
{item.challenge_names.map((item,key)=>{
return(
<span>{item}</span>
)
})}
</p>
<div className={"newshixunpd030"}>
@ -201,7 +219,13 @@ class NewShixunModel extends Component{
color: #D7D7D7 !important;
}
.panel-lightgrey, .panel-lightgrey span{
color: #999 !important;
color: #999 !important;
}
.ant-breadcrumb-link{
margin-right:10px !important;
}
.ant-breadcrumb-separator{
margin-right:20px !important;
}
`}
</style>
@ -210,16 +234,14 @@ class NewShixunModel extends Component{
<Breadcrumb.Item>{item.author_school_name}</Breadcrumb.Item>
<Breadcrumb.Item>难度系数{item.level}</Breadcrumb.Item>
<Breadcrumb.Item>学习人数{item.study_count}</Breadcrumb.Item>
<Breadcrumb.Item>{item.author_name}</Breadcrumb.Item>
</Breadcrumb>
</p>
<Dropdown overlay={menus}>
{item.subjects.length===0?"":<Dropdown overlay={()=>this.ItsCourse(item.subjects)}>
<a className="ant-dropdown-link fl ml30 newshixunfont12 color-blue" >
难度<Icon className={"color-blue"} type="down" />
所属课程<Icon className={"color-blue"} type="down" />
</a>
</Dropdown>
</Dropdown>}
</div>
</div>
@ -229,7 +251,7 @@ class NewShixunModel extends Component{
}
{shixun_list===undefined?"":shixun_list.length>15?<div className={" edu-txt-center pd303010"}>
{shixun_list===undefined?"":shixuns_count>15?<div className={" edu-txt-center pd303010"}>
<Pagination
showQuickJumper
defaultCurrent={1}

@ -199,4 +199,8 @@
.nyslbottomsj {
position: absolute;
bottom: -6px;
}
.inherits .ant-dropdown-menu-item{
cursor: inherit !important;
}
Loading…
Cancel
Save