f4c79669 by 任超

style:头部样式

1 parent b6110aa2
<template>
<div class="navbar-con">
<div class="navbar">
<div class="title">{{ title }}</div>
<div class="sidebarLeft">
<sidebarLeft />
</div>
<div class="sidebarRight d-center">
<sidebarRight />
<div class="right-menu">
<div class="dataView pointer" @click="handleDataView">大屏展示</div>
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="hover" @command="handleCommand">
<div class="avatar-wrapper">
<span style="padding-right:10px">{{ name }}</span>
......@@ -42,10 +42,6 @@ export default {
}
},
methods: {
handleDataView () {
const { href } = this.$router.resolve('/dataView');
window.open(href, '_blank');
},
themeChange (val) {
this.$store.dispatch('app/updateTheme', val)
},
......@@ -63,10 +59,11 @@ export default {
}
.menubg {
line-height: 30px;
height: 34px;
color: #FFFFFF;
margin-right: 5px;
background: linear-gradient(180deg, #0A2580 0%, #2542C9 100%);
background: url('~@/image/navbar.png') no-repeat;
background-size: 100% 100%;
}
/deep/.el-menu-item {
......@@ -78,19 +75,24 @@ export default {
}
/deep/.el-submenu__title {
line-height: 30px !important;
height: 42px !important;
height: 34px;
}
/deep/.el-submenu__title span {
font-size: 14px;
}
.sidebarLeft,
.sidebarRight {
position: relative;
top: 13px;
}
// 导航选中背景色
.xuanzhong {
background: linear-gradient(180deg, #73551D 0%, #C09C43 100%);
font-weight: 700;
color: #FFFFFF !important;
background: url('~@/image/selNavbar.png') no-repeat;
background-size: 100% 100%;
color: #09C39A !important;
}
/deep/.el-menu-item:hover {
......@@ -114,11 +116,26 @@ export default {
height: $headerHeight;
overflow: hidden;
position: relative;
background: linear-gradient(180deg, #0D3DC9 0%, #3476E1 100%);
display: flex;
align-items: center;
padding: 0 20px;
justify-content: space-between;
background: url('~@/image/header.png') no-repeat;
background-size: 100% 100%;
.title {
position: absolute;
left: 0;
top: 7px;
bottom: 0;
right: 0;
margin: 0 auto;
font-size: 32px;
color: #FFFFFF;
font-weight: 700;
text-align: center;
}
.right-menu {
float: right;
......
......@@ -36,7 +36,10 @@ export default {
position: relative;
height: 100%;
width: 100%;
background: url('~@/image/bg.png') no-repeat;
background-size: 100% 100%;
padding: 12px;
box-sizing: border-box;
&.mobile.openSidebar {
position: fixed;
......@@ -46,7 +49,6 @@ export default {
.appMain {
height: calc(100vh - 65px);
background-color: $containerbg;
.app-main {
height: 100%;
......
module.exports = {
title: '监管平台',
title: '汉中市不动产综合监管',
/**
* @type {boolean} true | false
* @description Whether show the settings right-panel
......