You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

128 lines
2.5 KiB

<!--header公共组件-->
<style>
body {
font-size: 14px;
line-height: 18px;
font-family: Microsoft YaHei UI;
font-weight: normal;
color: var(--white-text-color);
margin: 0;
padding: 0;
}
.flex {
display: flex;
display: -ms-flexbox;
justify-content: space-between;
align-items: center;
}
.flex-left-center {
display: flex;
display: -ms-flexbox;
align-items: center;
}
.flex-between-center {
display: flex;
display: -ms-flexbox;
justify-content: space-between;
align-items: center;
}
.hide {
display: none;
}
.over {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.header-wrapper {
background: var(--header-bg);
height: 60px;
padding: 0 30px;
overflow: hidden;
display: flex;
display: -ms-flexbox;
min-width: 1028px;
box-sizing: border-box;
position: fixed;
width: 100%;
z-index: 888889;
transition: height 0.3s ease;
transition: background 0.3s ease;
}
.header-wrapper .hleft{
gap: 24px;
}
.header-wrapper .hright{
color: #3F62F6;
}
.header-hcon {
width: 100%;
height: 60px;
opacity: 0;
}
.header-wrapper #hlogo {
height: 30px;
cursor: pointer;
}
.header-wrapper .hleft-menu-item {
width: 80px;
height: 36px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 8px 12px;
border-radius: 4px;
color: #3D3D3D;
box-sizing: border-box;
cursor: pointer;
}
.header-wrapper .hleft-menu-item.active {
background: #F4F5FA;
font-weight: bold;
color: #3F62F6;
}
</style>
<header class="header-wrapper flex-between-center">
<div class="hleft flex-left-center">
<img src="../assets_v2/images/clientSet/logo.png" id="hlogo" alt="noimg" />
<div class="hleft-menu-item active">排版</div>
<div class="hleft-menu-item">下载</div>
</div>
<div class="hright">
未找到适用模板?点此收录
</div>
<div class="hide" id="headertab">index</div>
<div class="hide content_wrapper"></div>
</header>
<div class="header-hcon"></div>
<!--header公共组件-->
{literal}
<script>
var pathname = location.pathname;
if (pathname != '/' && pathname != '/report2') {
$('.hleft .hleft-menu-item').removeClass('active');
$('.hleft .hleft-menu-item').eq(1).addClass('active')
}
$('#hlogo').click(function () {
window.location.href = "/";
});
$('.hright').click(function () {
window.location.href = '/suibianxiede';
});
</script>
{/literal}