微信

page.scss 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. .mainPage{
  2. overflow-y: scroll;
  3. -webkit-overflow-scrolling: touch;
  4. transform: translateZ(0);
  5. -webkit-transform: translateZ(0);
  6. background: #fff;
  7. .banner{
  8. width: 100%;
  9. position: relative;
  10. overflow: hidden;
  11. margin: .15rem auto 0;
  12. >div{
  13. margin: 0 .15rem;
  14. position: relative;
  15. overflow: hidden;
  16. >div{
  17. width: 100%;
  18. position: relative;
  19. overflow: hidden;
  20. border-radius: .1rem;
  21. height: 0;
  22. padding-bottom: 55%;
  23. background: #eee;
  24. >div{
  25. width: 100%;
  26. position: absolute;
  27. left: 0;
  28. top: 0;
  29. bottom: 0;
  30. overflow: hidden;
  31. border-radius: .1rem;
  32. >div{
  33. width: 100%;
  34. height: 100%;
  35. border-radius: .1rem;
  36. }
  37. }
  38. }
  39. }
  40. }
  41. .subNav{
  42. margin: .3rem auto 0;
  43. ul{
  44. width: 100%;
  45. li{
  46. text-align: center;
  47. font-size: 0;
  48. img{
  49. display: inline-block;
  50. height: .25rem;
  51. }
  52. span{
  53. width: 100%;
  54. display: inline-block;
  55. text-align: center;
  56. font-size: .14rem;
  57. line-height: .22rem;
  58. }
  59. }
  60. }
  61. }
  62. .areaHeader{
  63. margin: .35rem auto 0;
  64. align-items: center;
  65. >h1{
  66. line-height: .28rem;
  67. margin-left: .15rem;
  68. font-size: .17rem;
  69. }
  70. >a{
  71. font-size: .12rem;
  72. color: #f83c00;
  73. margin-right: .15rem;
  74. }
  75. }
  76. .areaContent{
  77. margin: .2rem auto 0;
  78. .find{
  79. >div{
  80. width: 100%;
  81. position: relative;
  82. .swiper-container{
  83. width: 100%;
  84. position: relative;
  85. .swiper-slide{
  86. width: 1.14rem;
  87. height: .9rem;
  88. background: #eee;
  89. position: relative;
  90. overflow: hidden;
  91. border-radius: .1rem;
  92. margin-right: .15rem;
  93. &:first-child{
  94. margin-left: .15rem;
  95. }
  96. img{
  97. display: inline-block;
  98. position: relative;
  99. z-index: 1;
  100. }
  101. span{
  102. display: inline-block;
  103. position: absolute;
  104. z-index: 2;
  105. width: 100%;
  106. left: 0;
  107. bottom: .1rem;
  108. color: #fff;
  109. font-size: .11rem;
  110. i{
  111. font-size: .12rem;
  112. color: #fff;
  113. margin-left: .1rem;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. .course{
  121. >div{
  122. width: 100%;
  123. position: relative;
  124. .swiper-container{
  125. width: 100%;
  126. position: relative;
  127. .swiper-slide{
  128. width: 1.3rem;
  129. position: relative;
  130. overflow: visible;
  131. margin-right: .25rem;
  132. &:first-child{
  133. margin-left: .15rem;
  134. }
  135. .img{
  136. width: 100%;
  137. padding-bottom: 1.66rem;
  138. background: #eee;
  139. border-radius: .1rem;
  140. position: relative;
  141. overflow: hidden;
  142. img{
  143. z-index: 1;
  144. }
  145. span{
  146. width: 100%;
  147. left: 0;
  148. top: 0;
  149. font-size: .13rem;
  150. top: .1rem;
  151. text-indent: .1rem;
  152. display: inline-block;
  153. z-index: 2;
  154. position: absolute;
  155. color: #fff;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. white-space: nowrap;
  159. }
  160. }
  161. .price{
  162. position: relative;
  163. overflow: visible;
  164. text-align: right;
  165. height: 0;
  166. span{
  167. display: inline-block;
  168. position: relative;
  169. z-index: 2;
  170. line-height: .24rem;
  171. color: #fff;
  172. padding: 0 .1rem;
  173. background: #ec1d24;
  174. border-radius: .24rem;
  175. font-size: .11rem;
  176. transform: translate(.1rem, -.35rem);
  177. -webkit-transform: translate(.1rem, -.35rem);
  178. box-shadow: 0 0 .1rem .01rem rgba(236, 29, 36, .15);
  179. }
  180. +span{
  181. line-height: .18rem;
  182. font-size: .1rem;
  183. margin: .1rem auto 0;
  184. +span{
  185. line-height: .2rem;
  186. font-size: .13rem;
  187. display: block;
  188. }
  189. }
  190. }
  191. >span{
  192. width: 100%;
  193. display: block;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. }
  202. .newsList{
  203. >div{
  204. margin: 0 .15rem .2rem;
  205. >div{
  206. width: 100%;
  207. position: relative;
  208. overflow: hidden;
  209. ul{
  210. li{
  211. margin: .2rem auto 0;
  212. align-items: center;
  213. &:first-child{
  214. margin: 0 auto;
  215. }
  216. .img{
  217. width: 1.25rem;
  218. height: .8rem;
  219. border-radius: .1rem;
  220. background: #eee;
  221. position: relative;
  222. overflow: hidden;
  223. }
  224. >div{
  225. margin-left: .15rem;
  226. span{
  227. width: 100%;
  228. display: block;
  229. line-height: .24rem;
  230. &:first-child{
  231. font-size: .14rem;
  232. font-weight: bold;
  233. }
  234. &:nth-child(2){
  235. font-size: .12rem;
  236. color: #9d9d9d;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }