微信

page.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .mainPage{
  2. overflow-y: scroll;
  3. -webkit-overflow-scrolling: touch;
  4. transform: translateZ(0);
  5. -webkit-transform: translateZ(0);
  6. background: #fff;
  7. &>*:last-child{
  8. margin-bottom: .2rem;
  9. }
  10. .topBanner{
  11. width: 100%;
  12. height: 0;
  13. position: relative;
  14. overflow: hidden;
  15. padding-bottom: 54%;
  16. background: #eee;
  17. &>div{
  18. width: 100%;
  19. position: absolute;
  20. left: 0;
  21. bottom: 0;
  22. top: 0;
  23. }
  24. }
  25. .pageTitle{
  26. margin: .18rem auto 0;
  27. position: relative;
  28. overflow: hidden;
  29. h5{
  30. &::after{
  31. content: '';
  32. width: 100%;
  33. height: .01rem;
  34. background: #eee;
  35. position: absolute;
  36. left: 0;
  37. top: 50%;
  38. transform: translateY(-50%);
  39. -webkit-transform: translateY(-50%);
  40. z-index: 1;
  41. }
  42. width: 100%;
  43. display: block;
  44. text-align: center;
  45. position: relative;
  46. overflow: hidden;
  47. margin: 0 .2rem;
  48. span{
  49. display: inline-block;
  50. line-height: .26rem;
  51. font-size: .14rem;
  52. font-weight: normal;
  53. background: #fff;
  54. position: relative;
  55. z-index: 2;
  56. padding: 0 .15rem;
  57. }
  58. }
  59. }
  60. .pageNav{
  61. margin: 0 .1rem;
  62. font-size: 0;
  63. &>a{
  64. width: 20%;
  65. display: inline-block;
  66. position: relative;
  67. overflow: hidden;
  68. margin-top: .15rem;
  69. vertical-align: top;
  70. a{
  71. width: 70%;
  72. display: block;
  73. padding-bottom: 70%;
  74. position: relative;
  75. overflow: hidden;
  76. background: #eee;
  77. margin: 0 auto;
  78. border-radius: 100%;
  79. img{
  80. z-index: 1;
  81. }
  82. em{
  83. width: 100%;
  84. display: block;
  85. position: absolute;
  86. left: 0;
  87. bottom: 0;
  88. line-height: .3rem;
  89. font-size: .11rem;
  90. text-align: center;
  91. color: #fff;
  92. z-index: 2;
  93. }
  94. }
  95. span{
  96. width: 70%;
  97. display: block;
  98. margin: .1rem auto 0;
  99. line-height: .16rem;
  100. font-size: .1rem;
  101. text-align: center;
  102. color: #666;
  103. }
  104. }
  105. }
  106. .MsgBanner{
  107. width: 100%;
  108. height: .44rem;
  109. position: relative;
  110. overflow: hidden;
  111. background: #f8f8f8;
  112. margin: .25rem auto 0;
  113. &>div{
  114. width: 100%;
  115. position: absolute;
  116. left: 0;
  117. top: 0;
  118. bottom: 0;
  119. align-items: center;
  120. &>i,
  121. &>span{
  122. color: #f05a3f;
  123. font-size: .12rem;
  124. margin-left: .08rem;
  125. }
  126. &>i{
  127. font-size: .16rem;
  128. margin-left: .3rem;
  129. }
  130. &>div{
  131. margin-left: .1rem;
  132. height: 100%;
  133. margin-right: .2rem;
  134. &>div{
  135. width: 100%;
  136. height: 100%;
  137. position: relative;
  138. overflow: hidden;
  139. &>div{
  140. width: 100%;
  141. height: 100%;
  142. a{
  143. width: 100%;
  144. display: inline-block;
  145. overflow: hidden;
  146. white-space: nowrap;
  147. text-overflow: ellipsis;
  148. line-height: .44rem;
  149. color: #f05a3f;
  150. span{
  151. color: #f05a3f;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }
  159. .projectList{
  160. margin: .1rem .1rem 0;
  161. li{
  162. width: 100%;
  163. position: relative;
  164. height: 0;
  165. padding-bottom: 30%;
  166. background: #eee;
  167. overflow: hidden;
  168. margin: .08rem auto 0;
  169. }
  170. }
  171. .newsList{
  172. margin: .15rem .2rem .2rem;
  173. &>li{
  174. width: 100%;
  175. display: block;
  176. position: relative;
  177. overflow: hidden;
  178. border-top: .01rem solid #eee;
  179. &:first-child{
  180. border-top:none
  181. }
  182. }
  183. }
  184. }