fenlei.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div id="fenlei">
  3. <el-row>
  4. <el-col class="swfl" :span="24">
  5. <el-image style="width:22px;height:22px;margin:0 5px -5px 0;" :src="src"></el-image>
  6. <span>个人中心</span>
  7. </el-col>
  8. <el-col :span="24">
  9. <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#215299" active-text-color="#215299">
  10. <el-menu-item index="1"><span slot="title">基本信息</span></el-menu-item>
  11. <el-menu-item index="3"><span slot="title">用户管理</span></el-menu-item>
  12. <el-menu-item index="6"><span slot="title">我的审核</span></el-menu-item>
  13. <el-menu-item index="8"><span slot="title">统计信息</span></el-menu-item>
  14. <el-menu-item index="9"><span slot="title">注销账号</span></el-menu-item>
  15. </el-menu>
  16. </el-col>
  17. </el-row>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'fenlei',
  23. props: {},
  24. components: {},
  25. data: () => ({
  26. src: require('@/assets/personal.png'),
  27. }),
  28. created() {},
  29. computed: {},
  30. methods: {
  31. handleOpen(key, keyPath) {
  32. console.log(key, keyPath);
  33. },
  34. handleClose(key, keyPath) {
  35. console.log(key, keyPath);
  36. },
  37. },
  38. };
  39. </script>
  40. <style lang="less" scoped>
  41. .swfl {
  42. height: 60px;
  43. width: 240px;
  44. line-height: 60px;
  45. background-color: #22529a;
  46. text-align: center;
  47. }
  48. .swfl span {
  49. font-size: 22px;
  50. color: #ffffff;
  51. }
  52. /deep/.el-menu-item {
  53. height: 60px;
  54. text-align: center;
  55. line-height: 60px;
  56. border-bottom: 1px dashed;
  57. font-size: 22px;
  58. }
  59. /deep/.el-menu-item:last-child {
  60. border-bottom: none;
  61. }
  62. </style>