home.scss 3.5 KB

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