123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <template>
- <div>
- <div class="left-menu">
- <hamburger class="hamburger-container" :is-active="opened" @toggleClick="toggleSideBar" />
- <div>
- <el-image class="img" :src="src" alt=""></el-image>
- </div>
- <div class="title">
- <div class="tit">智慧运营管理中心</div>
- <div class="tit2">Intelligent operation and managenemnt center</div>
- </div>
- <el-select class="select-btn" v-model="value" placeholder="主语国际3号楼">
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="right-menu">
- <el-image class="phone" :src="src" alt=""></el-image>
- <el-image class="help" :src="src" alt=""></el-image>
- <el-image class="notification" :src="src" alt="" ></el-image>
- <div class="avatar"><el-avatar :size="50" :src="circleUrl"></el-avatar></div>
- <div class="info">
- <i class="el-icon-user"></i>
- {{ name }}
- </div>
- </div>
- </div>
- </template>
- <script>
- import hamburger from '@/components/Hamburger/index'
- export default {
- components: { hamburger },
- name: "Navbar",
- data() {
- return {
- value:'test',
- options: {
- },
- opened:true,
- name: "test",
- src:"https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
- circleUrl: "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
- isCollapse: true
- }
- },
- methods: {
- toggleSideBar(){
-
- }
- }
- }
- </script>
- <style lang="less" scoped>
- .left-menu {
- float: left;
- height: 100%;
- line-height: 35px;
- width: 700px;
- .hamburger-container {
- position: absolute;
- line-height: 64px;
- left: 0;
- width:64px;
- float: left;
- cursor: pointer;
- transition: background .3s;
- -webkit-tap-highlight-color:transparent;
- &:hover {
- background: rgba(0, 0, 0, .025)
- }
- &:hover {
- background: rgba(247, 243, 243, 0.966)
- }
- }
- .img {
- display: flex;
- position: absolute;
- left: 70px;
- top: 3px;
- width: 58px;
- height: 57px;
- bottom: 4px;
- }
- .title {
- position: absolute;
- // margin-top: 4px;
- // margin-bottom: 4px;
- left: 130px;
- // top: 4px;
- width: 302px;
- height: 64px;
- color: rgba(255, 255, 255, 1);
- // font-size: 18px;
- text-align: left;
- .tit {
- left: 130px;
- margin-top: 4px;
- width: 302px;
- height: 29px;
- color: rgba(255, 255, 255, 1);
- font-size: 18px;
- text-align: left;
- }
- .tit2 {
- left: 130px;
- top: 33px;
- width: 302px;
- height: 29px;
- color: rgba(255, 255, 255, 1);
- font-size: 14px;
- text-align: left;
- align-content: center;
- }
- }
- .select-btn {
- position: absolute;
- left: 442px;
- top: 15px;
- width: 205px;
- height: 36px;
- line-height: 23px;
- border-radius: 4px;
- color: rgba(226, 229, 231, 1);
- font-size: 16px;
- text-align: center;
- /deep/.el-input__inner {
- background-color: #045bb8;
- color: rgba(226, 229, 231, 1);
- border: 1px solid #3a8ee6;
- }
- }
- }
- .right-menu {
- float: right;
- height: 100%;
- line-height: 50px;
- width: 344px;
- &:focus {
- outline: none;
- }
- .phone {
- position: absolute;
- float: right;
- right: 320px;
- top: 20px;
- width: 24px;
- height: 24px;
- }
- .help {
- position: absolute;
- float: right;
- right: 278px;
- top: 20px;
- width: 24px;
- height: 24px;
- }
- .notification {
- position: absolute;
- float: right;
- right: 236px;
- top: 20px;
- width: 24px;
- height: 24px;
- }
- .avatar {
- position: absolute;
- float: right;
- right: 166px;
- top: 6px;
- width: 50px;
- height: 50px;
- }
- .info {
- position: absolute;
- float: right;
- right: 86px;
- width: 98px;
- height: 50px;
- top: 7px;
- bottom: 7px;
- color: rgba(255, 255, 255, 1);
- }
- }
- </style>
|