collect.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  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 $colorMain;
  217. color: $colorMain;
  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: 129px;
  246. height: 56px;
  247. opacity: 0.65;
  248. font-weight: bold;
  249. font-size: 12px;
  250. color: $colorMain;
  251. // border-radius: 50%;
  252. display: flex;
  253. justify-content: center;
  254. align-items: center;
  255. text-align: center;
  256. }
  257. .lazy {
  258. width: 100%;
  259. height: 214px;
  260. background-size: cover;
  261. }
  262. }
  263. .cg_btns {
  264. position: absolute;
  265. bottom: -1px;
  266. left: 0px;
  267. width: 100%;
  268. height: 42px;
  269. background: #DDE1E6;
  270. &:hover {
  271. background-color: $colorMain;
  272. }
  273. a {
  274. float: left;
  275. display: inline-block;
  276. width: 100%;
  277. height: 42px;
  278. text-align: center;
  279. font-weight: 400;
  280. font-size: 16px;
  281. color: #282E30;
  282. line-height: 42px;
  283. box-sizing: border-box;
  284. text-transform: uppercase;
  285. }
  286. a:hover {
  287. color: #fff;
  288. }
  289. // a:nth-child(1) {
  290. // border-top: 1px solid #eeeeee;
  291. // &:nth-child(1):hover {
  292. // color: '#FFF';
  293. // cursor: pointer;
  294. // }
  295. // }
  296. // a:nth-child(2) {
  297. // border: 1px solid #eee;
  298. // }
  299. // a:nth-child(2):hover {
  300. // color: $colorMain;
  301. // cursor: pointer;
  302. // }
  303. }
  304. .cg_price {
  305. margin: 10px 0 6px;
  306. .fl {
  307. color: $colorMain;
  308. font-size: 14px;
  309. .fl strong {
  310. font-size: 18px;
  311. }
  312. }
  313. .fr {
  314. font-size: 12px;
  315. color: #999;
  316. line-height: 20px;
  317. em {
  318. color: $colorMain;
  319. margin-left: 2px;
  320. }
  321. }
  322. }
  323. }
  324. }
  325. .fav_store_list {
  326. margin-bottom: 100px;
  327. overflow: hidden;
  328. width: 100%;
  329. .fav_store_type {
  330. height: 50px;
  331. background: #fff;
  332. span {
  333. margin-right: 2px;
  334. display: inline-block;
  335. line-height: 50px;
  336. width: 118px;
  337. text-align: center;
  338. font-weight: 600;
  339. font-size: 10px;
  340. cursor: pointer;
  341. }
  342. .on {
  343. color: $colorMain;
  344. border-bottom: 3px solid $colorMain;
  345. }
  346. }
  347. .sld_vendor_item {
  348. width: 100%;
  349. height: 320px;
  350. margin-top: 10px;
  351. background-color: #fff;
  352. border: 1px solid #eeeeee;
  353. .sld_vendor {
  354. position: relative;
  355. width: 25%;
  356. height: 100%;
  357. padding: 46px 60px 0 60px;
  358. box-sizing: border-box;
  359. border-right: 1px solid #eee;
  360. &:hover .sld_vendor_top {
  361. opacity: 1;
  362. z-index: 2;
  363. cursor: pointer;
  364. }
  365. .sld_rate {
  366. margin-top: 8px;
  367. text-align: center;
  368. }
  369. .sld_vendor_bottom {
  370. position: absolute;
  371. bottom: 0;
  372. left: 0;
  373. text-align: center;
  374. width: 100%;
  375. border-top: 1px solid #eee;
  376. a {
  377. width: 100%;
  378. height: 46px;
  379. text-align: center;
  380. line-height: 46px;
  381. color: #444444;
  382. font-size: 14px;
  383. i {
  384. font-size: 14px;
  385. color: $colorMain;
  386. margin-right: 6px;
  387. }
  388. }
  389. }
  390. .sld_vendor_top {
  391. position: absolute;
  392. top: 0;
  393. left: 0;
  394. width: 100%;
  395. height: 32px;
  396. color: #000;
  397. opacity: 0;
  398. z-index: -1;
  399. transition: all 0.3s;
  400. button {
  401. //width: 49.5%;
  402. width: 100%;
  403. height: 32px;
  404. background-color: #cccccc;
  405. border: none;
  406. cursor: pointer;
  407. }
  408. }
  409. .sld_rate {
  410. margin-top: 8px;
  411. text-align: center;
  412. i {
  413. float: left;
  414. margin: 0 1px;
  415. color: $colorMain;
  416. }
  417. }
  418. .sld_vendor_logo {
  419. width: 114px;
  420. height: 114px;
  421. }
  422. .sld_vendor_name {
  423. text-align: center;
  424. color: #444444;
  425. font-size: 13px;
  426. margin-top: 10px;
  427. }
  428. }
  429. .main_lbbox {
  430. display: flex;
  431. flex-direction: column;
  432. height: 100%;
  433. position: relative;
  434. width: 75%;
  435. // height: 298px;
  436. overflow: hidden;
  437. .sld_vendor_collect {
  438. height: 70px;
  439. padding: 15px 0 20px 15px;
  440. box-sizing: border-box;
  441. a {
  442. float: left;
  443. display: inline-block;
  444. width: 200px;
  445. height: 34px;
  446. line-height: 34px;
  447. text-align: center;
  448. border: 1px solid #eeeeee;
  449. background-color: #fff;
  450. color: #444444;
  451. font-size: 14px;
  452. &:last-child {
  453. border-left: none;
  454. }
  455. }
  456. .sld_follow_on {
  457. background-color: $colorMain;
  458. color: #fff;
  459. }
  460. }
  461. .sld_vendor_goods {
  462. flex: 1;
  463. height: 100%;
  464. position: relative;
  465. padding: 0 48px;
  466. overflow: hidden;
  467. .goods_price {
  468. font-size: 16px;
  469. color: $colorMain;
  470. margin-top: 3px;
  471. font-weight: 600;
  472. }
  473. .goods_name {
  474. width: 140px;
  475. margin-top: 15px;
  476. color: #444444;
  477. font-size: 14px;
  478. overflow: hidden;
  479. text-overflow: ellipsis;
  480. white-space: nowrap;
  481. }
  482. li {
  483. width: 140px;
  484. float: left;
  485. margin-right: 20px;
  486. .sld_img {
  487. width: 140px;
  488. height: 150px;
  489. }
  490. }
  491. .hd {
  492. i {
  493. font-size: 20px;
  494. }
  495. .next,
  496. .prev {
  497. position: absolute;
  498. top: 45px;
  499. width: 32px;
  500. height: 70px;
  501. font-size: 16px;
  502. color: #fff;
  503. background-color: #8d8b8b;
  504. text-align: center;
  505. line-height: 70px;
  506. }
  507. .next {
  508. right: 0;
  509. }
  510. .prev {
  511. left: 0;
  512. background-color: #ccc;
  513. -webkit-transform: rotate(180deg);
  514. -moz-transform: rotate(180deg);
  515. -ms-transform: rotate(180deg);
  516. -o-transform: rotate(180deg);
  517. transform: rotate(180deg);
  518. }
  519. }
  520. .slide_wrap {
  521. width: 100%;
  522. // height: 213px;
  523. overflow: hidden;
  524. .bd {
  525. display: flex;
  526. transition: all 0.3s;
  527. li {
  528. float: left;
  529. }
  530. }
  531. }
  532. }
  533. }
  534. }
  535. }
  536. }
  537. }
  538. .el-pager li.active {
  539. color: $colorMain;
  540. cursor: default;
  541. }
  542. .el-pager li:hover {
  543. color: $colorMain;
  544. }
  545. .el-button--primary {
  546. color: #fff;
  547. background-color: $colorMain;
  548. border-color: $colorMain;
  549. }