a74568a4 by renchao@pashanhoo.com

style:头部样式的修改

1 parent c94a2161
......@@ -23,3 +23,5 @@ yarn-error.log*
*.sw?
package-lock.json
public/config.json
......
......@@ -9,17 +9,16 @@
</div>
<div class="right-menu">
<svg-icon class="function" icon-class='function' />
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="hover" @command="handleCommand">
<!-- <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="hover" @command="handleCommand">
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="a">个人中心</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
<div class="avatar-wrapper">
<span style="padding-right:10px">{{ name }}</span>
<img :src="avatar + '?imageView2/1/w/80/h/80'" class="user-avatar" />
<!-- <i class="el-icon-caret-bottom" /> -->
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="a">个人中心</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<svg-icon class="shutdown" @click.native="logout" icon-class='shutdown' />
</div>
......@@ -28,12 +27,12 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import NoticeBar from '@/components/NoticeBar/index'
import {
import { mapGetters } from 'vuex'
import NoticeBar from '@/components/NoticeBar/index'
import {
getHomeNoticeList
} from "@/api/user"
export default {
} from "@/api/user"
export default {
components: {
NoticeBar
},
......@@ -91,21 +90,21 @@ export default {
}
}
}
}
}
</script>
<style lang="scss" scoped>
.navbar-con {
.navbar-con {
position: relative;
}
}
.NoticeBar {
.NoticeBar {
position: absolute;
bottom: 0;
}
}
.el-dropdown-menu {
.el-dropdown-menu {
padding: 0 !important;
border: 1px solid #EBEEF5;
border: 1px solid #ebeef5;
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 4px 0 0 4px 4px;
......@@ -115,14 +114,14 @@ export default {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #4A4A4A;
color: #4a4a4a;
width: 140px;
height: 36px;
line-height: 36px;
}
.el-dropdown-menu__item:nth-child(6) {
border-top: 1px solid #EBEEF5;
border-top: 1px solid #ebeef5;
}
.popper__arrow {
......@@ -133,12 +132,12 @@ export default {
.el-dropdown-menu__item:not(.is-disabled):hover,
.el-dropdown-menu__item:focus {
background: #F6F7F9;
color: #4A4A4A;
background: #f6f7f9;
color: #4a4a4a;
}
}
}
.navbar {
.navbar {
height: $headerHeight;
overflow: hidden;
position: relative;
......@@ -157,7 +156,7 @@ export default {
.backdrop {
flex: 1;
width: 60%;
background: url('../../image/backdrop.png');
background: url("../../image/backdrop.png");
background-size: 100% 100%;
height: $headerHeight;
}
......@@ -248,6 +247,7 @@ export default {
display: flex;
height: 40px;
align-items: center;
color: #ffffff;
.user-avatar {
cursor: pointer;
......@@ -265,5 +265,5 @@ export default {
}
}
}
}
}
</style>
......