collect.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. @import "../theme.scss";
  2. .fl {
  3. float: left;
  4. }
  5. .fr {
  6. float: right;
  7. }
  8. a:link,
  9. a:visited,
  10. a:active {
  11. text-decoration: none;
  12. }
  13. em,
  14. i {
  15. font-style: normal;
  16. }
  17. .clearfix {
  18. zoom: 1;
  19. display: block;
  20. &:before {
  21. display: table;
  22. content: " ";
  23. }
  24. &:after {
  25. content: ".";
  26. display: block;
  27. height: 0;
  28. clear: both;
  29. visibility: hidden;
  30. }
  31. }
  32. .sld_img_center {
  33. position: relative;
  34. width: 80px;
  35. height: 80px;
  36. overflow: hidden;
  37. img {
  38. position: absolute;
  39. top: 50%;
  40. left: 50%;
  41. max-width: 100%;
  42. max-height: 100%;
  43. -webkit-transform: translate(-50%, -50%);
  44. -moz-transform: translate(-50%, -50%);
  45. -ms-transform: translate(-50%, -50%);
  46. -o-transform: translate(-50%, -50%);
  47. transform: translate(-50%, -50%);
  48. }
  49. }
  50. .sld_collect_wrapper {
  51. float: left;
  52. .wrapper_main {
  53. float: left;
  54. width: 967px;
  55. padding-left: 10px;
  56. //font-family: "微软雅黑";
  57. .sld_h3_wrap {
  58. border: 1px solid #eeeeee;
  59. background: #ffffff;
  60. .sld_option {
  61. display: flex;
  62. justify-content: center;
  63. align-items: center;
  64. height: 52px;
  65. // width: 380px;
  66. .sld_option_list {
  67. display: flex;
  68. justify-content: center;
  69. align-items: center;
  70. // margin-top: 18px;
  71. transition: all 0.5s;
  72. margin-left: 15px;
  73. font-weight: bold;
  74. font-size: 16px;
  75. color: #282E30;
  76. &:hover {
  77. color: $colorMain;
  78. }
  79. img {
  80. vertical-align: top;
  81. float: left;
  82. margin-top: -3px;
  83. margin-right: 3px;
  84. }
  85. cursor: pointer;
  86. }
  87. .sld_option_btn {
  88. padding: 5px 20px 5px;
  89. margin-left: 20px;
  90. font-weight: 400;
  91. font-size: 16px;
  92. color: #282E30;
  93. // margin-top: 13px;
  94. // margin-right: 10px;
  95. //font-family: "Microsoft YaHei";
  96. border: 1px solid #e7e7e7;
  97. border-radius: 5px;
  98. transition: all 0.2s;
  99. width: 160px;
  100. height: 44px;
  101. background: #DDE1E6;
  102. cursor: pointer;
  103. &:hover {
  104. background-color: $colorMain;
  105. color: #fff;
  106. }
  107. }
  108. }
  109. .sld_grade_nav {
  110. height: 52px;
  111. line-height: 52px;
  112. margin-left: -1px;
  113. a {
  114. display: inline-block;
  115. width: 178px;
  116. text-align: center;
  117. font-weight: bold;
  118. font-size: 16px;
  119. color: #282E30;
  120. cursor: pointer;
  121. border-right: 1px solid #eeeeee;
  122. &:hover {
  123. color: $colorMain;
  124. }
  125. }
  126. a.on {
  127. color: #fff;
  128. height: 53px;
  129. background-color: $colorMain;
  130. font-weight: 600;
  131. }
  132. }
  133. }
  134. .fav_goods_list {
  135. overflow: hidden;
  136. width: 100%;
  137. &>ul {
  138. margin-top: 5px;
  139. }
  140. .sld_follow_goods:hover {
  141. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  142. }
  143. .sld_follow_goods {
  144. position: relative;
  145. float: left;
  146. width: 24%;
  147. height: 358px;
  148. background-color: #fff;
  149. margin: 0.5%;
  150. border: 1px solid #eeeeee;
  151. padding: 13px;
  152. box-sizing: border-box;
  153. &:nth-of-type(4n) {
  154. margin-right: 0;
  155. }
  156. .check_wrap {
  157. position: absolute;
  158. right: 0;
  159. top: 0;
  160. width: 100%;
  161. height: 358px;
  162. // background: rgba(0, 0, 0, 0.1);
  163. .border {
  164. display: block;
  165. position: absolute;
  166. right: 0px;
  167. top: 0px;
  168. width: 100%;
  169. height: 360px;
  170. z-index: 0;
  171. cursor: pointer;
  172. .checklogo {
  173. position: absolute;
  174. top: 0px;
  175. right: 0px;
  176. width: 31px;
  177. height: 31px;
  178. visibility: visible;
  179. // background-image: url(/member/choose.png);
  180. }
  181. }
  182. input[type="checkbox"] {
  183. visibility: hidden;
  184. position: absolute;
  185. top: 0px;
  186. right: 0px;
  187. width: 31px;
  188. height: 31px;
  189. z-index: 1;
  190. }
  191. input[type="checkbox"]:checked~.border {
  192. border: 2px solid $colorMain;
  193. .checklogo {
  194. position: absolute;
  195. top: -2px;
  196. right: -2px;
  197. width: 31px;
  198. height: 31px;
  199. // background-image: url(/member/chosen.png);
  200. }
  201. }
  202. }
  203. .cg_name {
  204. font-size: 12px;
  205. line-height: 16px;
  206. word-break: break-all;
  207. text-overflow: ellipsis;
  208. display: -webkit-box;
  209. -webkit-box-orient: vertical;
  210. -webkit-line-clamp: 2;
  211. overflow: hidden;
  212. color: #333333;
  213. em {
  214. display: inline-block;
  215. padding: 1px 4px;
  216. border: 1px solid $colorMain2;
  217. color: $colorMain2;
  218. font-size: 12px;
  219. -webkit-border-radius: 2px;
  220. -moz-border-radius: 2px;
  221. border-radius: 2px;
  222. }
  223. }
  224. .cg_img {
  225. position: relative;
  226. width: 100%;
  227. height: 214px;
  228. /* 遮罩层 */
  229. .mask {
  230. position: absolute;
  231. top: 0;
  232. left: 0;
  233. width: 100%;
  234. height: 100%;
  235. background-color: rgba(153, 153, 153, 0.6);
  236. /* 灰色透明遮罩 */
  237. display: flex;
  238. justify-content: center;
  239. align-items: center;
  240. z-index: 1;
  241. }
  242. /* 白色圆圈 */
  243. .circle {
  244. background-color: white;
  245. width: 100px;
  246. height: 100px;
  247. border-radius: 50%;
  248. display: flex;
  249. justify-content: center;
  250. align-items: center;
  251. font-size: 15px;
  252. color: black;
  253. text-align: center;
  254. }
  255. .lazy {
  256. width: 100%;
  257. height: 214px;
  258. background-size: cover;
  259. }
  260. }
  261. .cg_btns {
  262. position: absolute;
  263. bottom: -1px;
  264. left: 0px;
  265. width: 100%;
  266. height: 42px;
  267. background: #DDE1E6;
  268. &:hover {
  269. background-color: $colorMain;
  270. }
  271. a {
  272. float: left;
  273. display: inline-block;
  274. width: 100%;
  275. height: 42px;
  276. text-align: center;
  277. font-weight: 400;
  278. font-size: 16px;
  279. color: #282E30;
  280. line-height: 42px;
  281. box-sizing: border-box;
  282. text-transform: uppercase;
  283. }
  284. a:hover {
  285. color: #fff;
  286. }
  287. // a:nth-child(1) {
  288. // border-top: 1px solid #eeeeee;
  289. // &:nth-child(1):hover {
  290. // color: '#FFF';
  291. // cursor: pointer;
  292. // }
  293. // }
  294. // a:nth-child(2) {
  295. // border: 1px solid #eee;
  296. // }
  297. // a:nth-child(2):hover {
  298. // color: $colorMain;
  299. // cursor: pointer;
  300. // }
  301. }
  302. .cg_price {
  303. margin: 10px 0 6px;
  304. .fl {
  305. color: $colorMain;
  306. font-size: 14px;
  307. .fl strong {
  308. font-size: 18px;
  309. }
  310. }
  311. .fr {
  312. font-size: 12px;
  313. color: #999;
  314. line-height: 20px;
  315. em {
  316. color: $colorMain2;
  317. margin-left: 2px;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. .fav_store_list {
  324. margin-bottom: 100px;
  325. overflow: hidden;
  326. width: 100%;
  327. .fav_store_type {
  328. height: 50px;
  329. background: #fff;
  330. span {
  331. margin-right: 2px;
  332. display: inline-block;
  333. line-height: 50px;
  334. width: 118px;
  335. text-align: center;
  336. font-weight: 600;
  337. font-size: 10px;
  338. cursor: pointer;
  339. }
  340. .on {
  341. color: $colorMain2;
  342. border-bottom: 3px solid $colorMain2;
  343. }
  344. }
  345. .sld_vendor_item {
  346. width: 100%;
  347. height: 320px;
  348. margin-top: 10px;
  349. background-color: #fff;
  350. border: 1px solid #eeeeee;
  351. .sld_vendor {
  352. position: relative;
  353. width: 25%;
  354. height: 100%;
  355. padding: 46px 60px 0 60px;
  356. box-sizing: border-box;
  357. border-right: 1px solid #eee;
  358. &:hover .sld_vendor_top {
  359. opacity: 1;
  360. z-index: 2;
  361. cursor: pointer;
  362. }
  363. .sld_rate {
  364. margin-top: 8px;
  365. text-align: center;
  366. }
  367. .sld_vendor_bottom {
  368. position: absolute;
  369. bottom: 0;
  370. left: 0;
  371. text-align: center;
  372. width: 100%;
  373. border-top: 1px solid #eee;
  374. a {
  375. width: 100%;
  376. height: 46px;
  377. text-align: center;
  378. line-height: 46px;
  379. color: #444444;
  380. font-size: 14px;
  381. i {
  382. font-size: 14px;
  383. color: $colorMain2;
  384. margin-right: 6px;
  385. }
  386. }
  387. }
  388. .sld_vendor_top {
  389. position: absolute;
  390. top: 0;
  391. left: 0;
  392. width: 100%;
  393. height: 32px;
  394. color: #000;
  395. opacity: 0;
  396. z-index: -1;
  397. transition: all 0.3s;
  398. button {
  399. //width: 49.5%;
  400. width: 100%;
  401. height: 32px;
  402. background-color: #cccccc;
  403. border: none;
  404. cursor: pointer;
  405. }
  406. }
  407. .sld_rate {
  408. margin-top: 8px;
  409. text-align: center;
  410. i {
  411. float: left;
  412. margin: 0 1px;
  413. color: $colorMain;
  414. }
  415. }
  416. .sld_vendor_logo {
  417. width: 114px;
  418. height: 114px;
  419. }
  420. .sld_vendor_name {
  421. text-align: center;
  422. color: #444444;
  423. font-size: 13px;
  424. margin-top: 10px;
  425. }
  426. }
  427. .main_lbbox {
  428. display: flex;
  429. flex-direction: column;
  430. height: 100%;
  431. position: relative;
  432. width: 75%;
  433. // height: 298px;
  434. overflow: hidden;
  435. .sld_vendor_collect {
  436. height: 70px;
  437. padding: 15px 0 20px 15px;
  438. box-sizing: border-box;
  439. a {
  440. float: left;
  441. display: inline-block;
  442. width: 200px;
  443. height: 34px;
  444. line-height: 34px;
  445. text-align: center;
  446. border: 1px solid #eeeeee;
  447. background-color: #fff;
  448. color: #444444;
  449. font-size: 14px;
  450. &:last-child {
  451. border-left: none;
  452. }
  453. }
  454. .sld_follow_on {
  455. background-color: $colorMain2;
  456. color: #fff;
  457. }
  458. }
  459. .sld_vendor_goods {
  460. flex: 1;
  461. height: 100%;
  462. position: relative;
  463. padding: 0 48px;
  464. overflow: hidden;
  465. .goods_price {
  466. font-size: 16px;
  467. color: $colorMain2;
  468. margin-top: 3px;
  469. font-weight: 600;
  470. }
  471. .goods_name {
  472. width: 140px;
  473. margin-top: 15px;
  474. color: #444444;
  475. font-size: 14px;
  476. overflow: hidden;
  477. text-overflow: ellipsis;
  478. white-space: nowrap;
  479. }
  480. li {
  481. width: 140px;
  482. float: left;
  483. margin-right: 20px;
  484. .sld_img {
  485. width: 140px;
  486. height: 150px;
  487. }
  488. }
  489. .hd {
  490. i {
  491. font-size: 20px;
  492. }
  493. .next,
  494. .prev {
  495. position: absolute;
  496. top: 45px;
  497. width: 32px;
  498. height: 70px;
  499. font-size: 16px;
  500. color: #fff;
  501. background-color: #8d8b8b;
  502. text-align: center;
  503. line-height: 70px;
  504. }
  505. .next {
  506. right: 0;
  507. }
  508. .prev {
  509. left: 0;
  510. background-color: #ccc;
  511. -webkit-transform: rotate(180deg);
  512. -moz-transform: rotate(180deg);
  513. -ms-transform: rotate(180deg);
  514. -o-transform: rotate(180deg);
  515. transform: rotate(180deg);
  516. }
  517. }
  518. .slide_wrap {
  519. width: 100%;
  520. // height: 213px;
  521. overflow: hidden;
  522. .bd {
  523. display: flex;
  524. transition: all 0.3s;
  525. li {
  526. float: left;
  527. }
  528. }
  529. }
  530. }
  531. }
  532. }
  533. }
  534. }
  535. }
  536. .el-pager li.active {
  537. color: $colorMain;
  538. cursor: default;
  539. }
  540. .el-pager li:hover {
  541. color: $colorMain;
  542. }
  543. .el-button--primary {
  544. color: #fff;
  545. background-color: $colorMain;
  546. border-color: $colorMain;
  547. }