index.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /**index.wxss**/
  2. /* 轮播图 */
  3. .swiper-container{
  4. width: 95%;
  5. height: 280rpx;
  6. margin: 0rpx auto;
  7. position: relative;
  8. }
  9. .swiper{
  10. width: 100%;
  11. height: 100%;
  12. }
  13. .swiperItem{
  14. width: 100%;
  15. height: 100%;
  16. /* height: auto; */
  17. margin: 0rpx 20rpx;
  18. border-radius: 15rpx;
  19. }
  20. .swiperItem>image{
  21. width: 95%;
  22. height: 100%;
  23. border-radius: 15rpx;
  24. }
  25. .dots{
  26. width: auto;
  27. height: 10rpx;
  28. position: absolute;
  29. bottom: 20rpx;
  30. border-radius: 50rpx;
  31. left: 240rpx;
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. padding: 3rpx 10rpx;
  36. }
  37. .dotsItem{
  38. width: 8rpx;
  39. height: 8rpx;
  40. margin: 0rpx 8rpx;
  41. border-radius: 50%;
  42. background-color: #cdcdcd;
  43. transition: all .3s;
  44. }
  45. .active{
  46. width: 10rpx;
  47. height: 10rpx;
  48. background-color: #fff;
  49. }
  50. /* 宫格导航 */
  51. .nav{
  52. width: 90%;
  53. height: 132rpx;
  54. margin: 0rpx auto;
  55. margin-top: 40rpx;
  56. /* background-color: red; */
  57. display: flex;
  58. justify-content: space-between;
  59. align-items: center;
  60. align-content: center;
  61. }
  62. .navItem{
  63. width: 94rpx;
  64. font-size: 20rpx;
  65. text-align: center;
  66. line-height: 35rpx;
  67. color: #aaa;
  68. }
  69. .navIcon{
  70. width: 84rpx;
  71. height: 84rpx;
  72. }
  73. /* 猜你喜欢 */
  74. .like{
  75. width: 90%;
  76. margin: 0rpx auto;
  77. margin-top: 40rpx;
  78. }
  79. .likeItemBox{
  80. width: 100%;
  81. display: flex;
  82. justify-content: space-between;
  83. overflow: hidden;
  84. }
  85. .likeItem{
  86. width: 210rpx;
  87. height: 310rpx;
  88. }
  89. .likeimg{
  90. width: 210rpx;
  91. height: 210rpx;
  92. border-radius: 10rpx;
  93. position: relative;
  94. }
  95. .likeItemIcon{
  96. width: 100%;
  97. height: 100%;
  98. border-radius: 10rpx;
  99. }
  100. .likeText{
  101. font-size: 28rpx;
  102. color: #333;
  103. padding: 20rpx 0rpx;
  104. display: -webkit-box;
  105. -webkit-line-clamp: 2;/*行数n*/
  106. -webkit-box-orient: vertical;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. }
  110. .cover{
  111. width: 190rpx;
  112. height: 40rpx;
  113. /* 透明背景层 */
  114. background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  115. /* opacity: 0.3; */
  116. position: absolute;
  117. bottom: 0rpx;
  118. color: #fff;
  119. font-size: 25rpx;
  120. padding: 5rpx 10rpx;
  121. }
  122. /* 主要内容 */
  123. .contentList{
  124. width:90%;
  125. margin: 0rpx auto;
  126. margin-top: 10rpx;
  127. }
  128. .content{
  129. width: 100%;
  130. height: auto;
  131. padding: 20rpx 0rpx;
  132. display: flex;
  133. justify-content: space-between;
  134. border-bottom: 1rpx solid #cdcdcd;
  135. }
  136. .contentImg{
  137. width: 232rpx;
  138. height: 232rpx;
  139. border-radius: 15rpx;
  140. }
  141. .contentImg>image{
  142. width: 100%;
  143. height: 100%;
  144. border-radius: 15rpx;
  145. }
  146. .content-right{
  147. width: 530rpx;
  148. height: 100%;
  149. margin-left: 20rpx;
  150. }
  151. .title{
  152. width: 100%;
  153. height: 138rpx;
  154. overflow: hidden;
  155. }
  156. .titleText{
  157. font-size: 35rpx;
  158. color: #333;
  159. text-align: left;
  160. display: -webkit-box;
  161. -webkit-line-clamp: 1;/*行数n*/
  162. -webkit-box-orient: vertical;
  163. overflow: hidden;
  164. text-overflow: ellipsis;
  165. }
  166. .introduction{
  167. font-size: 28rpx;
  168. color: #cdcdcd;
  169. text-align: left;
  170. padding: 15rpx 0rpx;
  171. display: -webkit-box;
  172. -webkit-line-clamp: 2;/*行数n*/
  173. -webkit-box-orient: vertical;
  174. overflow: hidden;
  175. text-overflow: ellipsis;
  176. }
  177. .count{
  178. width: 100%;
  179. height: 50rpx;
  180. display: flex;
  181. justify-content: start;
  182. align-items: center;
  183. }
  184. .playcount{
  185. font-size: 25rpx;
  186. color: #cdcdcd;
  187. margin-right: 30rpx;
  188. }
  189. .jicount{
  190. font-size: 25rpx;
  191. color: #cdcdcd;
  192. }
  193. .dataNotip{
  194. width: 100%;
  195. height: 300rpx;
  196. padding-top: 150rpx;
  197. }
  198. .tip{
  199. width: auto;
  200. height: 100rpx;
  201. text-align: center;
  202. margin: 0rpx auto;
  203. color: red;
  204. font-weight: 800;
  205. }