index.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. page {
  2. .top {
  3. width: 100%;
  4. position: relative;
  5. .header {
  6. position: absolute;
  7. width: 100%;
  8. top: 0;
  9. }
  10. }
  11. .swiper {
  12. height: 600rpx;
  13. .slide-image {
  14. width: 100%;
  15. height: 98%;
  16. }
  17. }
  18. .rankingTitle {
  19. width: 100%;
  20. display: flex;
  21. justify-content: space-between;
  22. margin: 20rpx 0;
  23. font-weight: bold;
  24. .title {}
  25. .tabs {
  26. margin: 0;
  27. padding: 0;
  28. text {
  29. font-size: 25rpx;
  30. padding: 6rpx 28rpx;
  31. border-radius: 25rpx;
  32. margin: 0 10rpx;
  33. }
  34. .actvice {
  35. background: #B7D173;
  36. color: white;
  37. }
  38. }
  39. }
  40. .rankingContent {
  41. width: 100%;
  42. height: 250rpx;
  43. display: flex;
  44. justify-content: space-between;
  45. .rankingCard {
  46. background-repeat: no-repeat;
  47. border-radius: 15rpx;
  48. width: 32%;
  49. height: 100%;
  50. color: white;
  51. padding: 20rpx;
  52. view {
  53. overflow: hidden; //超出的文本隐藏
  54. text-overflow: ellipsis; //溢出用省略号显示
  55. white-space: nowrap; //溢出不换行
  56. }
  57. .ranking {
  58. width: 40rpx;
  59. height: 40rpx;
  60. text-align: center;
  61. line-height: 40rpx;
  62. border-radius: 5rpx;
  63. font-size: 27.17rpx;
  64. font-weight: bold;
  65. }
  66. .title {
  67. font-size: 25rpx;
  68. font-weight: bold;
  69. }
  70. .content {
  71. font-size: 20rpx;
  72. }
  73. }
  74. }
  75. .tabs {
  76. display: flex;
  77. justify-content: space-between;
  78. margin-top: 20rpx;
  79. .tabIndex {
  80. font-weight: bold;
  81. border-bottom: #B7D173 4rpx solid;
  82. border-radius: 50%;
  83. padding: 5rpx 0;
  84. }
  85. }
  86. .card {
  87. width: 100%;
  88. display: flex;
  89. margin: 30rpx 0;
  90. justify-content: space-between;
  91. height: 250rpx;
  92. .image {
  93. width: 40%;
  94. height: 100%;
  95. // background: greenyellow;
  96. image {
  97. border-radius: 15rpx;
  98. width: 100%;
  99. height: 100%;
  100. }
  101. }
  102. .content {
  103. width: 58%;
  104. display: flex;
  105. flex-direction: column;
  106. justify-content: space-around;
  107. .title {
  108. font-weight: bold;
  109. overflow: hidden; //超出的文本隐藏
  110. text-overflow: ellipsis; //溢出用省略号显示
  111. white-space: nowrap; //溢出不换行
  112. }
  113. .detail {
  114. font-size: 25rpx;
  115. color: gray;
  116. word-wrap: break-word;
  117. }
  118. .tabs {
  119. .score {
  120. font-size: 25rpx;
  121. color: gray;
  122. }
  123. text {
  124. font-size: 20rpx;
  125. padding: 5rpx 10rpx;
  126. border-radius: 20rpx;
  127. background: #e8f5c5;
  128. color: #B7D173;
  129. margin: 10rpx;
  130. }
  131. }
  132. .bottom {
  133. .prive {
  134. font-size: 30rpx;
  135. font-weight: bold;
  136. color: orange;
  137. }
  138. .range {
  139. font-size: 25rpx;
  140. color: gray;
  141. }
  142. }
  143. }
  144. }
  145. }