Index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <section class="index-content">
  3. </section>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {
  9. };
  10. },
  11. computed: {
  12. },
  13. methods: {
  14. },
  15. mounted() {
  16. },
  17. created(){
  18. },
  19. };
  20. </script>
  21. <style lang='scss' scoped>
  22. section {
  23. // width:100%;
  24. .index_header {
  25. background: #ffffff;
  26. height: 102px;
  27. border-radius: 10px;
  28. display: flex;
  29. align-items: center;
  30. .header-item {
  31. flex: 1;
  32. display: flex;
  33. justify-content: space-evenly;
  34. align-items: center;
  35. height: 56px;
  36. &:not(:last-child) {
  37. border-right: 1px solid #d8d8d8;
  38. }
  39. .text {
  40. font-size: 16px;
  41. color: #666666;
  42. }
  43. .count {
  44. font-size: 32px;
  45. }
  46. .item-img {
  47. display: flex;
  48. img {
  49. width: 56px;
  50. height: 56px;
  51. margin-right: 30px;
  52. }
  53. .text {
  54. position: relative;
  55. top: -8px;
  56. }
  57. .count {
  58. color: #208cfe;
  59. position: relative;
  60. bottom: -11px;
  61. }
  62. }
  63. .item-text {
  64. & > div {
  65. display: flex;
  66. align-items: center;
  67. .text {
  68. width: 120px;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. .index-main {
  75. background: #ffffff;
  76. border-radius: 10px;
  77. margin-top: 20px;
  78. padding: 20px;
  79. .main-item {
  80. position: relative;
  81. .item-title {
  82. font-size: 18px;
  83. font-weight: bold;
  84. color: #333333;
  85. margin-bottom: 20px;
  86. }
  87. .item-more {
  88. position: absolute;
  89. top: 20px;
  90. right: 20px;
  91. font-size: 14px;
  92. color: #3895fe;
  93. }
  94. }
  95. .main-content {
  96. display: flex;
  97. & > div:not(:last-child) {
  98. border-right: 1px solid #eee;
  99. }
  100. .c1 {
  101. flex: 1;
  102. .h2 {
  103. font-size: 14px;
  104. color: #999999;
  105. height: 40px;
  106. line-height: 40px;
  107. span:nth-of-type(2) {
  108. margin-left: 20px;
  109. }
  110. span:last-child {
  111. float: right;
  112. }
  113. }
  114. .con2 {
  115. font-size: 14px;
  116. color: #333333;
  117. height: 36px;
  118. line-height: 36px;
  119. background: #fafafa;
  120. border-radius: 7px;
  121. margin-bottom: 8px;
  122. padding: 0 10px;
  123. &:nth-of-type(2) {
  124. color: #ef3d3d;
  125. }
  126. &:nth-of-type(3) {
  127. color: #fdad23;
  128. }
  129. &:nth-of-type(4) {
  130. color: #56ccf6;
  131. }
  132. span:nth-of-type(2) {
  133. margin-left: 20px;
  134. }
  135. span:last-child {
  136. float: right;
  137. }
  138. }
  139. }
  140. .c2 {
  141. flex: 1.5;
  142. }
  143. .c1,
  144. .c2 {
  145. width: 100%;
  146. // flex:1;
  147. padding: 10px;
  148. box-sizing: border-box;
  149. }
  150. .c1-title,
  151. .c2-title {
  152. font-size: 15px;
  153. font-weight: bold;
  154. color: #666666;
  155. // margin-top:20px;
  156. }
  157. }
  158. }
  159. }
  160. </style>