goodsList.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. @import "./theme.scss";
  2. *,
  3. html,
  4. body {
  5. padding: 0;
  6. margin: 0;
  7. }
  8. ul,
  9. ol,
  10. li {
  11. list-style: none;
  12. }
  13. a {
  14. text-decoration: none;
  15. color: #666666;
  16. }
  17. a:hover {
  18. text-decoration: none;
  19. color: #666666;
  20. cursor: pointer;
  21. }
  22. em,
  23. i {
  24. font-style: normal;
  25. }
  26. h3 {
  27. font-size: 14px;
  28. }
  29. body {
  30. font: 12px/150% Arial, Verdana, "\5b8b\4f53";
  31. //font-family: "microsoft yahei";
  32. color: #666;
  33. background: #fff;
  34. }
  35. ul {
  36. margin-bottom: 0;
  37. }
  38. .fl {
  39. float: left;
  40. }
  41. .fr {
  42. float: right;
  43. }
  44. .clearfix {
  45. display: block;
  46. zoom: 1;
  47. }
  48. .goods_list_container {
  49. width: 1440px;
  50. margin: 0 auto;
  51. .level_nav_main {
  52. height: 40px;
  53. background-color: #f2f2f2;
  54. margin-bottom: 15px;
  55. .level_item {
  56. width: 100%;
  57. margin: 0px auto;
  58. height: 40px;
  59. color: #848484;
  60. line-height: 40px;
  61. //font-family: "microsoft yahei";
  62. position: relative;
  63. .level-right {
  64. float: left;
  65. display: inline-block;
  66. width: 8px;
  67. height: 1px;
  68. background-color: #cecece;
  69. margin: 19px 7px 0;
  70. }
  71. .level_link {
  72. position: relative;
  73. float: left;
  74. font-size: 12px;
  75. color: #848484;
  76. line-height: 26px;
  77. //font-family: "microsoft yahei";
  78. }
  79. .level_nav_item {
  80. font-size: 12px;
  81. height: 40px;
  82. padding: 6px 0 4px;
  83. position: relative;
  84. float: left;
  85. margin-right: 5px;
  86. .menu_drop {
  87. display: inline-block;
  88. height: 24px;
  89. cursor: pointer;
  90. .trigger {
  91. position: relative;
  92. display: inline-block;
  93. height: 26px;
  94. min-width: 89px;
  95. padding: 0 4px 0 8px;
  96. border: 1px solid #e1e1e1;
  97. line-height: 24px;
  98. vertical-align: top;
  99. background-color: #fff;
  100. z-index: 1;
  101. .trigger_name {
  102. display: inline-block;
  103. vertical-align: top;
  104. color: #848484;
  105. }
  106. &.label {
  107. margin-right: 5px;
  108. padding-right: 0;
  109. &:hover {
  110. border: 1px solid $colorMain;
  111. span:nth-child(2) {
  112. background-color: $colorMain;
  113. }
  114. .el-icon-close {
  115. color: #fff;
  116. }
  117. }
  118. span:nth-child(2) {
  119. margin-left: 5px;
  120. display: inline-block;
  121. width: 24px;
  122. height: 24px;
  123. }
  124. }
  125. }
  126. .menu_drop_arrow {
  127. float: right;
  128. display: inline-block;
  129. width: 16px;
  130. height: 16px;
  131. vertical-align: top;
  132. background: url(/search.png) no-repeat 2px 7px;
  133. -moz-transition: background-position 0.15s ease-in-out;
  134. transition: background-position 0.15s ease-in-out;
  135. overflow: hidden;
  136. margin-top: 2px;
  137. margin-left: 5px;
  138. }
  139. .el-icon-close {
  140. float: right;
  141. display: inline-block;
  142. width: 16px;
  143. height: 16px;
  144. vertical-align: top;
  145. background: url(/search.png) no-repeat 2px 7px;
  146. transition: background-position 0.15s ease-in-out;
  147. overflow: hidden;
  148. margin-top: 2px;
  149. margin-right: 5px;
  150. background-position: 2px -123px;
  151. &:before {
  152. font-size: 15px;
  153. }
  154. }
  155. &:hover {
  156. .hasChild {
  157. height: 27px;
  158. border-color: $colorMain;
  159. border-bottom: none;
  160. z-index: 5;
  161. }
  162. .menu_drop_arrow {
  163. background-position: 2px -43px;
  164. }
  165. .menu_drop_main {
  166. display: block;
  167. border-color: $colorMain;
  168. z-index: 1;
  169. }
  170. .el-icon-close{
  171. background-position: 2px -141px;
  172. }
  173. }
  174. .menu_drop_main {
  175. position: relative;
  176. display: none;
  177. width: 360px;
  178. padding: 15px 10px;
  179. position: absolute;
  180. left: 0;
  181. top: 27px;
  182. border: 1px solid #e1e1e1;
  183. background-color: #fff;
  184. z-index: 2;
  185. margin-top: 5px;
  186. .menu_drop_list li {
  187. float: left;
  188. width: 65px;
  189. height: 24px;
  190. overflow: hidden;
  191. line-height: 24px;
  192. margin-right: 5px;
  193. text-overflow: ellipsis;
  194. white-space: nowrap;
  195. margin-bottom: 0;
  196. a {
  197. color: #333;
  198. }
  199. }
  200. }
  201. }
  202. }
  203. .level_right {
  204. display: inline-block;
  205. width: 8px;
  206. height: 1px;
  207. background-color: #cecece;
  208. margin: 11px 5px 4px;
  209. line-height: 26px;
  210. }
  211. }
  212. }
  213. .goods_list_banner {
  214. width: 100%;
  215. margin: 0 auto;
  216. background: #fff;
  217. }
  218. .goods_list {
  219. width: 100%;
  220. margin: 0 auto;
  221. margin-top: 10px;
  222. // padding-left: 0px;
  223. // padding-right: 0px;
  224. background: #fff;
  225. .sld_screen {
  226. -moz-user-select: none; /*火狐*/
  227. -webkit-user-select: none; /*webkit浏览器*/
  228. -ms-user-select: none; /*IE10*/
  229. user-select: none;
  230. padding: 5px 20px;
  231. line-height: 36px;
  232. position: relative;
  233. height: 36px;
  234. background-color: #f7f5f5;
  235. box-sizing: border-box;
  236. .good_type {
  237. p a input {
  238. vertical-align: middle;
  239. margin-top: 3px;
  240. }
  241. }
  242. & > a.btn_sort {
  243. color: $colorMain;
  244. }
  245. i {
  246. color: #afafaf;
  247. }
  248. & > a {
  249. margin: 0 20px 0 15px;
  250. &:hover {
  251. color: $colorMain;
  252. i {
  253. color: $colorMain;
  254. }
  255. }
  256. }
  257. & > a,
  258. & > input,
  259. & > div {
  260. float: left;
  261. line-height: 26px;
  262. }
  263. .sld_goods_num {
  264. float: right;
  265. line-height: 26px;
  266. margin-right: 10px;
  267. }
  268. .sld_price_jt {
  269. position: relative;
  270. &::after,
  271. &::before {
  272. position: absolute;
  273. content: "";
  274. right: -15px;
  275. width: 0;
  276. height: 0;
  277. border-width: 5px;
  278. border-style: solid;
  279. }
  280. &::before {
  281. top: 50%;
  282. transform: translateY(3px);
  283. border-color: #afafaf transparent transparent transparent;
  284. }
  285. &::after {
  286. top: 50%;
  287. -webkit-transform: translateY(-12px);
  288. -moz-transform: translateY(-12px);
  289. -ms-transform: translateY(-12px);
  290. -o-transform: translateY(-12px);
  291. transform: translateY(-12px);
  292. border-color: transparent transparent #afafaf transparent;
  293. }
  294. }
  295. .sld_price_jt_down {
  296. &::before {
  297. border-color: $colorMain transparent transparent transparent;
  298. }
  299. }
  300. .sld_price_jt_up {
  301. &::after {
  302. border-color: transparent transparent $colorMain transparent;
  303. }
  304. }
  305. .goods_page {
  306. line-height: 26px;
  307. a,
  308. p {
  309. display: inline-block;
  310. em {
  311. color: $colorMain;
  312. }
  313. }
  314. a {
  315. padding: 0 6px;
  316. i {
  317. font-size: 12px;
  318. color: #666666;
  319. }
  320. i.prev {
  321. display: inline-block;
  322. -webkit-transform: rotate(90deg);
  323. -moz-transform: rotate(90deg);
  324. -ms-transform: rotate(90deg);
  325. -o-transform: rotate(90deg);
  326. transform: rotate(90deg);
  327. }
  328. i.next {
  329. display: inline-block;
  330. -webkit-transform: rotate(-90deg);
  331. -moz-transform: rotate(-90deg);
  332. -ms-transform: rotate(-90deg);
  333. -o-transform: rotate(-90deg);
  334. transform: rotate(-90deg);
  335. }
  336. }
  337. }
  338. }
  339. .sld_goods_list {
  340. width: 1440px;
  341. margin: 15px 0 40px;
  342. &.skeleton_sld_goods_list {
  343. li {
  344. .sld_img {
  345. background: $colorSkeleton;
  346. }
  347. }
  348. .sld_h32_hide {
  349. background: $colorSkeleton;
  350. width: 100%;
  351. }
  352. .sld_goods_price {
  353. display: inline-block;
  354. background: #eee;
  355. width: 70px;
  356. height: 19px;
  357. color: transparent;
  358. }
  359. p.clearfix {
  360. .fr {
  361. color: #999;
  362. width: 55px;
  363. height: 18px;
  364. background: $colorSkeleton;
  365. color: transparent;
  366. }
  367. }
  368. .tag {
  369. .sld_follow {
  370. background: #eee;
  371. width: 60px;
  372. height: 23px;
  373. color: transparent;
  374. cursor: pointer;
  375. }
  376. }
  377. }
  378. li {
  379. float: left;
  380. display: flex;
  381. justify-content: center;
  382. align-items: center;
  383. width: 25%;
  384. // height: 429px; //456px;
  385. padding: 21px 11px 20px 11px;
  386. box-sizing: border-box;
  387. margin: 0 0px 11px 0;
  388. &:hover {
  389. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  390. }
  391. &:nth-child(5n) {
  392. margin-right: 0;
  393. }
  394. .sld_img {
  395. width: 217px;
  396. height: 217px;
  397. }
  398. .li-content {
  399. display: flex;
  400. flex-direction: column;
  401. justify-content: center;
  402. align-items: center;
  403. }
  404. }
  405. p.clearfix {
  406. padding: 10px 0;
  407. .fr {
  408. color: #999;
  409. em {
  410. color: #333333;
  411. }
  412. }
  413. }
  414. .sld_goods_price {
  415. color: $colorMain;
  416. font-size: 14px;
  417. padding: 0px;
  418. height: 38px;
  419. }
  420. a {
  421. color: #606060;
  422. margin-bottom: 4px;
  423. }
  424. .sale_num {
  425. color: #606060;
  426. margin-bottom: 13px;
  427. }
  428. .sld_vendor_name {
  429. font-size: 12px;
  430. //font-family: Microsoft YaHei;
  431. font-weight: 400;
  432. min-height: 18px;
  433. color: #999999;
  434. cursor: pointer;
  435. overflow: hidden;
  436. white-space: nowrap;
  437. text-overflow: ellipsis;
  438. &:hover {
  439. text-decoration: underline;
  440. }
  441. }
  442. .sld_goods_name {
  443. height: 40px;
  444. line-height: 20px;
  445. text-align: center;
  446. padding: 0 10px;
  447. overflow: hidden;
  448. word-break: break-all;
  449. text-overflow: ellipsis;
  450. display: -webkit-box;
  451. -webkit-box-orient: vertical;
  452. -webkit-line-clamp: 2;
  453. font-size: 14px;
  454. margin-top: 10px;
  455. //font-family: MicrosoftYaHei;
  456. }
  457. .tag {
  458. margin: 8px 0;
  459. .is_own {
  460. width: 32px;
  461. height: 18px;
  462. background: linear-gradient(90deg, #00985e, #00985e);
  463. border-radius: 3px;
  464. line-height: 18px;
  465. text-align: center;
  466. font-size: 12px;
  467. //font-family: Microsoft YaHei;
  468. font-weight: 400;
  469. color: #ffffff;
  470. margin-right: 5px;
  471. }
  472. .tag_b {
  473. background: #fff;
  474. border: 1px solid $colorMain;
  475. font-size: 12px;
  476. //font-family: Microsoft YaHei;
  477. font-weight: 400;
  478. margin-right: 5px;
  479. color: $colorMain;
  480. padding: 1px 3px;
  481. border-radius: 3px;
  482. &.tag_b_pre_sale {
  483. border: 1px solid #236ffa !important;
  484. color: #236ffa !important;
  485. }
  486. }
  487. span {
  488. display: inline-block;
  489. line-height: 15px;
  490. padding: 0 3px;
  491. border-radius: 2px;
  492. color: #fff;
  493. margin-right: 2px;
  494. }
  495. .sld_follow {
  496. cursor: pointer;
  497. background-color: transparent;
  498. color: inherit;
  499. border: none;
  500. outline: none;
  501. i {
  502. font-size: 20px;
  503. vertical-align: middle;
  504. margin-right: 6px;
  505. }
  506. &.on {
  507. color: $colorMain;
  508. }
  509. }
  510. }
  511. .op_but {
  512. margin-top: 20px;
  513. .but_i {
  514. height: 28px;
  515. border: 1px solid #e5e5e5;
  516. font-size: 13px;
  517. color: #999999;
  518. cursor: pointer;
  519. &.first {
  520. width: 120px;
  521. margin-right: 10px;
  522. }
  523. &.second {
  524. width: 120px;
  525. color: $colorMain !important;
  526. }
  527. i {
  528. font-size: 16px;
  529. vertical-align: middle;
  530. margin-right: 6px;
  531. position: relative;
  532. top: 1px;
  533. }
  534. img {
  535. width: 15px;
  536. height: 15px;
  537. }
  538. .collection {
  539. width: 20px !important;
  540. height: 21px !important;
  541. }
  542. &:last-child {
  543. // border-left: none;
  544. }
  545. }
  546. }
  547. }
  548. }
  549. .goods_type {
  550. margin-left: 295px;
  551. p {
  552. display: inline-block;
  553. margin-left: 20px;
  554. }
  555. }
  556. .price_section {
  557. position: absolute;
  558. top: -6px;
  559. left: 138px;
  560. width: 170px;
  561. padding: 6px 6px 0;
  562. border: 1px solid transparent;
  563. .ctrl {
  564. display: none;
  565. padding-top: 8px;
  566. a {
  567. height: 23px;
  568. padding: 0 10px;
  569. &:nth-child(1) {
  570. color: #005aa0;
  571. }
  572. &:nth-child(2) {
  573. color: #333333;
  574. line-height: 21px;
  575. border: 1px solid #cccccc;
  576. }
  577. }
  578. }
  579. .input_box {
  580. position: relative;
  581. margin-top: 6px;
  582. input[type="number"] {
  583. position: relative;
  584. width: 71px;
  585. height: 26px;
  586. line-height: 24px;
  587. border: 1px solid #e5e5e5;
  588. padding-left: 15px;
  589. box-sizing: border-box;
  590. outline: none;
  591. }
  592. .line {
  593. display: inline-block;
  594. width: 4px;
  595. height: 2px;
  596. background-color: #a9a9a9;
  597. margin: 0 1px;
  598. vertical-align: middle;
  599. &::after {
  600. top: 1px;
  601. left: 88px;
  602. position: absolute;
  603. top: 0;
  604. left: 5px;
  605. content: "¥";
  606. font-size: 12px;
  607. color: #a9a9a9;
  608. line-height: 24px;
  609. z-index: 0;
  610. }
  611. }
  612. }
  613. &:hover {
  614. height: 78px;
  615. border-color: #999999;
  616. background-color: #fff;
  617. }
  618. &:hover .ctrl {
  619. display: block;
  620. }
  621. }
  622. }
  623. .search_cate {
  624. font-size: 13px;
  625. width: 1200px;
  626. margin: 0 auto;
  627. .cate,
  628. .brand {
  629. display: flex;
  630. flex-wrap: wrap;
  631. height: 46px;
  632. line-height: 46px;
  633. a {
  634. display: inline-block;
  635. padding-left: 15px;
  636. margin-left: 20px;
  637. }
  638. .see_more {
  639. margin-left: 20px;
  640. }
  641. }
  642. }
  643. .sld_img_center {
  644. position: relative;
  645. width: 214px;
  646. height: 214px;
  647. overflow: hidden;
  648. img {
  649. position: absolute;
  650. top: 50%;
  651. left: 50%;
  652. max-width: 100%;
  653. max-height: 100%;
  654. -webkit-transform: translate(-50%, -50%);
  655. -moz-transform: translate(-50%, -50%);
  656. -ms-transform: translate(-50%, -50%);
  657. -o-transform: translate(-50%, -50%);
  658. transform: translate(-50%, -50%);
  659. }
  660. }
  661. .el-pager li.active {
  662. color: $colorMain;
  663. cursor: default;
  664. }
  665. .el-pager li:hover {
  666. color: $colorMain;
  667. }