collect.scss 19 KB

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