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.
146 lines
3.3 KiB
146 lines
3.3 KiB
<template>
|
|
<div class="common-layout">
|
|
<el-container>
|
|
<el-header>
|
|
<el-menu class="el-menu-demo" mode="horizontal">
|
|
<el-menu-item index="1">
|
|
<el-image class="logo" src="/logo.png"></el-image>
|
|
</el-menu-item>
|
|
<el-menu-item index="1">
|
|
<el-text>首页</el-text>
|
|
</el-menu-item>
|
|
<el-menu-item index="2">
|
|
<el-sub-menu index="2" class="custom-submenu">
|
|
<template #title>物流服务</template>
|
|
<el-menu-item index="2-1">及时服务</el-menu-item>
|
|
<el-menu-item index="2-2">快速配送</el-menu-item>
|
|
<el-menu-item index="2-3">item three</el-menu-item>
|
|
<el-sub-menu index="2-4">
|
|
<template #title>item four</template>
|
|
<el-menu-item index="2-4-1">item one</el-menu-item>
|
|
<el-menu-item index="2-4-2">item two</el-menu-item>
|
|
<el-menu-item index="2-4-3">item three</el-menu-item>
|
|
</el-sub-menu>
|
|
</el-sub-menu>
|
|
</el-menu-item>
|
|
<el-menu-item index="4">欢迎您: </el-menu-item>
|
|
</el-menu>
|
|
</el-header>
|
|
<el-container>
|
|
<el-aside width="200px" class="el-aside">
|
|
<el-row class="tac">
|
|
<el-col>
|
|
<el-menu default-active="2" class="el-menu-vertical-demo">
|
|
<el-sub-menu index="1">
|
|
<template #title>
|
|
<el-icon>
|
|
<location />
|
|
</el-icon>
|
|
<span>我要求寄件</span>
|
|
</template>
|
|
<el-menu-item-group>
|
|
<router-link to="/expressForm">
|
|
<el-menu-item index="1-1">寄快递</el-menu-item>
|
|
</router-link>
|
|
<el-menu-item index="1-2">提交寄件</el-menu-item>
|
|
</el-menu-item-group>
|
|
</el-sub-menu>
|
|
<el-menu-item index="2">
|
|
<router-link to="/expressList">
|
|
<el-icon><icon-menu /></el-icon>
|
|
<span>运输查询</span>
|
|
</router-link>
|
|
</el-menu-item>
|
|
<el-menu-item index="3">
|
|
<router-link to="/myInfo">
|
|
<el-icon>
|
|
<document />
|
|
</el-icon>
|
|
<span>我的资料</span>
|
|
</router-link>
|
|
</el-menu-item>
|
|
</el-menu>
|
|
</el-col>
|
|
</el-row>
|
|
</el-aside>
|
|
<el-main>
|
|
<router-view></router-view>
|
|
</el-main>
|
|
</el-container>
|
|
</el-container>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
.common-layout {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #eff1f4;
|
|
}
|
|
|
|
.el-header,
|
|
.el-footer {
|
|
background-color: white;
|
|
color: #333;
|
|
text-align: center;
|
|
line-height: 60px;
|
|
}
|
|
|
|
.custom-submenu .el-sub-menu__title {
|
|
padding-right: 39px;
|
|
}
|
|
|
|
.el-aside {
|
|
background-color: white;
|
|
color: #333;
|
|
text-align: center;
|
|
line-height: 200px;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.el-main {
|
|
color: #333;
|
|
text-align: center;
|
|
line-height: 160px;
|
|
}
|
|
|
|
.el-container {
|
|
height: 100%;
|
|
}
|
|
|
|
.el-container:nth-child(5) .el-aside,
|
|
.el-container:nth-child(6) .el-aside {
|
|
line-height: 260px;
|
|
}
|
|
|
|
.el-container:nth-child(7) .el-aside {
|
|
line-height: 320px;
|
|
}
|
|
|
|
.logo {
|
|
height: 58px;
|
|
}
|
|
|
|
.el-menu--horizontal>.el-menu-item:nth-child(3) {
|
|
margin-right: auto;
|
|
}
|
|
</style>
|
|
|
|
<script lang="ts" setup>
|
|
import {
|
|
Document,
|
|
Menu as IconMenu,
|
|
Location,
|
|
Setting,
|
|
} from '@element-plus/icons-vue'
|
|
const handleOpen = (key : string, keyPath : string[]) => {
|
|
console.log(key, keyPath)
|
|
}
|
|
const handleClose = (key : string, keyPath : string[]) => {
|
|
console.log(key, keyPath)
|
|
}
|
|
</script>
|