App.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <div v-if="this.$store.state.isLogin" class="main-container">
  3. <HeaderVue class="header"></HeaderVue>
  4. <div class="main-app">
  5. <div class="aside"><AsideVue></AsideVue></div>
  6. <div class="section">
  7. <div class="first-title">
  8. {{ this.$store.state.firstTitle }}
  9. </div>
  10. <div class="main-section"><router-view></router-view></div>
  11. </div>
  12. </div>
  13. <FooterVue></FooterVue>
  14. </div>
  15. <router-view v-else></router-view>
  16. </template>
  17. <script>
  18. import HeaderVue from "./components/Header.vue";
  19. import AsideVue from "./components/Aside.vue";
  20. import FooterVue from "./components/Footer.vue";
  21. export default {
  22. components: {
  23. HeaderVue,
  24. AsideVue,
  25. FooterVue,
  26. },
  27. data() {
  28. return {};
  29. },
  30. };
  31. </script>
  32. <style>
  33. .main-container {
  34. height: 100%;
  35. width: 100%;
  36. min-height: 800px;
  37. min-width: 1200px;
  38. }
  39. .aside {
  40. width: 220px;
  41. }
  42. .footer {
  43. text-align: center;
  44. }
  45. .main-app {
  46. width: 100%;
  47. height: calc(100% - 120px);
  48. display: flex;
  49. }
  50. .section {
  51. width: 100%;
  52. background: #f4f5f6;
  53. overflow: auto;
  54. }
  55. .first-title {
  56. height: 52px;
  57. line-height: 52px;
  58. width: 100%;
  59. box-sizing: border-box;
  60. background: #fff;
  61. font-size: 18px;
  62. font-family: PingFangSC-Medium, PingFang SC;
  63. font-weight: 500;
  64. color: #333d43;
  65. padding-left: 20px;
  66. }
  67. .main-section {
  68. margin: 24px 0 0 24px;
  69. height: calc(100% - 76px);
  70. overflow: scroll;
  71. }
  72. .line-container-p18 {
  73. padding: 18px;
  74. background: #fff;
  75. }
  76. .line-container-p24 {
  77. padding: 24px;
  78. background: #fff;
  79. }
  80. .full-container-p24 {
  81. padding: 24px;
  82. height: calc(100% - 48px);
  83. background: #fff;
  84. }
  85. .df {
  86. display: flex;
  87. }
  88. .ffw {
  89. flex-flow: wrap;
  90. }
  91. .jcsa {
  92. justify-content: space-around;
  93. }
  94. .jcsb {
  95. justify-content: space-between;
  96. }
  97. .aic {
  98. align-items: center;
  99. }
  100. .dib {
  101. display: inline-block;
  102. }
  103. .ml8 {
  104. margin-left: 8px;
  105. }
  106. .jcfe {
  107. justify-content: flex-end;
  108. }
  109. .mt20 {
  110. margin-top: 20px;
  111. }
  112. .container-title {
  113. font-size: 18px;
  114. font-family: PingFangSC-Medium, PingFang SC;
  115. font-weight: 500;
  116. color: #0094fe;
  117. margin: 15px 0 15px 0;
  118. }
  119. .line {
  120. display: flex;
  121. align-items: center;
  122. align-content: flex-start;
  123. margin: 20px;
  124. }
  125. .info-line {
  126. display: flex;
  127. align-items: center;
  128. align-content: flex-start;
  129. margin-right: 20px;
  130. }
  131. .info-line-title {
  132. width: 120px;
  133. height: 100%;
  134. font-size: 14px;
  135. font-family: PingFangSC-Regular, PingFang SC;
  136. font-weight: 400;
  137. color: #353a42;
  138. line-height: 100%;
  139. text-align: right;
  140. padding-right: 20px;
  141. }
  142. .info-line-text {
  143. width: 240px !important;
  144. height: 100%;
  145. line-height: 100%;
  146. }
  147. .info-line-textarea {
  148. width: 640px;
  149. height: 100%;
  150. line-height: 100%;
  151. }
  152. .pointer {
  153. cursor: pointer;
  154. }
  155. </style>