home.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .pageHome {
  2. width: 100%;
  3. height: 100vh;
  4. overflow: hidden;
  5. .pageIndex {
  6. width: 100%;
  7. height: calc(100vh - 380rpx);
  8. box-sizing: border-box;
  9. background-color: #fff;
  10. .tabs {
  11. height: 80rpx;
  12. border-bottom: 2rpx solid #f0f0f0;
  13. color: #333;
  14. display: flex;
  15. justify-content: space-between;
  16. align-items: center;
  17. .tab {
  18. width: 50%;
  19. display: flex;
  20. justify-content: center;
  21. height: 100%;
  22. font-size: 28rpx;
  23. line-height: 80rpx;
  24. font-weight: 600;
  25. text {
  26. position: relative;
  27. height: 100%;
  28. &:before {
  29. content: '';
  30. position: absolute;
  31. bottom: -2rpx;
  32. left: 0;
  33. right: 0;
  34. height: 4rpx;
  35. background-color: #EB5A10;
  36. visibility: hidden;
  37. }
  38. }
  39. }
  40. .active {
  41. color: #EB5A10;
  42. text {
  43. &:before {
  44. visibility: visible;
  45. }
  46. }
  47. }
  48. }
  49. .search {
  50. margin: 20rpx 0;
  51. padding: 0 20rpx;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. .icon {
  56. width: 60rpx;
  57. height: 60rpx;
  58. margin-left: 12rpx;
  59. }
  60. }
  61. .content {
  62. height: calc(100% - 180rpx);
  63. box-sizing: border-box;
  64. overflow-y: auto;
  65. -webkit-overflow-scrolling: touch;
  66. .none {
  67. height: 320rpx;
  68. margin-top: 30%;
  69. }
  70. .main {
  71. display: grid;
  72. grid-template-columns: 1fr 1fr;
  73. align-items: start;
  74. gap: 20rpx;
  75. padding: 0 20rpx 10rpx;
  76. }
  77. .infoList {
  78. border-radius: 20rpx;
  79. background-color: #fff;
  80. box-sizing: border-box;
  81. overflow: hidden;
  82. box-shadow: 0 0 8rpx 0 #e6e6e6;
  83. position: relative;
  84. font-size: 0;
  85. .infoImg {
  86. width: 100%;
  87. height: 190rpx;
  88. }
  89. .info-box {
  90. line-height: 40rpx;
  91. font-size: 24rpx;
  92. color: #999999;
  93. padding: 0 20rpx 10rpx;
  94. position: relative;
  95. border-top: 1rpx solid #f3f3f3;
  96. .name {
  97. line-height: 56rpx;
  98. font-size: 28rpx;
  99. font-weight: 600;
  100. color: #161616;
  101. overflow: hidden; //超出隐藏
  102. text-overflow: ellipsis; //超出文本设置为...
  103. white-space: nowrap;
  104. }
  105. .describe {
  106. height: 40rpx;
  107. overflow: hidden; //超出隐藏
  108. text-overflow: ellipsis; //超出文本设置为...
  109. white-space: nowrap;
  110. }
  111. .info {
  112. height: 40rpx;
  113. display: flex;
  114. justify-content: space-between;
  115. align-content: center;
  116. }
  117. }
  118. .tags {
  119. position: absolute;
  120. left: 0;
  121. width: 100%;
  122. overflow: hidden;
  123. padding: 0;
  124. top: 0;
  125. text-align: right;
  126. box-sizing: border-box;
  127. line-height: 32rpx;
  128. .tag {
  129. display: inline-block;
  130. width: 84rpx;
  131. line-height: 32rpx;
  132. margin-right: 20rpx;
  133. margin-top: 20rpx;
  134. border-radius: 16rpx;
  135. text-align: center;
  136. font-size: 24rpx;
  137. font-weight: 400;
  138. color: #fff;
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }