| | |
| | | <template>
|
| | | <div class="sticky top0 layout">
|
| | | <div class="header relative">
|
| | | <div class="header relative" style="align-items: flex-end;">
|
| | | <div @click="$router.push('/home')" class="title">
|
| | | <img src="@/assets/logo.png" alt="">
|
| | | 射洪“两客一危”监管平台
|
| | | <span>
|
| | | 射洪两客一危监管平台
|
| | | </span>
|
| | | </div>
|
| | | <div></div>
|
| | | <div class="flex a-center pr--40">
|
| | |
| | | <div v-if="!item.meta || !item.meta.title" class="h100">
|
| | | <template v-for="(item2, index2) in item.children">
|
| | | <div :key="index2" @click="pushPath(item2.path)" v-if="!item2.meta.hide"
|
| | | class="flex a-center j-center h100 w--160 menuItemHover pointer"
|
| | | class="flex a-center j-center h100 br--18 w--160 menuItemHover pointer"
|
| | | :class="item2.path == $route.path && 'bgColor2'">
|
| | | <img v-if="item2.meta.icon" :src="require(`@/assets/routerIcon/${item2.meta.icon}.png`)"
|
| | | class="w--15 h--15 mr--12 shrink0" />
|
| | | class="w--40 h--40 mr--12 shrink0" />
|
| | | <div class="color1">
|
| | | {{ item2.meta.title }}
|
| | | </div>
|
| | |
| | | </template>
|
| | | </div>
|
| | | <div v-else :class="$route.path.includes('systemManage') && 'bgColor2'"
|
| | | class="h100 w--160 menuItemHover dropdown" @mouseenter="routerDropdown(true)"
|
| | | class="h100 w--160 br--18 menuItemHover dropdown" @mouseenter="routerDropdown(true)"
|
| | | @mouseleave="routerDropdown(false)">
|
| | | <div class="flex a-center j-center h100">
|
| | | <img :src="require(`@/assets/routerIcon/${item.meta.icon}.png`)"
|
| | | class="w--15 h--15 mr--12 shrink0" />
|
| | | class="w--40 h--40 mr--12 shrink0" />
|
| | | <div class="color1">
|
| | | {{ item.meta.title }}
|
| | | </div>
|
| | |
| | | }
|
| | |
|
| | | .bgColor1 {
|
| | | background-color: #0E6EFD;
|
| | | background-color: #3367ce;
|
| | | }
|
| | |
|
| | | .bgColor2 {
|
| | | background: #0D55B9;
|
| | | background: #2b5ab6;
|
| | | }
|
| | |
|
| | | .color1 {
|
| | |
| | | }
|
| | |
|
| | | .color2 {
|
| | | color: rgba(0, 0, 0, .6);
|
| | | // color: rgba(0, 0, 0, .6);
|
| | | color: #fff;
|
| | | }
|
| | |
|
| | | .header {
|
| | | height: 80px;
|
| | | background: #fff;
|
| | | background: #3367ce;
|
| | | background-image: url('../assets/title.png');
|
| | | background-size: 100% 100%;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | justify-content: space-between;
|
| | |
| | | display: flex;
|
| | | justify-content: center;
|
| | | font-weight: 600;
|
| | | font-size: 24px;
|
| | | font-size: 30px;
|
| | | align-items: center;
|
| | | position: absolute;
|
| | | top: 50%;
|
| | | left: 50%;
|
| | | top: 38%;
|
| | | left: 48.5%;
|
| | | transform: translate(-50%, -50%);
|
| | | color: rgba(0, 0, 0, .8);
|
| | | // color: rgba(0, 0, 0, .8);
|
| | | color: #fff;
|
| | |
|
| | | img {
|
| | | width: 40px;
|
| | | height: 40px;
|
| | | margin-right: 10px;
|
| | | width: 50px;
|
| | | height: 50px;
|
| | | margin-right: 25px;
|
| | | }
|
| | |
|
| | | span {
|
| | | letter-spacing: 4px;
|
| | | text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); // 新增字体阴影
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | height: 60px;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | justify-content: center;
|
| | | justify-content: space-between;
|
| | | padding: 0 220px;
|
| | | }
|
| | |
|
| | | .menuItemHover:hover {
|
| | | background: #0D55B9;
|
| | | border-radius: 18px;
|
| | | background: #2b5ab6;
|
| | | }
|
| | |
|
| | | .dropdown {
|