index.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. .index-wrap {
  2. width: 100%;
  3. height: 500px;
  4. }
  5. .index {
  6. width: $width;
  7. margin: 0 auto;
  8. box-sizing: border-box;
  9. display: flex;
  10. flex-direction: row;
  11. justify-content: space-between;
  12. .border-right {
  13. border-right: 1px solid #f5f5f5;
  14. }
  15. .border-bottom {
  16. border-bottom: 1px solid #f5f5f5;
  17. }
  18. .banner {
  19. height: 430px;
  20. width: 100%;
  21. .el-carousel__indicators--horizontal{
  22. padding-left: 240px;
  23. }
  24. .el-image {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. }
  29. }
  30. .content {
  31. width: $width;
  32. margin: auto;
  33. // 中部广告位
  34. .adv-middle{
  35. display: flex;
  36. margin-top: 30px;
  37. .adv-middle-item{
  38. margin-right: 15px;
  39. height: 210px;
  40. // flex: 1;
  41. transition: all 0.2s linear 0s;
  42. cursor: pointer;
  43. .el-image{
  44. height: 210px;
  45. }
  46. &:last-of-type{
  47. margin-right: 0;
  48. }
  49. &:hover{
  50. z-index: 2;
  51. box-shadow: rgb(0 0 0 / 10%) 0px 15px 30px;
  52. transform: translate3d(0px, -2px, 0px);
  53. }
  54. img{
  55. max-width: 100%;
  56. max-height: 100%;
  57. }
  58. }
  59. }
  60. // 广告
  61. .ad-wrap {
  62. width: $width;
  63. margin: 20px auto;
  64. display: flex;
  65. justify-content: space-between;
  66. > div {
  67. width: calc((100% - 15px) / 2);
  68. height: 372px;
  69. }
  70. .ad-big {
  71. display: flex;
  72. justify-content: space-between;
  73. .ad-big-img {
  74. width: calc((100% - 15px) / 2);
  75. cursor: pointer;
  76. }
  77. }
  78. .ad-small {
  79. display: flex;
  80. justify-content: space-between;
  81. align-content: space-between;
  82. flex-wrap: wrap;
  83. .ad-small-img {
  84. width: calc((100% - 15px) / 2);
  85. height: calc((100% - 15px) / 2);
  86. cursor: pointer;
  87. }
  88. }
  89. }
  90. // 限时秒杀
  91. .seckill-wrap {
  92. height: 376px;
  93. width: $width;
  94. background-color: #ffffff;
  95. margin: 20px auto;
  96. border: 1px solid #e9e9e9;
  97. }
  98. .seckill-time {
  99. width: 100%;
  100. height: 45px;
  101. line-height: 44px;
  102. border-bottom: 1px solid #e9e9e9;
  103. display: flex;
  104. justify-content: space-between;
  105. padding: 0 20px;
  106. box-sizing: border-box;
  107. .seckill-time-left {
  108. color: #383838;
  109. i,
  110. .seckill-time-title {
  111. font-size: 18px;
  112. font-weight: 600;
  113. margin-right: 5px;
  114. }
  115. .seckill-time-title {
  116. margin-right: 15px;
  117. }
  118. }
  119. .count-down {
  120. display: inline-block;
  121. margin-left: 7px;
  122. }
  123. .seckill-time-right {
  124. color: #838383;
  125. cursor: pointer;
  126. }
  127. }
  128. .seckill-content {
  129. padding: 20px 20px 0;
  130. }
  131. .seamless-warp2 {
  132. overflow: hidden;
  133. ul.item {
  134. li {
  135. float: left;
  136. width: 250px;
  137. padding: 0 25px;
  138. box-sizing: border-box;
  139. border-right: 1px solid #f1f1f1;
  140. .seckill-goods {
  141. cursor: pointer;
  142. .seckill-goods-img {
  143. width: 100%;
  144. height: 200px;
  145. }
  146. img {
  147. object-fit: cover;
  148. }
  149. > p {
  150. line-height: 24px;
  151. display: -webkit-box;
  152. -webkit-box-orient: vertical;
  153. -webkit-line-clamp: 2;
  154. overflow: hidden;
  155. height: 50px;
  156. }
  157. .seckill-price-wrap {
  158. display: flex;
  159. align-items: flex-end;
  160. height: 24px;
  161. line-height: 24px;
  162. margin-top: 10px;
  163. p span {
  164. font-size: 24px;
  165. }
  166. .primary-price {
  167. text-decoration: line-through;
  168. color: #838383;
  169. margin-left: 10px;
  170. }
  171. }
  172. }
  173. }
  174. }
  175. }
  176. }
  177. .floor {
  178. width: $width;
  179. margin: 20px auto;
  180. .floor_item {
  181. margin-top: 10px;
  182. }
  183. }
  184. .floatLayer-wrap {
  185. position: fixed;
  186. height: 100vh;
  187. width: 100vw;
  188. left: 0;
  189. top: 0;
  190. background: rgba($color: #000000, $alpha: 0.5);
  191. z-index: 999;
  192. .floatLayer {
  193. position: fixed;
  194. left: 50%;
  195. top: 50%;
  196. transform: translate(-50%, -50%);
  197. z-index: 999;
  198. cursor: pointer;
  199. .img-wrap {
  200. width: 456px;
  201. height: 274px;
  202. line-height: 274px;
  203. overflow: hidden;
  204. text-align: center;
  205. img{
  206. max-height: 100%;
  207. }
  208. }
  209. i {
  210. color: #ffffff;
  211. font-size: 30px;
  212. position: absolute;
  213. top: -30px;
  214. right: -30px;
  215. }
  216. }
  217. }
  218. // 悬浮搜索
  219. .fixed-box {
  220. width: 100vw;
  221. background-color: #ffffff;
  222. position: fixed;
  223. top: 0;
  224. left: 0;
  225. z-index: 999;
  226. border-bottom: 2px solid $base-color;
  227. }