goodsList.scss 21 KB

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