index.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. margin-top: 10rpx;
  106. display: -webkit-box;
  107. -webkit-line-clamp: 2;/*行数n*/
  108. -webkit-box-orient: vertical;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. }
  112. .likecover{
  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. .dataNotip{
  127. width: 100%;
  128. height: 300rpx;
  129. padding-top: 150rpx;
  130. }
  131. .tip{
  132. width: auto;
  133. height: 100rpx;
  134. text-align: center;
  135. margin: 0rpx auto;
  136. color: red;
  137. font-weight: 800;
  138. }