home.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. .main {
  67. display: grid;
  68. grid-template-columns: 1fr 1fr;
  69. align-items: start;
  70. gap: 20rpx;
  71. padding: 0 20rpx 10rpx;
  72. }
  73. .infoList {
  74. border-radius: 20rpx;
  75. background-color: #fff;
  76. box-sizing: border-box;
  77. overflow: hidden;
  78. box-shadow: 0 0 8rpx 0 #e6e6e6;
  79. position: relative;
  80. font-size: 0;
  81. .infoImg {
  82. width: 100%;
  83. height: 190rpx;
  84. }
  85. .info-box {
  86. line-height: 40rpx;
  87. font-size: 24rpx;
  88. color: #999999;
  89. padding: 0 20rpx 10rpx;
  90. position: relative;
  91. border-top: 1rpx solid #f3f3f3;
  92. .name {
  93. line-height: 56rpx;
  94. font-size: 28rpx;
  95. font-weight: 600;
  96. color: #161616;
  97. overflow: hidden; //超出隐藏
  98. text-overflow: ellipsis; //超出文本设置为...
  99. white-space: nowrap;
  100. }
  101. .describe {
  102. height: 40rpx;
  103. overflow: hidden; //超出隐藏
  104. text-overflow: ellipsis; //超出文本设置为...
  105. white-space: nowrap;
  106. }
  107. .info {
  108. height: 40rpx;
  109. display: flex;
  110. justify-content: space-between;
  111. align-content: center;
  112. }
  113. }
  114. .tags {
  115. position: absolute;
  116. left: 0;
  117. width: 100%;
  118. overflow: hidden;
  119. padding:0;
  120. top: 0;
  121. text-align: right;
  122. box-sizing: border-box;
  123. line-height: 32rpx;
  124. .tag {
  125. display: inline-block;
  126. width: 84rpx;
  127. line-height: 32rpx;
  128. margin-right: 20rpx;
  129. margin-top: 20rpx;
  130. border-radius: 16rpx;
  131. text-align: center;
  132. font-size: 24rpx;
  133. font-weight: 400;
  134. color: #fff;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }