index.less 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. page {
  2. background-color: #f8f8f8;
  3. padding-bottom: 120rpx;
  4. .flexd {
  5. position: fixed;
  6. z-index: 999;
  7. width: 100%;
  8. .nav-background {
  9. background: #f39283;
  10. height: 40rpx;
  11. }
  12. .v-search {
  13. position: relative;
  14. top: -40rpx;
  15. // box-shadow: 0px 5rpx 10rpx rgba(0, 0, 0, 0.2);
  16. background-color: transparent;
  17. }
  18. }
  19. .swiper {
  20. margin: 128rpx 32rpx 24rpx 32rpx;
  21. width: 687rpx;
  22. height: 329rpx;
  23. .slide-image {
  24. width: 687rpx;
  25. height: 329rpx;
  26. border-radius: 12rpx;
  27. }
  28. }
  29. .rank {
  30. width: 687rpx;
  31. height: 375rpx;
  32. margin: 24rpx 32rpx;
  33. color: #ffffff;
  34. border-radius: 16rpx;
  35. background: url('https://file.ruixiuauto.com/cDBRXuM6Xh/20230809/c1ajl1102945127.web 拷贝') no-repeat 100% 100%;
  36. .item-title {
  37. display: flex;
  38. align-items: center;
  39. justify-content: space-between;
  40. padding: 52rpx 32rpx 32rpx 32rpx;
  41. .title-left {
  42. display: flex;
  43. align-items: center;
  44. .text {
  45. text-indent: 4rpx;
  46. font-size: 28rpx;
  47. font-family: MiSans;
  48. font-weight: 400;
  49. color: #F8F8F8;
  50. }
  51. }
  52. .title-right {
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. background-color: #f39475;
  57. border-radius: 36rpx;
  58. >view {
  59. padding: 16rpx 28rpx;
  60. }
  61. .right-active {
  62. background-color: #f8f8f8;
  63. border-radius: 36rpx;
  64. color: #2b2b2b;
  65. }
  66. }
  67. }
  68. .content {
  69. padding: 0 32rpx;
  70. display: flex;
  71. flex-wrap: wrap;
  72. justify-content: space-between;
  73. align-items: center;
  74. .card {
  75. background-color: #f8f8f8;
  76. // display: flex;
  77. // flex-direction: column;
  78. // align-items: center;
  79. border-radius: 16rpx;
  80. height: 85rpx;
  81. width: 298rpx;
  82. padding: 8rpx;
  83. margin-bottom: 24rpx;
  84. display: flex;
  85. flex-direction: row;
  86. .left {
  87. position: relative;
  88. .ranking {
  89. // width: 32rpx;
  90. // height: 16rpx;
  91. padding: 3rpx 4rpx 3rpx 3rpx;
  92. background-color: #f39283;
  93. border-radius: 0 12rpx 12rpx 0;
  94. position: absolute;
  95. left: 0;
  96. top: 10rpx;
  97. font-size: 8rpx;
  98. font-family: MiSans;
  99. font-weight: bold;
  100. color: #F8F8F8;
  101. }
  102. image {
  103. border-radius: 16rpx;
  104. width: 66rpx;
  105. height: 66rpx;
  106. }
  107. }
  108. .right {
  109. height: 70rpx;
  110. text-indent: 8rpx;
  111. width: 200rpx;
  112. >view {
  113. padding: 0;
  114. }
  115. .h1 {
  116. font-size: 16rpx;
  117. font-weight: bold;
  118. color: #000;
  119. display: -webkit-box;
  120. -webkit-box-orient: vertical;
  121. -webkit-line-clamp: 1;
  122. overflow: hidden;
  123. }
  124. .h2 {
  125. font-size: 14rpx;
  126. color: #999999;
  127. display: flex;
  128. align-items: center;
  129. justify-content: space-between;
  130. .light {
  131. font-size: 16rpx;
  132. font-weight: bold;
  133. color: #fb7204;
  134. }
  135. }
  136. .h3 {
  137. font-size: 12rpx;
  138. color: #999999;
  139. overflow:hidden; //超出的文本隐藏
  140. text-overflow:ellipsis; //溢出用省略号显示
  141. white-space:nowrap; //溢出不换行
  142. }
  143. }
  144. }
  145. }
  146. }
  147. .navBar {
  148. display: flex;
  149. align-items: center;
  150. justify-content: space-between;
  151. margin: 32rpx;
  152. .navItem {
  153. // display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. margin-top: 30rpx;
  157. border-bottom: 4rpx solid transparent;
  158. font-size: 26rpx;
  159. font-family: Source Han Sans CN;
  160. font-weight: 300;
  161. color: #363636;
  162. .navItemTitle {
  163. padding-bottom: 12rpx;
  164. }
  165. .navItemIcon {
  166. width: 60rpx;
  167. image {
  168. width: 50rpx;
  169. height: 50rpx;
  170. margin-left: 6rpx;
  171. // transform: translate(-25rpx -25rpx 0);
  172. }
  173. }
  174. }
  175. .active {
  176. font-weight: bold;
  177. border-bottom: 4rpx solid #f39283;
  178. font-size: 32rpx;
  179. font-family: Source Han Sans CN;
  180. color: #363636;
  181. }
  182. }
  183. .play-list {
  184. margin: 32rpx;
  185. display: flex;
  186. align-items: center;
  187. justify-content: space-between;
  188. flex-wrap: wrap;
  189. .play-item {
  190. width: 332rpx;
  191. height: 480rpx;
  192. background: #FFFFFF;
  193. box-shadow: 0px 5px 9px 0px rgba(14, 5, 9, 0.05);
  194. border-radius: 12rpx;
  195. margin-bottom: 24rpx;
  196. .item-img {
  197. position: relative;
  198. .item-ranking {
  199. position: absolute;
  200. top: 18rpx;
  201. left: 0;
  202. font-size: 24rpx;
  203. font-family: Source Han Sans CN;
  204. font-weight: bold;
  205. color: #FFFFFF;
  206. padding: 18rpx 24rpx;
  207. background-color: #f39283;
  208. border-radius: 0 32rpx 32rpx 0;
  209. }
  210. }
  211. .body {
  212. padding: 0 16rpx;
  213. height: 150rpx;
  214. display: flex;
  215. flex-direction: column;
  216. justify-content: space-around;
  217. .item-text {
  218. height: 62rpx;
  219. font-size: 24rpx;
  220. font-weight: 300;
  221. display: -webkit-box;
  222. -webkit-box-orient: vertical;
  223. -webkit-line-clamp: 2;
  224. overflow: hidden;
  225. }
  226. .label {
  227. display: flex;
  228. font-size: 15rpx;
  229. font-weight: 400;
  230. overflow:hidden; //超出的文本隐藏
  231. text-overflow:ellipsis; //溢出用省略号显示
  232. white-space:nowrap; //溢出不换行
  233. >view {
  234. background-color: #fdefed;
  235. border-radius: 12rpx;
  236. padding: 5rpx 16rpx;
  237. margin-right: 12rpx;
  238. overflow:hidden; //超出的文本隐藏
  239. text-overflow:ellipsis; //溢出用省略号显示
  240. white-space:nowrap; //溢出不换行
  241. }
  242. }
  243. .detail {
  244. display: flex;
  245. align-items: center;
  246. font-size: 18rpx;
  247. font-weight: 300;
  248. // padding-bottom: 20rpx;
  249. .d-light {
  250. font-weight: bold;
  251. font-size: 26rpx;
  252. margin-right: 26rpx;
  253. color: #FB8737;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. }
  260. ;