index.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**index.wxss**/
  2. /* 轮播图 */
  3. .swiper-container{
  4. width: 90%;
  5. height: 280rpx;
  6. margin: 0rpx auto;
  7. position: relative;
  8. border-radius: 15rpx;
  9. overflow: hidden;
  10. }
  11. .swiper{
  12. width: 100%;
  13. height: 100%;
  14. border-radius: 15rpx;
  15. }
  16. .swiperItem{
  17. width: 100%;
  18. height: 100%;
  19. border-radius: 15rpx;
  20. }
  21. .swiperItem>image{
  22. width: 100%;
  23. height: 100%;
  24. border-radius: 15rpx;
  25. }
  26. .dots{
  27. width: auto;
  28. height: 10rpx;
  29. position: absolute;
  30. bottom: 20rpx;
  31. border-radius: 50rpx;
  32. left: 240rpx;
  33. display: flex;
  34. justify-content: space-between;
  35. align-items: center;
  36. padding: 3rpx 10rpx;
  37. }
  38. .dotsItem{
  39. width: 8rpx;
  40. height: 8rpx;
  41. margin: 0rpx 8rpx;
  42. border-radius: 50%;
  43. background-color: #cdcdcd;
  44. transition: all .3s;
  45. }
  46. .active{
  47. width: 10rpx;
  48. height: 10rpx;
  49. background-color: #fff;
  50. }
  51. /* 宫格导航 */
  52. .nav{
  53. width: 90%;
  54. height: 132rpx;
  55. margin: 0rpx auto;
  56. margin-top: 40rpx;
  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. border-radius: 15rpx;
  89. }
  90. .likeimg{
  91. width: 210rpx;
  92. height: 210rpx;
  93. border-radius: 15rpx;
  94. position: relative;
  95. }
  96. .likeItemIcon{
  97. width: 100%;
  98. height: 100%;
  99. border-radius: 15rpx;
  100. }
  101. .likeText{
  102. font-size: 28rpx;
  103. color: #333;
  104. margin-top: 10rpx;
  105. display: -webkit-box;
  106. -webkit-line-clamp: 2;/*行数n*/
  107. -webkit-box-orient: vertical;
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. }
  111. .likecover{
  112. width: 190rpx;
  113. height: 40rpx;
  114. /* 透明背景层 */
  115. background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  116. /* opacity: 0.3; */
  117. position: absolute;
  118. bottom: 0rpx;
  119. color: #fff;
  120. font-size: 25rpx;
  121. padding: 5rpx 10rpx;
  122. border-bottom-left-radius: 15rpx;
  123. border-bottom-right-radius: 15rpx;
  124. }
  125. .dataNotip{
  126. width: 100%;
  127. height: 300rpx;
  128. padding-top: 150rpx;
  129. }
  130. .tip{
  131. width: auto;
  132. height: 100rpx;
  133. text-align: center;
  134. margin: 0rpx auto;
  135. color: red;
  136. font-weight: 800;
  137. }