storeHeader.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. @import "../theme.scss";
  2. .sld_store_header {
  3. background: #fff;
  4. .container {
  5. display: flex;
  6. align-items: center;
  7. width: 1440px;
  8. margin: 0 auto;
  9. height: 80px;
  10. position: relative;
  11. z-index: 12;
  12. &:before {
  13. display: table;
  14. content: " ";
  15. }
  16. .left {
  17. display: flex;
  18. align-items: center;
  19. max-width: 385px;
  20. height: 100%;
  21. .sld_img_center {
  22. display: block;
  23. width: 320px;
  24. height: 98px;
  25. position: relative;
  26. img {
  27. width: 100%;
  28. height: 100%;
  29. object-fit: contain;
  30. }
  31. }
  32. .line {
  33. position: static;
  34. width: 1px;
  35. height: 44px;
  36. background-color: #ebebeb;
  37. margin: 32px 8px 0 8px;
  38. }
  39. .sld_store_rate {
  40. position: relative;
  41. margin-left: 20px;
  42. cursor: pointer;
  43. &:hover {
  44. .sld_store_info_more {
  45. display: block !important;
  46. }
  47. .sld_sjx {
  48. -webkit-transform: translateY(-1px) rotate(180deg);
  49. -moz-transform: translateY(-1px) rotate(180deg);
  50. -ms-transform: translateY(-1px) rotate(180deg);
  51. -o-transform: translateY(-1px) rotate(180deg);
  52. transform: translateY(-1px) rotate(180deg);
  53. }
  54. }
  55. .name {
  56. display: flex;
  57. align-items: center;
  58. color: #555555;
  59. font-size: 16px;
  60. font-weight: 600;
  61. margin: 6px 0 6px;
  62. display: flex;
  63. span{
  64. text-overflow: ellipsis;
  65. overflow: hidden;
  66. white-space: nowrap;
  67. max-width: 160px;
  68. display: inline-block;
  69. }
  70. }
  71. .rate {
  72. color: #555555;
  73. font-size: 13px;
  74. em {
  75. color: $colorMain;
  76. font-style: normal;
  77. }
  78. }
  79. .sld_sjx {
  80. display: inline-block;
  81. width: 0;
  82. height: 0;
  83. border-style: solid;
  84. border-color: $colorMain transparent transparent transparent;
  85. border-width: 6px;
  86. margin-left: 5px;
  87. transition: all 0.2s;
  88. -webkit-transform: translateY(5px);
  89. -moz-transform: translateY(5px);
  90. -ms-transform: translateY(5px);
  91. -o-transform: translateY(5px);
  92. transform: translateY(5px);
  93. // position: absolute;
  94. // right: -10px;
  95. // top: 38px;
  96. }
  97. .sld_store_info_more {
  98. display: none;
  99. position: absolute;
  100. top: 65px;
  101. left: -116px;
  102. width: 362px;
  103. padding: 13px 12px 14px 16px;
  104. box-sizing: border-box;
  105. background-color: #fff;
  106. border: 1px solid #eeeeee;
  107. font-size: 12px;
  108. color: #666;
  109. line-height: 1.5;
  110. z-index: 99;
  111. cursor: auto;
  112. .top {
  113. padding-bottom: 6px;
  114. h4 {
  115. line-height: 1.5;
  116. margin-bottom: 4px;
  117. }
  118. p {
  119. line-height: 1.5;
  120. padding: 2px 0;
  121. display: flex;
  122. align-items: center;
  123. }
  124. .fr {
  125. width: 92px;
  126. height: 92px;
  127. border: 1px solid #eeeeee;
  128. box-sizing: border-box;
  129. position: relative;
  130. overflow: hidden;
  131. img {
  132. max-width: 90px;
  133. max-height: 90px;
  134. // position: absolute;
  135. // top: 50%;
  136. // left: 50%;
  137. // -webkit-transform: translate(-50%, -50%);
  138. // -moz-transform: translate(-50%, -50%);
  139. // -ms-transform: translate(-50%, -50%);
  140. // -o-transform: translate(-50%, -50%);
  141. // transform: translate(-50%, -50%);
  142. }
  143. }
  144. }
  145. .center {
  146. padding: 8px 0;
  147. border-top: 1px dashed #eeeeee;
  148. border-bottom: 1px dashed #eeeeee;
  149. p {
  150. line-height: 1.5;
  151. display: flex;
  152. align-items: center;
  153. word-break: break-all;
  154. a,
  155. i {
  156. color: $colorMain;
  157. cursor: auto;
  158. }
  159. .kefu {
  160. i {
  161. cursor: pointer !important;
  162. }
  163. .iconfont {
  164. font-family: "iconfont" !important;
  165. font-size: 16px;
  166. font-style: normal;
  167. -webkit-font-smoothing: antialiased;
  168. -moz-osx-font-smoothing: grayscale;
  169. }
  170. }
  171. }
  172. }
  173. .bottom {
  174. padding-top: 13px;
  175. .go_store_btn {
  176. display: inline-block;
  177. width: 78px;
  178. height: 28px;
  179. text-align: center;
  180. line-height: 26px;
  181. border: 1px solid #dddddd;
  182. margin-right: 30px;
  183. padding: 0;
  184. font-size: 12px;
  185. color: #666;
  186. border-radius: 0;
  187. cursor: pointer;
  188. }
  189. }
  190. }
  191. }
  192. }
  193. .search_wrap {
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. flex: 1;
  198. width: 100%;
  199. height: 100%;
  200. overflow: hidden;
  201. // width: calc(100% - (585px + 60px));
  202. // float: left;
  203. // padding-top: 4px;
  204. // margin-top: 30px;
  205. // margin: 30px 30px 0;
  206. position: relative;
  207. &-content {
  208. width: 536px;
  209. display: flex;
  210. justify-content: center;
  211. align-items: center;
  212. overflow: hidden;
  213. :deep(.el-select) {
  214. width: 140px;
  215. height: 100%;
  216. }
  217. // padding: 0 20px;
  218. }
  219. form {
  220. // width: 400px;
  221. display: flex;
  222. flex: 1;
  223. width: 100%;
  224. overflow: hidden;
  225. border: 2px solid $colorMain;
  226. .text {
  227. width: 100%;
  228. flex: 1;
  229. overflow: hidden;
  230. // width: calc(100% - 103px);
  231. -webkit-appearance: none;
  232. -webkit-border-radius: 0;
  233. height: 34px;
  234. padding: 5px 5px 5px 10px;
  235. background-position: 0 -360px;
  236. background-color: #fff;
  237. background-repeat: repeat-x;
  238. line-height: 20px;
  239. font-family: arial, "\5b8b\4f53";
  240. font-size: 12px;
  241. outline: none;
  242. border: none;
  243. }
  244. }
  245. input {
  246. margin: 0;
  247. padding: 0;
  248. height: 34px;
  249. border: 0;
  250. }
  251. .button {
  252. width: 103px;
  253. background: $colorMain;
  254. font-size: 16px;
  255. font-weight: 600;
  256. color: #fff;
  257. float: right;
  258. cursor: pointer;
  259. &.fl {
  260. height: 38px;
  261. }
  262. }
  263. .search_association {
  264. background: #fff;
  265. position: absolute;
  266. top: 43px;
  267. overflow: hidden;
  268. position: absolute;
  269. left: 0;
  270. width: 443px;
  271. border: 1px solid #ccc;
  272. background: #fff;
  273. z-index: 99;
  274. .s_a_item {
  275. display: flex;
  276. justify-content: space-between;
  277. overflow: hidden;
  278. padding: 1px 5px;
  279. line-height: 24px;
  280. cursor: pointer;
  281. font-size: 12px;
  282. -webkit-font-smoothing: antialiased;
  283. color: #666;
  284. div:first-child {
  285. width: 230px;
  286. white-space: nowrap;
  287. text-overflow: ellipsis;
  288. overflow: hidden;
  289. }
  290. div:last-child {
  291. overflow: hidden;
  292. color: #aaa;
  293. }
  294. &:hover {
  295. background-color: rgb(255, 233, 188);
  296. }
  297. }
  298. }
  299. }
  300. }
  301. .sld_store_label_nav_wrap {
  302. .sld_store_label_wrap {
  303. width: 100%;
  304. height: auto;
  305. padding: 0;
  306. position: relative;
  307. box-sizing: border-box;
  308. line-height: 0;
  309. height: 104px;
  310. img {
  311. position: relative;
  312. max-width: 100%;
  313. height: 104px;
  314. margin: 0 auto;
  315. display: block;
  316. }
  317. }
  318. .logo_banner_left{
  319. height: 0;
  320. z-index: 1;
  321. img{
  322. position: absolute;
  323. left: 0;
  324. max-height: 84px;
  325. top: -94px;
  326. }
  327. }
  328. .sld_store_nav {
  329. width: 100%;
  330. height: 48px;
  331. line-height: 48px;
  332. background: $colorLinear;
  333. .sld_all_store_cat {
  334. &:hover {
  335. .sld_store_first_cat {
  336. display: block !important;
  337. }
  338. }
  339. }
  340. .sld_store_first_cat {
  341. position: absolute;
  342. top: 48px;
  343. left: 0;
  344. width: 200px;
  345. font-size: 15px;
  346. background-color: #ffffff;
  347. z-index: 119;
  348. display: none;
  349. li {
  350. position: relative;
  351. width: 100%;
  352. height: 40px;
  353. line-height: 40px;
  354. box-sizing: border-box;
  355. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  356. &:last-child {
  357. border-bottom: none;
  358. }
  359. a {
  360. display: block;
  361. width: 100%;
  362. color: #333333;
  363. text-align: left;
  364. white-space: nowrap;
  365. text-overflow: ellipsis;
  366. overflow: hidden;
  367. span{
  368. text-overflow: ellipsis;
  369. white-space: nowrap;
  370. overflow: hidden;
  371. width: 85%;
  372. float: left;
  373. }
  374. }
  375. i {
  376. font-size: 14px !important;
  377. -webkit-transform: rotate(-90deg);
  378. -moz-transform: rotate(-90deg);
  379. -ms-transform: rotate(-90deg);
  380. -o-transform: rotate(-90deg);
  381. transform: rotate(-90deg);
  382. color: #666666;
  383. }
  384. }
  385. .sld_store_second_cat {
  386. display: none;
  387. position: absolute;
  388. top: 0px;
  389. left: 199px;
  390. width: 180px;
  391. }
  392. }
  393. .sld_store_first_cat > li {
  394. padding: 0 13px 0 17px;
  395. }
  396. .sld_store_first_cat > li:hover > .sld_store_second_cat {
  397. display: block !important;
  398. }
  399. .sld_store_second_cat > li {
  400. width: 200px;
  401. background-color: #ffffff;
  402. box-sizing: border-box;
  403. padding-left: 10px;
  404. }
  405. li {
  406. float: left;
  407. // padding: 0 20px;
  408. text-align: center;
  409. height: 38px;
  410. &.sld_all_store_cat {
  411. position: relative;
  412. width: 168px;
  413. height: 100%;
  414. text-align: center;
  415. // background-color: #ffffff;
  416. font-weight: 400;
  417. font-size: 12px;
  418. color: #FFFFFF;
  419. padding: 0;
  420. cursor: pointer;
  421. &:hover {
  422. color: #282E30;
  423. }
  424. i {
  425. margin-left: 6px;
  426. font-size: 24px;
  427. vertical-align: bottom;
  428. }
  429. }
  430. a {
  431. font-size: 12px;
  432. color: #fff;
  433. }
  434. }
  435. ul {
  436. display: flex;
  437. align-items: center;
  438. width: 1440px;
  439. margin: 0 auto;
  440. position: relative;
  441. li {
  442. width: 168px;
  443. height: 100%;
  444. &:hover,
  445. &.active {
  446. background-color: #F6F8FA;
  447. a {
  448. color: #282E30;
  449. }
  450. }
  451. }
  452. }
  453. .sld_store_cat_horizontal {
  454. display: flex;
  455. align-items: center;
  456. position: absolute;
  457. left: 168px;
  458. width: 735px;
  459. // height: 38px;
  460. height: 100%;
  461. overflow: hidden;
  462. a {
  463. display: inline-block;
  464. width: 100%;
  465. height: 100%;
  466. }
  467. }
  468. }
  469. }
  470. .sld_cart_wrap {
  471. z-index: 99;
  472. width: 200px;
  473. height: 100%;
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. dl {
  478. width: 100%;
  479. text-align: center;
  480. margin-bottom: 0px;
  481. .cart_goods_num {
  482. font: 11px/16px Verdana;
  483. color: #fff;
  484. background: $colorMain;
  485. text-align: center;
  486. display: inline-block;
  487. height: 16px;
  488. min-width: 16px;
  489. border: none 0;
  490. border-radius: 8px;
  491. margin-left: 10px;
  492. }
  493. dt {
  494. // position: absolute;
  495. z-index: 3;
  496. height: 38px;
  497. background: #F6F8FA;
  498. cursor: pointer;
  499. font-weight: 400;
  500. .iconfont {
  501. margin: 0 8px 0 0px;
  502. color: $colorMain;
  503. font-weight: 600;
  504. vertical-align: bottom;
  505. font-family: "iconfont" !important;
  506. font-size: 17px;
  507. font-style: normal;
  508. -webkit-font-smoothing: antialiased;
  509. -moz-osx-font-smoothing: grayscale;
  510. line-height: 36px;
  511. img{
  512. width: 16px;
  513. position: relative;
  514. top: 2px;
  515. }
  516. }
  517. &.cart_icon_text_wrap {
  518. display: flex;
  519. align-items: center;
  520. justify-content: center;
  521. a {
  522. color: $colorMain;
  523. font-size: 14px;
  524. line-height: 36px;
  525. }
  526. }
  527. }
  528. dd {
  529. .cart_goods {
  530. dl {
  531. padding-top: 8px;
  532. }
  533. dd {
  534. &.cart_goods_price {
  535. position: static;
  536. em {
  537. margin-right: 6px;
  538. width: auto;
  539. color: #666;
  540. &:nth-child(1) {
  541. display: block;
  542. font-weight: 600;
  543. }
  544. &:nth-child(2) {
  545. display: block;
  546. text-align: right;
  547. margin-top: 6px;
  548. }
  549. }
  550. }
  551. }
  552. }
  553. }
  554. }
  555. dd {
  556. position: absolute;
  557. top: 37px;
  558. right: 0;
  559. width: 355px;
  560. border: 1px solid #e3e3e3;
  561. background: #fff;
  562. z-index: 1;
  563. }
  564. &:hover {
  565. .cart_more_view {
  566. display: inline-block;
  567. }
  568. }
  569. .cart_more_view {
  570. display: none;
  571. .empty_cart {
  572. width: 100%;
  573. position: relative;
  574. .empty_cart_line {
  575. position: absolute;
  576. width: 163px;
  577. right: 0;
  578. height: 2px;
  579. top: -2px;
  580. z-index: 999;
  581. background: #fff;
  582. }
  583. .empty_cart_txt {
  584. padding: 10px;
  585. color: #999;
  586. }
  587. }
  588. }
  589. }
  590. .ld {
  591. position: relative;
  592. zoom: 1;
  593. }
  594. .fl {
  595. float: left;
  596. }
  597. .fr {
  598. float: right;
  599. }
  600. .clearfix {
  601. display: block;
  602. zoom: 1;
  603. &:before {
  604. display: table;
  605. content: " ";
  606. }
  607. &:after {
  608. content: ".";
  609. display: block;
  610. height: 0;
  611. clear: both;
  612. visibility: hidden;
  613. }
  614. }
  615. .search_line {
  616. width: 1px;
  617. height: 20px;
  618. border: 1px solid #ffffff;
  619. opacity: 0.5;
  620. position: absolute;
  621. right: 300px;
  622. // top: 8px;
  623. }
  624. .search_modle {
  625. width: 290px;
  626. position: absolute;
  627. right: 0;
  628. height: 100%;
  629. .search_input {
  630. width: 100%;
  631. height: 32px;
  632. background: #ffffff;
  633. border-radius: 2px 0 0 2px;
  634. display: block;
  635. border: none;
  636. border: 1px solid #fff;
  637. padding-left: 5px;
  638. font-size: 14px;
  639. }
  640. .search_input_button {
  641. display: block;
  642. width: 72px;
  643. height: 32px;
  644. background: $colorMain;
  645. border-radius: 0 2px 2px 0;
  646. font-size: 12px;
  647. //font-family: Microsoft YaHei;
  648. font-weight: 400;
  649. color: #ffffff;
  650. line-height: 32px;
  651. text-align: center;
  652. cursor: pointer;
  653. }
  654. }
  655. }