index.wxss 3.5 KB

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