微信

page.scss 6.2KB

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