fenlei.vue 2.0 KB

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