home.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. .pageHome {
  2. width: 100%;
  3. height: 100vh;
  4. overflow: hidden;
  5. .pageIndex {
  6. width: 100%;
  7. height: calc(100vh - 190px);
  8. padding: 0 10px;
  9. box-sizing: border-box;
  10. background-color: #fff;
  11. .tabs {
  12. height: 40px;
  13. border-bottom: 1px 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: 14px;
  24. line-height: 40px;
  25. font-weight: 600;
  26. text {
  27. position: relative;
  28. height: 100%;
  29. &:before {
  30. content: '';
  31. position: absolute;
  32. bottom: -1rpx;
  33. left: 0;
  34. right: 0;
  35. height: 2px;
  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: 10px 0;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. .icon {
  56. width: 30px;
  57. height: 30px;
  58. margin-left: 6px;
  59. }
  60. }
  61. .content {
  62. height: calc(100% - 90px);
  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: 10px;
  71. padding-bottom: 5px;
  72. }
  73. .infoList {
  74. border-radius: 5px;
  75. background-color: #fff;
  76. box-sizing: border-box;
  77. overflow: hidden;
  78. border: 1px solid #f0f0f0;
  79. .infoImg {
  80. width: 100%;
  81. height: 90px;
  82. }
  83. .info-box {
  84. line-height: 20px;
  85. font-size: 12px;
  86. color: #999999;
  87. padding: 0 10px 5px;
  88. .name {
  89. line-height: 24px;
  90. font-size: 14px;
  91. font-weight: 600;
  92. color: #161616;
  93. overflow: hidden; //超出隐藏
  94. text-overflow: ellipsis; //超出文本设置为...
  95. white-space: nowrap;
  96. }
  97. .describe {
  98. height: 20px;
  99. overflow: hidden; //超出隐藏
  100. text-overflow: ellipsis; //超出文本设置为...
  101. white-space: nowrap;
  102. }
  103. .info {
  104. height: 20px;
  105. display: flex;
  106. justify-content: space-between;
  107. align-content: center;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }