index.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @charset "UTF-8";
  2. /* 需要放到文件最上面 */
  3. /* 水平间距 */
  4. /* 水平间距 */
  5. /*
  6. 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值
  7. */
  8. /* 水平间距 */
  9. .index-container {
  10. box-sizing: border-box;
  11. position: relative;
  12. }
  13. .index-container .project-box {
  14. padding: 20rpx 30rpx;
  15. display: flex;
  16. justify-content: space-between;
  17. background-color: #ffffff;
  18. border-top: 1px solid #EDEDED;
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. right: 0;
  23. z-index: 99;
  24. }
  25. .index-container .project-box .project-name {
  26. display: flex;
  27. align-items: center;
  28. font-weight: 400;
  29. align-items: center;
  30. flex: 1;
  31. width: 0;
  32. overflow: hidden;
  33. }
  34. .index-container .project-box .project-icon {
  35. margin-left: 8rpx;
  36. }
  37. .index-container .project-box .change-role {
  38. font-size: 24rpx;
  39. color: #909399;
  40. border: 1px solid #DCDCDC;
  41. width: 160rpx;
  42. height: 40rpx;
  43. border-radius: 40rpx;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. .index-container .project-box .role-icon {
  49. margin-right: 8rpx;
  50. }
  51. .index-container .project-box .role-icon text {
  52. color: #909399 !important;
  53. }
  54. .index-container .banner-box {
  55. padding: 30rpx;
  56. box-sizing: border-box;
  57. margin-top: 86rpx;
  58. }
  59. .index-container .banner-box .swiper-box {
  60. height: 400rpx;
  61. border-radius: 20rpx;
  62. overflow: hidden;
  63. }
  64. .index-container .banner-box .swiper-item {
  65. width: 100%;
  66. height: 100%;
  67. background-size: cover;
  68. background-position: bottom;
  69. }
  70. .index-container .banner-box .swiper-item-box:first-child {
  71. border-radius: 20rpx 0 0 20rpx;
  72. }
  73. .index-container .banner-box .swiper-item-box:last-child {
  74. border-radius: 0 20rpx 20rpx 0;
  75. }
  76. .index-container .grid {
  77. display: flex;
  78. flex-wrap: wrap;
  79. padding: 0 30rpx;
  80. box-sizing: border-box;
  81. }
  82. .index-container .grid .grid-item {
  83. flex: 1;
  84. height: 180rpx;
  85. border-radius: 16rpx;
  86. color: #ffffff;
  87. display: flex;
  88. align-items: center;
  89. padding: 0 20rpx;
  90. justify-content: space-between;
  91. }
  92. .index-container .grid .grid-item.red {
  93. background: linear-gradient(to right, #f24f68, #ed8598);
  94. }
  95. .index-container .grid .grid-item.blue {
  96. background: linear-gradient(to right, #459fe6, #6cc9e4);
  97. }
  98. .index-container .grid .label {
  99. font-size: 32rpx;
  100. margin-bottom: 5px;
  101. }
  102. .index-container .grid .sub-label {
  103. color: #eee;
  104. font-size: 24rpx;
  105. display: flex;
  106. align-items: center;
  107. height: 40rpx;
  108. opacity: 0.5;
  109. }
  110. .index-container .grid .sub-label-icon text {
  111. color: #eee !important;
  112. }
  113. .index-container .grid .grid-item:nth-child(2n) {
  114. margin-left: 30rpx;
  115. }
  116. .index-container .grid .home-filled {
  117. opacity: 0.3;
  118. }
  119. .index-container .grid .home-filled text {
  120. color: #eee !important;
  121. }
  122. .index-container .house-box {
  123. padding: 0 30rpx;
  124. box-sizing: border-box;
  125. }
  126. .index-container .house-box .good-box {
  127. margin-top: 30rpx;
  128. position: relative;
  129. text-align: center;
  130. }
  131. .index-container .house-box .good-box text {
  132. background: #f8f8f8;
  133. z-index: 9;
  134. position: relative;
  135. padding: 5px 10px;
  136. color: #909399;
  137. }
  138. .index-container .house-box .good-box:before {
  139. content: '';
  140. bottom: 20rpx;
  141. position: absolute;
  142. left: 0;
  143. height: 1px;
  144. right: 0;
  145. background: #EDEDED;
  146. z-index: 8;
  147. }