detail_seckill.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. .el-main{
  2. .detail-nav-wrap{
  3. background-color: #f8f8f8;
  4. .detail-nav{
  5. margin: auto;
  6. width: 1210px;
  7. height: 54px;
  8. display: flex;
  9. align-items: center;
  10. .iconfont{
  11. margin: 0 8px;
  12. }
  13. span{
  14. color: #666;
  15. &:last-of-type{
  16. color: $base-color;
  17. }
  18. }
  19. .goods-name{
  20. display: inline-block;
  21. width: 150px;
  22. white-space: nowrap;
  23. overflow: hidden;
  24. text-overflow: ellipsis;
  25. }
  26. }
  27. }
  28. }
  29. .detail-main {
  30. background: #fff;
  31. padding-top: 20px;
  32. }
  33. .goods-detail {
  34. overflow: hidden;
  35. margin: 0 auto;
  36. width: 1210px;
  37. .preview-wrap {
  38. display: flex;
  39. float: left;
  40. .video-player-wrap {
  41. position: absolute;
  42. z-index: 1;
  43. .video-player {
  44. visibility: hidden;
  45. > div {
  46. width: 356px;
  47. height: 356px;
  48. display: none;
  49. }
  50. .vjs-control-bar,
  51. .vjs-big-play-button {
  52. visibility: hidden;
  53. transition: none;
  54. }
  55. .vjs-big-play-button {
  56. top: 50%;
  57. left: 50%;
  58. transform: translate(-50%, -50%);
  59. }
  60. }
  61. .media-mode {
  62. position: absolute;
  63. width: 356px;
  64. z-index: 5;
  65. bottom: 0;
  66. top: 300px;
  67. text-align: center;
  68. line-height: 25px;
  69. span {
  70. background: rgba(100, 100, 100, 0.6);
  71. color: #fff;
  72. font-size: 12px;
  73. line-height: 25px;
  74. border-radius: 10px;
  75. padding: 0 15px;
  76. display: inline-block;
  77. cursor: pointer;
  78. &:last-child {
  79. margin-left: 20px;
  80. }
  81. }
  82. }
  83. &.show {
  84. .video-player,
  85. .vjs-control-bar,
  86. .vjs-big-play-button {
  87. visibility: visible;
  88. }
  89. .video-player {
  90. > div {
  91. display: block;
  92. }
  93. }
  94. .media-mode {
  95. top: initial;
  96. bottom: 50px;
  97. }
  98. }
  99. }
  100. .magnifier-wrap {
  101. width: 460px;
  102. height: 460px;
  103. border: 1px solid #d8d8d8;
  104. box-sizing: border-box;
  105. .magnifier-box .mouse-cover {
  106. background-color: #fede4f;
  107. opacity: 0.4;
  108. }
  109. }
  110. .spec-items {
  111. margin-left: 10px;
  112. position: relative;
  113. width: 84px;
  114. height: 460px;
  115. overflow: hidden;
  116. > span {
  117. cursor: pointer;
  118. left: 0;
  119. top: 0;
  120. width: 84px;
  121. height: 42px;
  122. line-height: 42px;
  123. text-align: center;
  124. position: absolute;
  125. background: #fff;
  126. color: #838383;
  127. z-index: 1;
  128. font-size: 25px;
  129. &:first-of-type{
  130. transform: rotate(180deg);
  131. }
  132. &:last-of-type{
  133. top: calc(100% - 42px);
  134. }
  135. }
  136. ul {
  137. display: flex;
  138. flex-direction: column;
  139. width: 100%;
  140. height: 500%;
  141. position: absolute;
  142. top: 48px;
  143. li {
  144. width: 84px;
  145. height: 84px;
  146. overflow: hidden;
  147. margin-bottom: 10px;
  148. border: 1px solid #DADADA;
  149. cursor: pointer;
  150. opacity: 0.5;
  151. box-sizing: border-box;
  152. &:hover,
  153. &.selected {
  154. opacity: 1;
  155. border-color: $base-color;
  156. }
  157. }
  158. }
  159. }
  160. .share-collect {
  161. padding: 10px 0 20px;
  162. cursor: pointer;
  163. text-align: right;
  164. color: #838383;
  165. display: flex;
  166. justify-content: space-between;
  167. align-items: center;
  168. a{
  169. color: #838383;
  170. }
  171. i,
  172. span {
  173. vertical-align: middle;
  174. }
  175. i {
  176. margin-right: 5px;
  177. }
  178. }
  179. }
  180. .basic-info-wrap {
  181. float: left;
  182. width: calc(100% - 589px);
  183. margin-left: 30px;
  184. h1 {
  185. font-size: 20px;
  186. font-weight: normal;
  187. color: #333;
  188. line-height: 1.5;
  189. overflow: hidden;
  190. text-overflow: ellipsis;
  191. display: -webkit-box;
  192. -webkit-line-clamp: 2;
  193. -webkit-box-orient: vertical;
  194. }
  195. .desc {
  196. font-size: 12px;
  197. color: #999;
  198. margin: 5px 0 12px;
  199. }
  200. .divider {
  201. margin: 10px 0;
  202. border: 0;
  203. border-top: 1px dotted #e5e5e5;
  204. }
  205. .discount-banner {
  206. margin-top: 5px;
  207. background: url(../../../../assets/images/goods/discount_bg.png) no-repeat;
  208. height: 40px;
  209. line-height: 40px;
  210. overflow: hidden;
  211. display: flex;
  212. justify-content: space-between;
  213. align-items: center;
  214. .activity-name {
  215. color: #fff;
  216. font-size: 14px;
  217. height: 40px;
  218. i {
  219. display: inline-block;
  220. line-height: 40px;
  221. }
  222. span {
  223. display: inline-block;
  224. line-height: 40px;
  225. vertical-align: top;
  226. }
  227. }
  228. .discount-icon {
  229. margin: 0 8px 0 10px;
  230. color: #fff;
  231. font-size: 20px;
  232. }
  233. .surplus-time {
  234. color: #fff;
  235. font-size: 14px;
  236. float: right;
  237. height: 35px;
  238. line-height: 35px;
  239. padding-right: 5px;
  240. text-align: right;
  241. > span {
  242. margin-right: 5px;
  243. }
  244. i {
  245. font-style: normal;
  246. padding: 2px;
  247. width: 20px;
  248. height: 20px;
  249. margin: 0 5px;
  250. border-radius: 3px;
  251. }
  252. .count-down {
  253. display: inline-block;
  254. }
  255. }
  256. }
  257. .item-block {
  258. background-color: #f8f8f8;
  259. padding: 15px 0;
  260. position: relative;
  261. background-size: cover;
  262. min-height: 62px;
  263. margin-bottom: 20px;
  264. .statistical {
  265. position: absolute;
  266. right: 20px;
  267. top: 16px;
  268. li {
  269. display: inline-block;
  270. text-align: center;
  271. position: relative;
  272. font-size: 14px;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. &:first-child {
  276. margin-right: 40px;
  277. }
  278. p {
  279. color: #838383;
  280. }
  281. span {
  282. color: #383838;
  283. font-size: 16px;
  284. }
  285. }
  286. }
  287. }
  288. .item-line {
  289. font-size: 14px;
  290. min-height: 35px;
  291. line-height: 35px;
  292. display: flex;
  293. padding-left: 20px;
  294. margin-bottom: 10px;
  295. dt {
  296. display: inline-block;
  297. width: 50px;
  298. height: 35px;
  299. line-height: 35px;
  300. text-align: justify;
  301. font-size: 12px;
  302. margin-right: 16px;
  303. color: #222;
  304. flex-shrink: 0;
  305. &::after {
  306. display: inline-block;
  307. width: 100%;
  308. content: '';
  309. height: 0;
  310. }
  311. }
  312. > * {
  313. height: inherit;
  314. line-height: inherit;
  315. font-size: 14px;
  316. }
  317. > dd {
  318. display: flex;
  319. align-items: center;
  320. height: 35px;
  321. }
  322. &:last-of-type{
  323. margin-bottom: 0;
  324. }
  325. &:first-of-type > dd{
  326. align-items: baseline;
  327. }
  328. .yuan {
  329. font-size: 18px;
  330. }
  331. .price {
  332. font-size: 30px;
  333. font-weight: bold;
  334. }
  335. .market-yuan {
  336. font-size: 14px;
  337. text-decoration: line-through;
  338. }
  339. .member_price {
  340. font-size: 14px;
  341. margin-left: 5px;
  342. }
  343. .market-price {
  344. font-size: 14px;
  345. margin-left: 5px;
  346. text-decoration: line-through;
  347. }
  348. &.promotion-price .label {
  349. line-height: initial;
  350. font-size: 18px;
  351. background: transparent;
  352. padding: 0;
  353. vertical-align: text-bottom;
  354. }
  355. &.coupon-list {
  356. align-items: baseline;
  357. > div {
  358. display: -webkit-box;
  359. -webkit-box-orient: vertical;
  360. -webkit-line-clamp: 2;
  361. overflow: hidden;
  362. dd {
  363. margin-right: 20px;
  364. }
  365. }
  366. p {
  367. display: inline-block;
  368. position: relative;
  369. line-height: 18px;
  370. }
  371. span {
  372. display: inline-block;
  373. padding: 0 10px;
  374. font-size: 12px;
  375. margin-right: 10px;
  376. cursor: pointer;
  377. border: 1px solid $base-color;
  378. height: 32px;
  379. line-height: 32px;
  380. color: $base-color;
  381. font-size: 14px;
  382. box-sizing: border-box;
  383. }
  384. label {
  385. line-height: 16px;
  386. position: absolute;
  387. left: 10px;
  388. top: 1px;
  389. }
  390. }
  391. &.manjian {
  392. align-items: end;
  393. }
  394. &.manjian span {
  395. // padding: 2px 10px;
  396. font-size: 12px;
  397. margin-right: 5px;
  398. }
  399. &.delivery {
  400. position: relative;
  401. i {
  402. margin-left: 5px;
  403. }
  404. dd{
  405. align-items: center;
  406. }
  407. .region-selected {
  408. position: relative;
  409. display: inline-block;
  410. vertical-align: middle;
  411. cursor: pointer;
  412. margin: 0 5px 0 0;
  413. width: auto;
  414. padding: 0 10px;
  415. height: 32px;
  416. line-height: 32px;
  417. border: 1px solid #e5e5e5;
  418. z-index: 2;
  419. font-size: 14px;
  420. }
  421. .region-list {
  422. width: 466px;
  423. position: absolute;
  424. z-index: 10;
  425. top: 35px;
  426. left: 82px;
  427. background: #fff;
  428. border: 1px solid #e5e5e5;
  429. padding: 15px;
  430. line-height: 18px;
  431. height: auto;
  432. display: none;
  433. font-size: 14px;
  434. &.hide{
  435. display: none !important;
  436. }
  437. .nav-tabs {
  438. border-bottom: 2px solid $base-color;
  439. height: 30px;
  440. > li {
  441. margin-bottom: -2px;
  442. float: left;
  443. > div {
  444. padding: 4px 8px;
  445. border: 2px solid transparent;
  446. height: 20px;
  447. display: inline-block;
  448. line-height: 20px;
  449. transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
  450. cursor: pointer;
  451. &:hover {
  452. border-color: transparent;
  453. }
  454. }
  455. &.active {
  456. > div {
  457. color: $base-color;
  458. border: 2px solid;
  459. border-bottom-color: #fff !important;
  460. }
  461. }
  462. }
  463. }
  464. .tab-content {
  465. > .active {
  466. padding: 10px 0;
  467. }
  468. > .tab-pane {
  469. display: none;
  470. &.active {
  471. display: block;
  472. }
  473. li {
  474. float: left;
  475. width: 25%;
  476. line-height: 30px;
  477. &.selected {
  478. color: $base-color;
  479. }
  480. span {
  481. cursor: pointer;
  482. &:hover {
  483. color: $base-color;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. dd:hover {
  491. .region-list {
  492. display: block;
  493. }
  494. }
  495. }
  496. &.service a {
  497. margin: 0 5px;
  498. }
  499. &.buy-btn {
  500. margin: 25px 0 0;
  501. dt{
  502. margin: 0;
  503. padding: 0;
  504. width: 0;
  505. height: 0;
  506. }
  507. dd{
  508. height: auto;
  509. }
  510. button {
  511. min-width: 168px;
  512. height: 52px;
  513. margin-right: 10px;
  514. font-size: 20px;
  515. text-shadow: 0 0 0;
  516. border-radius: 0;
  517. &[disabled] {
  518. cursor: not-allowed;
  519. pointer-events: initial;
  520. border: 1px solid;
  521. opacity: 1;
  522. }
  523. i {
  524. margin-right: 5px;
  525. font-size: 20px;
  526. }
  527. }
  528. }
  529. .i-activity-flag {
  530. height: 32px;
  531. line-height: 32px;
  532. padding: 0 8px;
  533. border: 1px solid;
  534. font-size: 14px;
  535. margin-right: 5px;
  536. white-space: nowrap;
  537. }
  538. &.gift-point strong {
  539. font-size: 14px;
  540. }
  541. &.merchant-service {
  542. overflow: hidden;
  543. margin: 10px 0;
  544. align-items: flex-start;
  545. > div {
  546. display: inline-block;
  547. }
  548. dd {
  549. display: inline-block;
  550. margin-right: 18px;
  551. // margin: 0;
  552. &:last-child {
  553. padding-right: 0;
  554. }
  555. i {
  556. color: $base-color;
  557. font-size: $ns-font-size-base;
  558. margin-right: 5px;
  559. }
  560. span {
  561. cursor: pointer;
  562. }
  563. }
  564. }
  565. }
  566. .sku-list {
  567. ul {
  568. overflow: hidden;
  569. padding: 1px;
  570. li {
  571. float: left;
  572. position: relative;
  573. margin: 2px 10px 10px 0;
  574. line-height: 14px;
  575. vertical-align: middle;
  576. div {
  577. padding: 8px 12px;
  578. text-align: center;
  579. border: 1px solid #b7b7b7;
  580. display: inline-block;
  581. -webkit-transition: none;
  582. transition: none;
  583. position: relative;
  584. cursor: pointer;
  585. &.selected,
  586. &:hover {
  587. border: 2px solid;
  588. margin: -1px;
  589. color: $base-color;
  590. }
  591. &:hover {
  592. color: $base-color;
  593. }
  594. &.disabled,
  595. &.disabled:hover {
  596. border: 1px solid #b7b7b7;
  597. margin: 0;
  598. cursor: not-allowed;
  599. color: #aaa;
  600. }
  601. img {
  602. margin-right: 10px;
  603. width: 26px;
  604. height: 26px;
  605. display: inline-block;
  606. vertical-align: middle;
  607. }
  608. i {
  609. position: absolute;
  610. right: -10px;
  611. bottom: 0px;
  612. display: none;
  613. font-size: 32px;
  614. }
  615. &:not(.disabled).selected i,
  616. &:not(.disabled):hover i {
  617. display: block;
  618. }
  619. }
  620. }
  621. }
  622. }
  623. .buy-number {
  624. margin: 10px 0;
  625. .num-wrap {
  626. display: inline-block;
  627. vertical-align: middle;
  628. position: relative;
  629. margin-right: 10px;
  630. input {
  631. width: 126px;
  632. padding-left: 40px;
  633. padding-right: 40px;
  634. font-size: 12px;
  635. height: 32px;
  636. line-height: 32px;
  637. border-radius: 0;
  638. border-color: #D5D5D5;
  639. text-align: center;
  640. &.disabled {
  641. cursor: not-allowed;
  642. }
  643. }
  644. span {
  645. position: absolute;
  646. top: 2px;
  647. left: 0;
  648. width: 32px;
  649. height: 32px;
  650. overflow: hidden;
  651. cursor: pointer;
  652. display: block;
  653. line-height: 32px;
  654. text-align: center;
  655. user-select: none;
  656. z-index: 1;
  657. &.decrease{
  658. border-right: 1px solid #D5D5D5;
  659. }
  660. &.increase{
  661. left: 94px;
  662. border-left: 1px solid #D5D5D5;
  663. }
  664. &.disabled {
  665. cursor: not-allowed;
  666. }
  667. }
  668. }
  669. .inventory {
  670. margin: 0 10px;
  671. }
  672. }
  673. .go-phone {
  674. position: relative;
  675. display: block;
  676. float: right;
  677. width: 52px;
  678. height: 52px;
  679. display: flex;
  680. align-items: center;
  681. justify-content: center;
  682. flex-direction: column;
  683. border: 1px solid #d8d8d8;
  684. box-sizing: border-box;
  685. margin-right: 10px;
  686. cursor: pointer;
  687. &>img{
  688. }
  689. &>span{
  690. margin-top: 4px;
  691. line-height: 1;
  692. font-size: 12px;
  693. color: #999;
  694. }
  695. &:hover .qrcode-wrap {
  696. display: block;
  697. }
  698. .qrcode-wrap {
  699. border: 1px solid #e5e5e5;
  700. box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  701. height: 120px;
  702. overflow: hidden;
  703. padding: 10px;
  704. position: absolute;
  705. width: 120px;
  706. left: 30px;
  707. top: -50px;
  708. display: none;
  709. background:white;
  710. }
  711. &.icon-item{
  712. .iconfont{
  713. font-size: 22px;
  714. font-weight: bold;
  715. color: #5E5C5C;
  716. &.selected{
  717. color: #ff9000;
  718. }
  719. }
  720. }
  721. }
  722. }
  723. .shop-wrap {
  724. float: right;
  725. border: 1px solid #e9e9e9;
  726. padding: 0 20px;
  727. width: 234px;
  728. box-sizing: border-box;
  729. .head-wrap {
  730. text-align: center;
  731. padding: 16px 0;
  732. border-bottom: 1px solid #f1f1f1;
  733. .img-wrap {
  734. width: 64px;
  735. height: 64px;
  736. line-height: 64px;
  737. display: inline-block;
  738. img {
  739. max-width: 100%;
  740. max-height: 100%;
  741. }
  742. }
  743. .site-name {
  744. font-size: 14px;
  745. color: #383838;
  746. }
  747. .tag {
  748. margin-left: 10px;
  749. font-size: 14px;
  750. }
  751. }
  752. .info-wrap {
  753. padding: 10px 0;
  754. border-bottom: 1px solid #f1f1f1;
  755. dl {
  756. font-size: $ns-font-size-sm;
  757. dt {
  758. color: #838383;
  759. // width: 65px;
  760. line-height: 25px;
  761. font-weight: normal;
  762. float: left;
  763. }
  764. dt.site-score {
  765. // width: 58px;
  766. padding-right: 5px;
  767. }
  768. dd {
  769. height: 25px;
  770. line-height: 25px;
  771. // margin-left: 50px;
  772. color: #838383;
  773. span {
  774. color: #383838;
  775. font-weight: 600;
  776. }
  777. }
  778. }
  779. }
  780. .operation {
  781. padding: 12px 0;
  782. .el-button {
  783. padding: 10px 16px;
  784. }
  785. }
  786. }
  787. .detail-wrap {
  788. padding: 64px 0 35px;
  789. clear: both;
  790. .goods-recommended {
  791. float: left;
  792. width: 234px;
  793. }
  794. .goods-tab {
  795. .attr-list {
  796. font-size: 14px;
  797. display: flex;
  798. flex-wrap: wrap;
  799. li {
  800. margin-bottom: 5px;
  801. padding: 0 10px;
  802. flex: 0 0 30%;
  803. width: 33%;
  804. }
  805. }
  806. .el-tabs__header{
  807. margin-bottom: 30px;
  808. }
  809. .tablist{
  810. border-radius: 0;
  811. }
  812. .el-tabs__item{
  813. position: relative;
  814. width: 168px;
  815. height: 52px;
  816. line-height: 52px;
  817. text-align: center;
  818. font-size: 18px;
  819. &.is-active{
  820. color: $base-color;
  821. &:after{
  822. content: "";
  823. position: absolute;
  824. top: -1px;
  825. left: 0;
  826. right: 0;
  827. height: 2px;
  828. background-color: $base-color;
  829. }
  830. }
  831. &:hover{
  832. color: $base-color;
  833. }
  834. }
  835. .evaluate {
  836. .empty {
  837. color: #898989;
  838. text-align: center;
  839. font-size: 14px;
  840. }
  841. nav {
  842. padding: 10px;
  843. overflow: hidden;
  844. background: #f7f7f7;
  845. li {
  846. float: left;
  847. padding: 0 20px;
  848. cursor: pointer;
  849. &:first-child {
  850. padding-left: 0;
  851. }
  852. &:hover,
  853. &.selected {
  854. color: $base-color;
  855. }
  856. }
  857. }
  858. .list {
  859. margin-top: 10px;
  860. font-size: 14px;
  861. li {
  862. padding: 15px;
  863. border-bottom: 1px solid #e5e5e5;
  864. .member-info {
  865. float: left;
  866. width: 140px;
  867. white-space: nowrap;
  868. text-overflow: ellipsis;
  869. overflow: hidden;
  870. img {
  871. width: 25px;
  872. height: 25px;
  873. border-radius: 50%;
  874. margin-right: 5px;
  875. }
  876. }
  877. .info-wrap {
  878. margin-left: 150px;
  879. margin-bottom: 10px;
  880. .content {
  881. padding: 10px 0;
  882. }
  883. .img-list {
  884. .el-image {
  885. width: 50px;
  886. margin-left: 10px;
  887. &:first-child {
  888. margin-left: 0;
  889. }
  890. }
  891. }
  892. .sku-info {
  893. color: #898989;
  894. font-size: 12px;
  895. span {
  896. margin-right: 5px;
  897. &.create-time {
  898. margin-left: 10px;
  899. }
  900. }
  901. }
  902. .evaluation-reply {
  903. margin: 10px 0;
  904. color: $base-color;
  905. }
  906. .review-evaluation {
  907. .review-time {
  908. font-size: $ns-font-size-sm;
  909. margin-left: 20px;
  910. color: #898989;
  911. }
  912. }
  913. }
  914. }
  915. }
  916. .page-wrap {
  917. margin-top: 10px;
  918. text-align: right;
  919. }
  920. }
  921. }
  922. }
  923. }