index.wxss 3.5 KB

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