金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1320 lines
26 KiB

  1. @import '../../../common/css/global';
  2. .content{
  3. .meals{
  4. height: auto !important;
  5. .meal_list{
  6. width: 100%;
  7. overflow: auto;
  8. white-space: nowrap;
  9. .store_list {
  10. width: 26.4%;
  11. position: relative;
  12. display: inline-block;
  13. margin-right: 10%;
  14. image {
  15. width: 100%;
  16. height:100px!important;
  17. }
  18. .description {
  19. margin-top: 5px;
  20. font-size: 14px;
  21. height: 48px;
  22. overflow: hidden;
  23. -webkit-line-clamp: 2;
  24. text-overflow: ellipsis;
  25. display: -webkit-box;
  26. -webkit-box-orient: vertical;
  27. white-space: normal;
  28. }
  29. .price {
  30. font-size: 14px;
  31. height: auto;
  32. /*overflow: visible;*/
  33. white-space: normal;
  34. overflow: hidden;
  35. text-overflow: ellipsis;
  36. }
  37. &:last-child {
  38. margin-right: 0;
  39. &:after {
  40. display: none;
  41. /*content: ; */
  42. }
  43. }
  44. &:after {
  45. content: "";
  46. display: block;
  47. position: absolute;
  48. right: -28%;
  49. top: 20%;
  50. width: 18%;
  51. height: 10%;
  52. background: url('https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/uploading.png');
  53. background-size: 100% 100%;
  54. }
  55. }
  56. }
  57. .all_count {
  58. font-size: 14px;
  59. width: 100%;
  60. border: 1px solid #e5e5e5;
  61. height: 36px;
  62. line-height: 36px;
  63. text-align: center;
  64. margin-top: 10px;
  65. }
  66. }
  67. //background: #ffffff;
  68. height: 100%;
  69. overflow: auto;
  70. box-sizing: border-box;
  71. .top-image{
  72. swiper{
  73. height: 730rpx;
  74. background: #ffffff;
  75. .slide-image{
  76. width: 100%;
  77. height: 100%;
  78. }
  79. }
  80. }
  81. .basic-information{
  82. padding-top: 10px;
  83. font-size: 12px;
  84. background: #ffffff;
  85. .basic-top{
  86. font-size: 14px;
  87. color: #000000;
  88. padding: 5px 10px;
  89. }
  90. .basic-middle{
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. padding: 0 10px;
  95. .tag-box{
  96. .tag{
  97. font-size: 10px;
  98. color: #9f9f9f;
  99. background: #e4e4e4;
  100. border-radius: 4px;
  101. padding: 3px 5px;
  102. margin-right: 5px;
  103. }
  104. }
  105. }
  106. .basic-bottom{
  107. padding: 10px;
  108. color: #ee2b1d;
  109. .price{
  110. font-size: 20px;
  111. color: #ee3428;
  112. }
  113. }
  114. .market-price{
  115. padding: 0 10px 10px 10px;
  116. text-decoration: line-through;
  117. font-size: 12px;
  118. color: #959595;
  119. }
  120. .purchaseInfo{
  121. font-size: 14px;
  122. color:#e73237;
  123. padding: 5px 10px;
  124. }
  125. .coupons-tags {
  126. padding: 10px;
  127. display: flex;
  128. align-items: baseline;
  129. .tags-title {
  130. width: 30px;
  131. color: #585757;
  132. }
  133. .coupon-box {
  134. display: flex;
  135. flex-wrap: wrap;
  136. flex-direction: row;
  137. justify-content: flex-start;
  138. align-items: center;
  139. flex: 1;
  140. .tags-item {
  141. color: #ffffff;
  142. background: #C9171D;
  143. padding: 2px 7px;
  144. position: relative;
  145. margin: 5px 10px 5px 0;
  146. .dot-wrap {
  147. .dot-left {
  148. position: absolute;
  149. top: 0;
  150. left: 5px;
  151. }
  152. .dot-right {
  153. position: absolute;
  154. top: 0;
  155. right: -4px;
  156. }
  157. .dot-item {
  158. width: 5px;
  159. height: 5px;
  160. background: #F7F7F7;
  161. border-radius: 50%;
  162. margin: 2px 0 2px -7px;
  163. &:last-child {
  164. margin-top: 0;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. .discounts-tags {
  172. display: flex;
  173. padding: 10px;
  174. align-items: baseline;
  175. .tags-title {
  176. width: 30px;
  177. color: #585757;
  178. }
  179. .discounts-box {
  180. flex: 1;
  181. overflow: hidden;
  182. .disconts-item {
  183. display: flex;
  184. align-items: center;
  185. margin-bottom: 10px;
  186. &:last-child {
  187. margin-bottom: 0;
  188. }
  189. .discounts-tags-title {
  190. color: #C9171D;
  191. border: 1px solid #F1C5C6;
  192. border-radius: 3px;
  193. padding: 0 5px;
  194. margin-right: 10px;
  195. }
  196. .tags-item{
  197. white-space: nowrap;
  198. overflow: hidden;
  199. text-overflow: ellipsis;
  200. flex: 1;
  201. }
  202. }
  203. }
  204. }
  205. .old-box{
  206. padding:10px;
  207. color: #959595;
  208. text-decoration: line-through;
  209. }
  210. }
  211. .detail-item-box{
  212. padding-bottom: 55px;
  213. .title{
  214. padding: 10px 0 10px 10px;
  215. font-size: 14px;
  216. line-height: 18px;
  217. display: flex;
  218. background-color: #FFFFFF;
  219. margin-top: 10px;
  220. .title-text{
  221. flex: 1;
  222. }
  223. .arrow-up {
  224. width: 30px;
  225. height: 10px;
  226. margin-top: 3px;
  227. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/down.png") no-repeat center;
  228. transform: rotate(180deg);
  229. background-size: 10px;
  230. }
  231. .arrow-down {
  232. width: 20px;
  233. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/down.png") no-repeat center;
  234. background-size: 10px;
  235. margin-right: 5px;
  236. }
  237. //.icon-right {
  238. // width: 20px;
  239. // background: url("https://www.jackwolfskin.cn/m/static/image/right.png") no-repeat center;
  240. // background-size: 5px;
  241. // margin-right: 5px;
  242. //}
  243. }
  244. .content {
  245. background: #FFFFFF;
  246. padding: 10px;
  247. box-sizing: border-box;
  248. font-size: 0;
  249. // 商品参数
  250. .argument-box {
  251. color: #000000;
  252. .argument-top {
  253. line-height: 20px;
  254. span {
  255. display: inline-block;
  256. font-size: 10px;
  257. width: 50%;
  258. box-sizing: border-box;
  259. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/goods-list.png") no-repeat left;
  260. padding-left: 15px;
  261. }
  262. }
  263. .argument-bottom {
  264. font-size: 10px;
  265. margin-top: 35px;
  266. .argument-item {
  267. display: flex;
  268. margin-bottom: 10px;
  269. .index-box {
  270. flex: 1;
  271. ul {
  272. display: flex;
  273. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/lvl-bg.png") repeat-x top;
  274. .red-dot {
  275. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/red-dot.png") no-repeat top;
  276. }
  277. li {
  278. flex: 1;
  279. display: inline-block;
  280. text-align: center;
  281. padding-top: 15px;
  282. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/dot.png") no-repeat top;
  283. }
  284. }
  285. }
  286. }
  287. }
  288. }
  289. .small_title {
  290. padding: 10px 0;
  291. font-size: 14px;
  292. background-size: 15px;
  293. background-color: #FFFFFF;
  294. }
  295. .responsive {
  296. width: 100% !important;
  297. height: auto;
  298. }
  299. .commodity_description {
  300. table, image {
  301. .responsive
  302. }
  303. }
  304. .story_list {
  305. margin: -5px;
  306. .bg_green {
  307. background: #d88a3b;
  308. }
  309. .bg_aqua {
  310. background: #00c1d8;
  311. }
  312. .bg_orange {
  313. background: #00b46e;
  314. }
  315. .story_box {
  316. padding: 5px;
  317. display: inline-block;
  318. width: 50%;
  319. box-sizing: border-box;
  320. position: relative;
  321. .story_tag {
  322. position: absolute;
  323. top: 12px;
  324. left: 15px;
  325. color: #FFFFFF;
  326. padding: 2px 5px;
  327. border-radius: 2px;
  328. font-size: 10px;
  329. }
  330. .story_title {
  331. position: absolute;
  332. bottom: 15px;
  333. left: 15px;
  334. right: 15px;
  335. color: #fff;
  336. overflow: hidden;
  337. white-space: nowrap;
  338. text-overflow: ellipsis;
  339. font-size: 14px;
  340. }
  341. }
  342. }
  343. .comment_list {
  344. font-size: 12px;
  345. line-height: 20px;
  346. .comment_user {
  347. .user_name {
  348. margin-right: 15px;
  349. display: inline-block;
  350. color: #0079ff;
  351. }
  352. }
  353. .comment_content {
  354. margin-top: 10px;
  355. font-size: 14px;
  356. }
  357. .comment_time {
  358. color: #838282;
  359. }
  360. }
  361. .user_list {
  362. text-align: center;
  363. display: flex;
  364. .user_box {
  365. padding: 0 10px;
  366. display: block;
  367. width: 25%;
  368. box-sizing: border-box;
  369. .user_avatar {
  370. width: 100%;
  371. border-radius: 50%;
  372. .user-avatar {
  373. border-radius: 50%;
  374. }
  375. }
  376. .user_name_box {
  377. font-size: 12px;
  378. margin-top: 5px;
  379. display: flex;
  380. .user-name {
  381. flex: 1;
  382. overflow: hidden;
  383. white-space: nowrap;
  384. text-overflow: ellipsis;
  385. }
  386. /* .user-grade {
  387. background: url("/static/image/TNF_v2_r2_c2.png") no-repeat center;
  388. display: inline-block;
  389. border-radius: 50%;
  390. width: 18px;
  391. padding-left: 10px;
  392. color: #ffffff;
  393. font-style: italic;
  394. } */
  395. }
  396. }
  397. }
  398. .like_list {
  399. margin: 0 -5px;
  400. font-size: 10px;
  401. .like_box {
  402. padding: 0 10px;
  403. display: inline-block;
  404. width: 33.333%;
  405. box-sizing: border-box;
  406. .like_inner {
  407. border: 1px solid #e5e5e5;
  408. padding: 5px;
  409. }
  410. .like_name {
  411. overflow: hidden;
  412. text-overflow: ellipsis;
  413. white-space: nowrap;
  414. }
  415. .like_image {
  416. width: 100%;
  417. image{
  418. height: 200rpx !important;
  419. }
  420. }
  421. .like_money {
  422. color: #ED3327;
  423. }
  424. }
  425. }
  426. }
  427. }
  428. .wxParse-p{
  429. image {
  430. width: 100% !important;
  431. }
  432. }
  433. .to-top{
  434. position: fixed;
  435. bottom: 80px;
  436. right: 13px;
  437. width: 40px;
  438. height: 40px;
  439. text-align: center;
  440. line-height: 40px;
  441. border-radius: 100%;
  442. background-color: #f9be00;
  443. padding: 5px;
  444. overflow: hidden;
  445. }
  446. .wxparser--wxParser-img {
  447. width: 100% !important;
  448. vertical-align:top;
  449. }
  450. .tabbar{
  451. position: fixed;
  452. bottom: 0;
  453. width: 100%;
  454. height: 55px;
  455. z-index: 50;
  456. color: #5e5e5e;
  457. font-size: 13px;
  458. background: #2e2e2e;
  459. display: flex;
  460. .globalBgcolor {
  461. background: @mainColor;
  462. }
  463. .tabbar-item {
  464. display: flex;
  465. flex: 1;
  466. width: 0%;
  467. justify-content: center;
  468. align-items: center;
  469. font-size: 12px;
  470. flex-direction: column;
  471. i{
  472. font-size: 20px;
  473. }
  474. &.item_3{
  475. line-height: 55px;
  476. color: #fff;
  477. font-size: 18px;
  478. flex: 2;
  479. }
  480. &.favorite{
  481. color: #EA4448;
  482. i{
  483. color: #EA4448;
  484. }
  485. }
  486. }
  487. .btn_1 {
  488. background: #C2C2C2;
  489. &.no-seckill{
  490. background:#494949;
  491. }
  492. }
  493. .seckill{
  494. background: #E40013;
  495. }
  496. }
  497. }
  498. /*选取规格部分*/
  499. .select_goods_container {
  500. background: #ffffff;
  501. position: relative;
  502. z-index:100;
  503. .select_goods_cloese {
  504. position: absolute;
  505. top:12px;
  506. right:10px;
  507. width:20px;
  508. height:20px;
  509. background: transparent;
  510. z-index:4;
  511. overflow:visible;
  512. }
  513. .select_goods_cloese:before{
  514. position: absolute;
  515. top:9px;
  516. left:-1px;
  517. content: '';
  518. width:28px;
  519. height:2px;
  520. background: #2e2e2e;
  521. transform: rotate(45deg) ;
  522. }
  523. .select_goods_cloese:after{
  524. top:9px;
  525. left:-1px;
  526. position: absolute;
  527. content: '';
  528. width:28px;
  529. height:2px;
  530. background: #2e2e2e;
  531. transform: rotate(-45deg);
  532. }
  533. .select_goods_header{
  534. display: flex;
  535. align-items: center;
  536. position: relative;
  537. height: 60px;
  538. .img_box {
  539. position: absolute;
  540. left: 10px;
  541. bottom: 10px;
  542. width: 78px;
  543. height: 78px;
  544. border: 1px solid #e5e5e5;
  545. background: #f9f9f9;
  546. overflow: hidden;
  547. image {
  548. width:78px;
  549. height:78px;
  550. object-fit: fill;
  551. }
  552. }
  553. .price_item {
  554. font-size:18px;
  555. margin-left:20px;
  556. height:100%;
  557. margin-left: 100px;
  558. display:-webkit-flex;
  559. flex-direction: column;
  560. justify-content: center;
  561. text {
  562. display: block;
  563. text-align: left;
  564. }
  565. text:nth-child(1){
  566. font-weight:bold;
  567. color:#ee2b1d;
  568. }
  569. text:nth-child(2){
  570. font-size:14px;
  571. color:#6c6c6c;
  572. text-indent:3px
  573. }
  574. }
  575. }
  576. .select_spec {
  577. font-size: 12px;
  578. padding: 12px 8px 50px 8px;
  579. .spec_line {
  580. display: flex;
  581. margin-bottom: 15px;
  582. .spec_title {
  583. padding-right: 11px;
  584. color: #c4c4c4;
  585. width: 50px;
  586. line-height: 35px;
  587. }
  588. .spec_list {
  589. display: block;
  590. line-height:35px;
  591. color:#959595;
  592. font-size:15px;
  593. }
  594. .spec_block {
  595. display: inline-block;
  596. margin-top: 10px;
  597. margin-right: 10px;
  598. .spec_text {
  599. display: block;
  600. padding: 0 7px;
  601. height: 33px;
  602. line-height: 33px;
  603. min-width: 33px;
  604. border: 1px solid #DDDDDD;
  605. text-align: center;
  606. font-size: 12px;
  607. position: relative;
  608. .border-color {
  609. position: absolute;
  610. top: -1px;
  611. left: -1px;
  612. right: -1px;
  613. bottom: -1px;
  614. border: 3px solid @mainColor;
  615. }
  616. }
  617. image {
  618. height: 100%;
  619. width: 100%;
  620. }
  621. .spec_icon {
  622. width: 35px;
  623. height: 35px;
  624. padding: 0;
  625. }
  626. /*&.active text {
  627. &:before {
  628. content: '';
  629. position: absolute;
  630. border: 3px solid @mainColor;
  631. top: -1px;
  632. left: -1px;
  633. right: -1px;
  634. bottom: -1px;
  635. }
  636. }*/
  637. &.disabled text {
  638. border: none;
  639. margin: 1px;
  640. &:before {
  641. content: '';
  642. position: absolute;
  643. background-color: #eee;
  644. top: -1px;
  645. left: -1px;
  646. right: -1px;
  647. bottom: -1px;
  648. opacity: 0.6;
  649. }
  650. &:after {
  651. content: '';
  652. position: absolute;
  653. border: 3px dashed #cfcfcf;
  654. top: -1px;
  655. left: -1px;
  656. right: -1px;
  657. bottom: -1px;
  658. }
  659. }
  660. }
  661. .num_title {
  662. padding-right: 11px;
  663. color: #c4c4c4;
  664. width: 50px;
  665. line-height: 30px;
  666. }
  667. .num_value {
  668. display: flex;
  669. font-size: 0;
  670. text {
  671. display: block;
  672. border: 1px solid #e8e8e8;
  673. text-align: center;
  674. min-width: 28px;
  675. width: 28px;
  676. height: 28px;
  677. line-height: 28px;
  678. font-size: 12px;
  679. &.store {
  680. width: auto;
  681. border-color: #ffffff;
  682. margin-left: 10px;
  683. }
  684. }
  685. input {
  686. display: block;
  687. border: none;
  688. height: 100%;
  689. width: 100%;
  690. text-align: center;
  691. outline: none;
  692. font-size: 12px;
  693. }
  694. .none_border {
  695. width: 30px;
  696. border:1px solid #e8e8e8;
  697. border-left: none;
  698. border-right: none;
  699. }
  700. }
  701. }
  702. }
  703. }
  704. .detail-popup {
  705. width:100%;
  706. position: fixed;
  707. left: 0;
  708. bottom: -55px;
  709. z-index: 51;
  710. transform:translate3d(0,100,0);
  711. /*选取规格部分*/
  712. .select_spec {
  713. font-size: 12px;
  714. padding: 12px 8px 50px 8px;
  715. .spec_line {
  716. display: flex;
  717. margin-bottom: 15px;
  718. .spec_title {
  719. padding-right: 11px;
  720. color: #c4c4c4;
  721. width: 50px;
  722. line-height: 35px;
  723. }
  724. .spec_list {
  725. display: block;
  726. line-height:35px;
  727. color:#959595;
  728. font-size:15px;
  729. }
  730. .spec_value {
  731. flex: 1;
  732. font-size: 0;
  733. margin-top: -10px;
  734. view{
  735. overflow: hidden;
  736. }
  737. }
  738. .spec_block {
  739. display: inline-block;
  740. margin-top: 10px;
  741. margin-right: 10px;
  742. text {
  743. display: block;
  744. padding: 0 7px;
  745. height: 33px;
  746. line-height: 33px;
  747. min-width: 20px;
  748. border: 1px solid #DDDDDD;
  749. text-align: center;
  750. font-size: 12px;
  751. position: relative;
  752. }
  753. image {
  754. height: 100%;
  755. width: 100%;
  756. }
  757. /*&.active view {
  758. &:before {
  759. content: '';
  760. position: absolute;
  761. border: 3px solid @mainColor;
  762. top: -1px;
  763. left: -1px;
  764. right: -1px;
  765. bottom: -1px;
  766. }
  767. }*/
  768. &.disabled view {
  769. border: none;
  770. margin: 1px;
  771. &:before {
  772. content: '';
  773. position: absolute;
  774. background-color: #eee;
  775. top: -1px;
  776. left: -1px;
  777. right: -1px;
  778. bottom: -1px;
  779. opacity: 0.6;
  780. }
  781. &:after {
  782. content: '';
  783. position: absolute;
  784. border: 3px dashed #cfcfcf;
  785. top: -1px;
  786. left: -1px;
  787. right: -1px;
  788. bottom: -1px;
  789. }
  790. }
  791. }
  792. .num_title {
  793. padding-right: 11px;
  794. color: #c4c4c4;
  795. width: 50px;
  796. line-height: 30px;
  797. }
  798. .purchase{
  799. line-height: 30px;
  800. color:#aaaaaa;
  801. margin-left: 10px;
  802. }
  803. /*.num_value {
  804. display: flex;
  805. flex: 1;
  806. font-size: 0;
  807. text {
  808. display: block;
  809. border: 1px solid #e8e8e8;
  810. text-align: center;
  811. min-width: 28px;
  812. width: 28px;
  813. height: 28px;
  814. line-height: 28px;
  815. font-size: 12px;
  816. &.store {
  817. width: auto;
  818. border-color: #ffffff;
  819. margin-left: 10px;
  820. }
  821. }
  822. input {
  823. display: block;
  824. border: none;
  825. height: 100%;
  826. width: 100%;
  827. text-align: center;
  828. outline: none;
  829. }
  830. .none_border {
  831. width:50px;
  832. border-left: none;
  833. border-right: none;
  834. }
  835. }*/
  836. }
  837. .button {
  838. height: 50px;
  839. line-height: 50px;
  840. text-align: center;
  841. position: absolute;
  842. bottom: 0;
  843. left: 0;
  844. right: 0;
  845. border-radius: 0;
  846. color: #fff;
  847. font-weight: 100;
  848. background: @mainColor;
  849. &:after {
  850. border-radius: 0;
  851. border: none;
  852. }
  853. &.disabled {
  854. background: #C2C2C2;
  855. }
  856. }
  857. }
  858. }
  859. .maks{
  860. position: fixed;
  861. bottom: 0;
  862. width: 100%;
  863. height: 100%;
  864. z-index: 40;
  865. background: rgba(0,0,0,.4);
  866. opacity: 1;
  867. transition: opacity .3s ease;
  868. display: none;
  869. &.cur{
  870. display: block;
  871. }
  872. }
  873. /*选择优惠券部分*/
  874. .select-coupon-box {
  875. background: #F7F7F7;
  876. position: fixed;
  877. bottom: 0;
  878. width: 100%;
  879. height: 0;
  880. z-index: 50;
  881. transition:all .3s linear;
  882. &.cur{
  883. height: 50%;
  884. }
  885. .select-coupon {
  886. padding: 0 10px;
  887. height: 100%;
  888. box-sizing: border-box;
  889. .select-coupon-top {
  890. padding: 5px 0;
  891. text-align: center;
  892. overflow: visible;
  893. .title {
  894. position: relative;
  895. color: #878787;
  896. overflow: visible;
  897. .close {
  898. position: absolute;
  899. right: -10px;
  900. top: -10px;
  901. padding: 10px;
  902. }
  903. }
  904. }
  905. .select-coupon-bottom {
  906. height:100%;
  907. /*padding-bottom: 50px;*/
  908. overflow: auto;
  909. box-sizing: border-box;
  910. .coupon-box {
  911. margin-bottom: 50px;
  912. .coupon-item{
  913. display: flex;
  914. align-items: center;
  915. &:first-child{
  916. margin-top: 10px;
  917. }
  918. margin-bottom: 10px;
  919. .left{
  920. width: 110px;
  921. height: 110px;
  922. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/coupon-bg.png") no-repeat;
  923. background-size: 100% 100%;
  924. display: flex;
  925. align-items: center;
  926. justify-content: center;
  927. .label{
  928. color: #FFFFFF;
  929. padding: 0 10px;
  930. }
  931. }
  932. .right{
  933. position: relative;
  934. height: 110px;
  935. flex: 1;
  936. overflow: hidden;
  937. background: #FFFFFF;
  938. padding: 0 10px;
  939. font-size: 14px;
  940. .coupon-name{
  941. display: flex;
  942. align-items: center;
  943. margin: 10px 0;
  944. .type{
  945. color: #FFFFFF;
  946. background: #fc5e3a;
  947. border-radius: 10px;
  948. padding: 1px 8px;
  949. margin-right: 5px;
  950. }
  951. .name{
  952. flex: 1;
  953. white-space: nowrap;
  954. text-overflow: ellipsis;
  955. overflow: hidden;
  956. }
  957. }
  958. .coupon-tiem{
  959. font-size: 10px;
  960. color: #b5b5b5;
  961. }
  962. .get-box{
  963. margin-top: 10px;
  964. float: right;
  965. .btn{
  966. display: inline-block;
  967. text-align: center;
  968. -webkit-border-radius: 15px;
  969. border-radius: 15px;
  970. padding: 2px 5px;
  971. &.use{
  972. color: #D70C18;
  973. border: 1px solid #D70C18;
  974. }
  975. &.already{
  976. color: #717071;
  977. background: #DBDCDC;
  978. border: 1px solid #DBDCDC;
  979. }
  980. }
  981. }
  982. }
  983. }
  984. }
  985. }
  986. }
  987. }
  988. /*查看促销部分*/
  989. .see-discounts-box{
  990. background: #F7F7F7;
  991. position: fixed;
  992. bottom: 0;
  993. width: 100%;
  994. height: 0;
  995. z-index: 50;
  996. transition:all .3s linear;
  997. &.cur{
  998. height: 50%;
  999. }
  1000. .select-discounts {
  1001. padding: 0 10px;
  1002. height: 100%;
  1003. box-sizing: border-box;
  1004. .select-discounts-top {
  1005. padding: 5px 0;
  1006. text-align: center;
  1007. .title {
  1008. position: relative;
  1009. color: #878787;
  1010. .close {
  1011. position: absolute;
  1012. right: -10px;
  1013. top: -10px;
  1014. padding: 10px;
  1015. }
  1016. }
  1017. }
  1018. .select-discounts-bottom {
  1019. height:100%;
  1020. /*padding-bottom: 50px;*/
  1021. overflow: auto;
  1022. box-sizing: border-box;
  1023. .disconts-item {
  1024. display: flex;
  1025. align-items: baseline;
  1026. padding: 10px 0;
  1027. &:last-child:before {
  1028. display: none;
  1029. }
  1030. &:last-child {
  1031. margin-bottom: 0;
  1032. }
  1033. .discounts-tags-title {
  1034. color: #C9171D;
  1035. border: 1px solid #F1C5C6;
  1036. border-radius: 3px;
  1037. padding: 0 5px;
  1038. margin-right: 10px;
  1039. }
  1040. .tags-item{
  1041. flex: 1;
  1042. }
  1043. }
  1044. }
  1045. }
  1046. }
  1047. //加入购物车弹出
  1048. .cart-box{
  1049. .cart-mask{
  1050. position: fixed;
  1051. top: 0;
  1052. left: 0;
  1053. right: 0;
  1054. bottom: 0;
  1055. z-index: 200;
  1056. background-color: rgba(0,0,0,.4);
  1057. }
  1058. .cart-dialog{
  1059. position: fixed;
  1060. z-index: 500;
  1061. width: 85%;
  1062. top: 50%;
  1063. left: 50%;
  1064. -webkit-transform: translate(-50%,-50%);
  1065. transform: translate(-50%,-50%);
  1066. background-color: #fafafc;
  1067. text-align: center;
  1068. border-radius: 5px;
  1069. overflow: hidden;
  1070. .title{
  1071. padding: 20px 0;
  1072. font-size: 15px;
  1073. }
  1074. .buttons{
  1075. display: flex;
  1076. padding: 20px 8px;
  1077. font-size: 15px;
  1078. word-wrap: break-word;
  1079. word-break: break-all;
  1080. .button{
  1081. display: block;
  1082. background: #000;
  1083. color: #fff;
  1084. padding: 10px;
  1085. margin: 0 8px;
  1086. flex: 1;
  1087. width: 0;
  1088. text-align: center;
  1089. }
  1090. }
  1091. }
  1092. }
  1093. .seckill-time-box{
  1094. font-size: 14px;
  1095. .seckill-item{
  1096. text-align: right;
  1097. .no-starts{
  1098. display: none;
  1099. }
  1100. div{
  1101. display: inline-block;
  1102. }
  1103. .text{
  1104. margin: 2px 5px;
  1105. }
  1106. span{
  1107. background: #FFFFFF;
  1108. color: #fe4545;
  1109. padding: 0 5px;
  1110. border-radius: 3px;
  1111. }
  1112. p{
  1113. display: inline-block;
  1114. }
  1115. }
  1116. }
  1117. /*新版秒杀*/
  1118. .seckill-box{
  1119. padding: 0px 10px 5px 10px;
  1120. margin-bottom: 5px;
  1121. display: flex;
  1122. align-items: center;
  1123. .money-box{
  1124. flex: 1;
  1125. text-align: right;
  1126. .old{
  1127. text-decoration: line-through;
  1128. color: #959595;
  1129. }
  1130. .new{
  1131. font-size: 25px;
  1132. color: #ee2b1d;
  1133. }
  1134. }
  1135. .seckill-item{
  1136. text-align: left;
  1137. .no-starts{
  1138. display: block;
  1139. }
  1140. .time-text{
  1141. background: #000;
  1142. color: #FFFFFF;
  1143. padding: 2px 5px;
  1144. border-radius: 3px;
  1145. margin-top: 2px;
  1146. }
  1147. .text{
  1148. margin: 0;
  1149. }
  1150. span{
  1151. background: #000;
  1152. color: #FFFFFF;
  1153. };
  1154. i{
  1155. display: none;
  1156. }
  1157. .tiem{
  1158. display: block;
  1159. }
  1160. }
  1161. &.active {
  1162. .seckill-item{
  1163. .text{
  1164. margin: 0;
  1165. color: #e60113;
  1166. }
  1167. span{
  1168. background: #e60113;
  1169. color: #FFFFFF;
  1170. };
  1171. .tiem{
  1172. color: #e60113;
  1173. }
  1174. }
  1175. }
  1176. }