index.less 2.7 KB

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