home.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <el-container>
  3. <sidebar></sidebar>
  4. <el-container>
  5. <el-header style="text-align: right;height: 80px;line-height: 80px;">
  6. <span class="header-button">充值中心</span>
  7. <span class="header-button">打印设置</span>
  8. <el-dropdown trigger="click">
  9. <span class="el-dropdown-link">
  10. <span style="cursor: pointer;">nickName</span>
  11. <i class="el-icon-arrow-down el-icon--right"></i>
  12. </span>
  13. <el-dropdown-menu slot="dropdown">
  14. <el-dropdown-item>退出登录</el-dropdown-item>
  15. </el-dropdown-menu>
  16. </el-dropdown>
  17. </el-header>
  18. <el-main style="background:#F1F2F5;">
  19. <router-view></router-view>
  20. </el-main>
  21. </el-container>
  22. </el-container>
  23. </template>
  24. <script>
  25. import sidebar from '../common/sider.vue';
  26. import headerVue from '../common/header.vue';
  27. export default {
  28. data() {
  29. return {
  30. }
  31. },
  32. components: {
  33. sidebar,
  34. headerVue
  35. },
  36. created() {
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped="scoped">
  43. .el-header {
  44. position: relative;
  45. width: 100%;
  46. height: 80px;
  47. }
  48. .el-main {
  49. position: absolute;
  50. left: 254px;
  51. right: 0;
  52. top: 80px;
  53. bottom: 0;
  54. overflow-y: auto;
  55. background-color: #F1F2F5;
  56. padding: 10px;
  57. min-width: 1550px;
  58. }
  59. .header-button {
  60. font-size: 16px;
  61. font-family: PingFang SC;
  62. font-weight: 400;
  63. color: #777777;
  64. cursor: pointer;
  65. margin-right: 40px;
  66. }
  67. .header-button {
  68. font-size: 16px;
  69. font-family: PingFang SC;
  70. font-weight: 400;
  71. color: #777777;
  72. cursor: pointer;
  73. margin-right: 40px;
  74. }
  75. .home-content {
  76. display: flex;
  77. .side-box {
  78. // width: 200px;
  79. position: relative;
  80. }
  81. .content {
  82. flex: 1;
  83. flex-shrink: 1;
  84. }
  85. .title {
  86. color: #0074D9;
  87. }
  88. }
  89. </style>