fix
This commit is contained in:
parent
ef7af46c1e
commit
f23a9512ad
|
@ -3660,7 +3660,7 @@ html>body #ajax-indicator {
|
|||
|
||||
.head-nav li a:hover,
|
||||
.head-nav li.active a {
|
||||
color: #5091ff
|
||||
/* color: #5091ff */
|
||||
}
|
||||
|
||||
.head-right {
|
||||
|
|
|
@ -315,14 +315,14 @@ class NewHeader extends Component {
|
|||
{...this.props}
|
||||
{...this.state}
|
||||
/> : ""}
|
||||
<div style={{width:"78px"}}>
|
||||
{/* <div style={{width:"78px"}}>
|
||||
{
|
||||
publicNav &&
|
||||
<a href={'https://www.ccf.org.cn/'} className={"fl"}>
|
||||
<img src={MainLogo} alt="ccf" width="63px"/>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div> */}
|
||||
{
|
||||
settings && settings.nav_logo_url ?
|
||||
<a href={settings && settings.new_course.default_url} className={"fl mr30"}>
|
||||
|
@ -341,33 +341,14 @@ class NewHeader extends Component {
|
|||
var is_hidden = item.hidden;
|
||||
var waiLian = (new_link && str.filter(item=>new_link.indexOf(item)>-1) );
|
||||
var wl = waiLian && waiLian.length>0;
|
||||
if (item.name === '特色专区') {
|
||||
// 特色专区下拉菜单
|
||||
return zoneList && zoneList.length > 0 ? <li
|
||||
className={`${this.matchZone() === true ? 'active drop-li' : 'drop-li'}`}
|
||||
onMouseOver={ () => { this.setState( {showSubMenu: true }) } }
|
||||
onMouseOut={ () => { this.setState( {showSubMenu: false }) } }
|
||||
return (
|
||||
<li key={key}
|
||||
className={`${this.matchpaths(new_link) === true ? 'pr active' : 'pr'}`}
|
||||
style={{display:!is_hidden ? 'flex' : 'none'} }
|
||||
>
|
||||
<a onClick={ () => { this.setState( {showSubMenu: true }) } }>特色专区</a>
|
||||
<ul className={ `drop-down ${ showSubMenu ? 'drop-down-show' : '' }` } style={{ height : showSubMenu ? `${ current_user && current_user.login ? ((zoneList.length+1) * 46) : (zoneList.length * 46)}px` : 0 }}>
|
||||
{
|
||||
zoneList.map((e, k) => {
|
||||
return <li className="drop-down-item" key={ k }><a href={ e.link } className="task-hide" title={ e.name } target="_blank">{ e.name }</a></li>
|
||||
})
|
||||
}
|
||||
{current_user && current_user.login && <li className="drop-down-item"><Link to="/zone/apply" target="_blank">+申请创建</Link></li> }
|
||||
</ul>
|
||||
</li> : ''
|
||||
} else {
|
||||
return (
|
||||
<li key={key}
|
||||
className={`${this.matchpaths(new_link) === true ? 'pr active' : 'pr'}`}
|
||||
style={{display:!is_hidden ? 'flex' : 'none'} }
|
||||
>
|
||||
<a href={new_link} target={wl ? "_self":"_blank"}>{item.name}</a>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
<a href={new_link} target={wl ? "_self":"_blank"}>{item.name}</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
</ul>
|
||||
|
|
|
@ -363,6 +363,9 @@
|
|||
.head-nav {
|
||||
.pr {
|
||||
justify-content: center;
|
||||
&.active{
|
||||
border-bottom: 2px solid white !important;
|
||||
}
|
||||
}
|
||||
.drop-li {
|
||||
display: flex;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 408 KiB |
Binary file not shown.
Before Width: | Height: | Size: 599 KiB |
|
@ -7,7 +7,6 @@ import bk2 from './image/bk2.png';
|
|||
import "./index.scss";
|
||||
import axios from 'axios';
|
||||
import { getImageUrl } from '../../common/UrlTool';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
function Index(props) {
|
||||
const { current_user={} } = props;
|
||||
|
@ -83,8 +82,8 @@ function Index(props) {
|
|||
<Input.Search placeholder='输入关键词' size='large' onSearch={(value)=>{setSearch(value)}} allowClear/>
|
||||
{current_user && current_user.login && <Dropdown overlay={
|
||||
<Menu>
|
||||
<Menu.Item key="updated_on"><Link to='/projects/deposit/new'>新建项目</Link></Menu.Item>
|
||||
<Menu.Item key="created_on"><Link to='/projects/mirror/new'>导入项目</Link></Menu.Item>
|
||||
<Menu.Item key="updated_on"><a href='/projects/deposit/new'>新建项目</a></Menu.Item>
|
||||
<Menu.Item key="created_on"><a href to='/projects/mirror/new'>导入项目</a></Menu.Item>
|
||||
</Menu>
|
||||
}>
|
||||
<Button type='primary' size='large' className='ml15 mr10'>新建项目<i className='iconfont icon-arrowRight font-14 ml5'></i></Button>
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
color: #8284A4
|
||||
}
|
||||
.opacity86{
|
||||
opacity: 86%;
|
||||
opacity: 0.86;
|
||||
}
|
||||
.letter-spacing-10{
|
||||
letter-spacing: 10px;
|
||||
|
|
|
@ -37,8 +37,8 @@ body>.-task-title {
|
|||
background: rgba(27, 36, 64,0);
|
||||
}
|
||||
.headerContent{
|
||||
width: 1200px;
|
||||
margin:0px auto;
|
||||
padding:0px 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
|
|
Loading…
Reference in New Issue