金诚优选前端代码
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.

808 lines
16 KiB

  1. @import '../../../common/css/global';
  2. #meal-matched{
  3. .contents{
  4. height:100%;
  5. overflow:auto;
  6. .title{
  7. display: flex;
  8. justify-content: space-between;
  9. background-color: #ffffff;
  10. height: 40px;
  11. padding-left: 14px;
  12. padding-right: 14px;
  13. line-height: 40px;
  14. border-bottom: 1px solid #e5e5e5;
  15. color: black;
  16. font-weight: bold;
  17. .recommand{
  18. margin-top: 5px;
  19. height: 30px;
  20. font-size: 14px;
  21. line-height: 30px;
  22. border-radius: 20px;
  23. text-align: center;
  24. padding-left: 10px;
  25. padding-right: 10px;
  26. background-color: #e40013;
  27. color: #FFFFFF;
  28. }
  29. }
  30. .meal-list{
  31. background-color: #ffffff;
  32. overflow:auto;
  33. .meal-list-item{
  34. &.highlight{
  35. .item-size{
  36. color: red;
  37. }
  38. margin-top: -1px;
  39. border: 1px solid red;
  40. &:first-child{
  41. margin-top: 0px;
  42. }
  43. }
  44. overflow: hidden;
  45. padding: 10px 0 10px 10px;
  46. border-bottom: 1px solid #e5e5e5;
  47. image{
  48. float: left;
  49. width: 96px;
  50. height: 96px;
  51. }
  52. .detail{
  53. overflow: hidden;
  54. p{
  55. padding-left: 10px;
  56. padding-right: 10px;
  57. &.item-title{
  58. text-overflow: ellipsis;
  59. overflow: hidden;
  60. white-space: normal;
  61. -webkit-line-clamp: 2;
  62. display: -webkit-box;
  63. }
  64. &.item-count{
  65. margin-top: 5px;
  66. text-align: right;
  67. }
  68. &.item-size{
  69. color: #d9d9d9;
  70. margin-top: 5px;
  71. font-size: 13px;
  72. height:32px;
  73. line-height:32px;
  74. span{
  75. &.chanSize{
  76. float: right;
  77. width: 78px;
  78. height: 32px;
  79. text-align: center;
  80. line-height: 32px;
  81. border: 1px solid #d0d0d1;
  82. margin-right:10px;
  83. }
  84. &.updateSize{
  85. margin-right: 10px;
  86. float: right;
  87. width: 78px;
  88. height: 32px;
  89. text-align: center;
  90. line-height: 32px;
  91. color: red;
  92. border: 1px solid red;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .all_count{
  100. view{
  101. padding-top:10px;
  102. padding-bottom: 10px;
  103. padding-right: 10px;
  104. text-align: right;
  105. color: #b5b5b5;
  106. font-size: 14px;
  107. }
  108. }
  109. }
  110. .meal-bottom{
  111. background-color: #ffffff;
  112. height: 50px;
  113. position: fixed;
  114. left: 0;
  115. bottom: 0;
  116. width: 100%;
  117. display: flex;
  118. .meal-bottom_detail{
  119. width: 70%;
  120. height: 100%;
  121. line-height:50px;
  122. p{
  123. text-align: right;
  124. padding-right: 10px;
  125. margin-left:10px;
  126. span{
  127. padding-left: 5px;
  128. color: #e40013;
  129. font-weight: bold;
  130. }
  131. }
  132. }
  133. .meal-bottom_button{
  134. width: 30%;
  135. height: 100%;
  136. background-color: @mainColor;
  137. line-height: 50px;
  138. text-align: center;
  139. color: #ffffff;
  140. }
  141. }
  142. }
  143. /*选取规格部分*/
  144. .select_goods_container {
  145. background: #ffffff;
  146. position: relative;
  147. z-index:100;
  148. .select_goods_cloese {
  149. position: absolute;
  150. top:12px;
  151. right:10px;
  152. width:20px;
  153. height:20px;
  154. background: transparent;
  155. z-index:4;
  156. overflow:visible;
  157. }
  158. .select_goods_cloese:before{
  159. position: absolute;
  160. top:9px;
  161. left:-1px;
  162. content: '';
  163. width:28px;
  164. height:2px;
  165. background: #2e2e2e;
  166. transform: rotate(45deg) ;
  167. }
  168. .select_goods_cloese:after{
  169. top:9px;
  170. left:-1px;
  171. position: absolute;
  172. content: '';
  173. width:28px;
  174. height:2px;
  175. background: #2e2e2e;
  176. transform: rotate(-45deg);
  177. }
  178. .select_goods_header{
  179. display: flex;
  180. padding: 8px;
  181. align-items: center;
  182. .img_box {
  183. border:1px solid #e5e5e5;
  184. background:#f9f9f9 ;
  185. overflow: hidden;
  186. image {
  187. width:78px;
  188. height:78px;
  189. object-fit: fill;
  190. }
  191. }
  192. .price_item {
  193. font-size:18px;
  194. margin-left:20px;
  195. height:100%;
  196. display:-webkit-flex;
  197. flex-direction: column;
  198. justify-content: center;
  199. text {
  200. display: block;
  201. text-align: left;
  202. }
  203. text:nth-child(1){
  204. font-weight:bold;
  205. color:#ee2b1d;
  206. }
  207. text:nth-child(2){
  208. font-size:14px;
  209. color:#6c6c6c;
  210. text-indent:3px
  211. }
  212. }
  213. }
  214. .select_spec {
  215. font-size: 12px;
  216. padding: 12px 8px 50px 8px;
  217. .spec_line {
  218. display: flex;
  219. margin-bottom: 15px;
  220. .spec_title {
  221. padding-right: 11px;
  222. color: #c4c4c4;
  223. width: 50px;
  224. line-height: 35px;
  225. }
  226. .spec_list {
  227. display: block;
  228. line-height:35px;
  229. color:#959595;
  230. font-size:15px;
  231. }
  232. .spec_block {
  233. display: inline-block;
  234. margin-top: 10px;
  235. margin-right: 10px;
  236. .spec_text {
  237. display: block;
  238. padding: 0 7px;
  239. height: 33px;
  240. line-height: 33px;
  241. min-width: 33px;
  242. border: 1px solid #DDDDDD;
  243. text-align: center;
  244. font-size: 12px;
  245. position: relative;
  246. .border-color {
  247. position: absolute;
  248. top: -1px;
  249. left: -1px;
  250. right: -1px;
  251. bottom: -1px;
  252. border: 3px solid @mainColor;
  253. }
  254. }
  255. image {
  256. height: 100%;
  257. width: 100%;
  258. }
  259. .spec_icon {
  260. width: 35px;
  261. height: 35px;
  262. padding: 0;
  263. }
  264. /*&.active text {
  265. &:before {
  266. content: '';
  267. position: absolute;
  268. border: 3px solid @globalColor;
  269. top: -1px;
  270. left: -1px;
  271. right: -1px;
  272. bottom: -1px;
  273. }
  274. }*/
  275. &.disabled text {
  276. border: none;
  277. margin: 1px;
  278. &:before {
  279. content: '';
  280. position: absolute;
  281. background-color: #eee;
  282. top: -1px;
  283. left: -1px;
  284. right: -1px;
  285. bottom: -1px;
  286. opacity: 0.6;
  287. }
  288. &:after {
  289. content: '';
  290. position: absolute;
  291. border: 3px dashed #cfcfcf;
  292. top: -1px;
  293. left: -1px;
  294. right: -1px;
  295. bottom: -1px;
  296. }
  297. }
  298. }
  299. .num_title {
  300. padding-right: 11px;
  301. color: #c4c4c4;
  302. width: 50px;
  303. line-height: 30px;
  304. }
  305. .num_value {
  306. display: flex;
  307. font-size: 0;
  308. text {
  309. display: block;
  310. border: 1px solid #e8e8e8;
  311. text-align: center;
  312. min-width: 28px;
  313. width: 28px;
  314. height: 28px;
  315. line-height: 28px;
  316. font-size: 12px;
  317. &.store {
  318. width: auto;
  319. border-color: #ffffff;
  320. margin-left: 10px;
  321. }
  322. }
  323. input {
  324. display: block;
  325. border: none;
  326. height: 100%;
  327. width: 100%;
  328. text-align: center;
  329. outline: none;
  330. font-size: 12px;
  331. }
  332. .none_border {
  333. width: 30px;
  334. border:1px solid #e8e8e8;
  335. border-left: none;
  336. border-right: none;
  337. }
  338. }
  339. }
  340. }
  341. }
  342. /*选取规格部分*/
  343. .select_goods_container {
  344. background: #ffffff;
  345. position: relative;
  346. z-index:100;
  347. .select_goods_cloese {
  348. position: absolute;
  349. top:12px;
  350. right:10px;
  351. width:20px;
  352. height:20px;
  353. background: transparent;
  354. z-index:4;
  355. overflow:visible;
  356. }
  357. .select_goods_cloese:before{
  358. position: absolute;
  359. top:9px;
  360. left:-1px;
  361. content: '';
  362. width:28px;
  363. height:2px;
  364. background: #2e2e2e;
  365. transform: rotate(45deg) ;
  366. }
  367. .select_goods_cloese:after{
  368. top:9px;
  369. left:-1px;
  370. position: absolute;
  371. content: '';
  372. width:28px;
  373. height:2px;
  374. background: #2e2e2e;
  375. transform: rotate(-45deg);
  376. }
  377. .select_goods_header{
  378. display: flex;
  379. padding: 8px;
  380. align-items: center;
  381. .img_box {
  382. border:1px solid #e5e5e5;
  383. background:#f9f9f9 ;
  384. overflow: hidden;
  385. image {
  386. width:78px;
  387. height:78px;
  388. object-fit: fill;
  389. }
  390. }
  391. .price_item {
  392. font-size:18px;
  393. margin-left:20px;
  394. height:100%;
  395. display:-webkit-flex;
  396. flex-direction: column;
  397. justify-content: center;
  398. text {
  399. display: block;
  400. text-align: left;
  401. }
  402. text:nth-child(1){
  403. font-weight:bold;
  404. color:#ee2b1d;
  405. }
  406. text:nth-child(2){
  407. font-size:14px;
  408. color:#6c6c6c;
  409. text-indent:3px
  410. }
  411. }
  412. }
  413. .select_spec {
  414. font-size: 12px;
  415. padding: 12px 8px 50px 8px;
  416. .spec_line {
  417. display: flex;
  418. margin-bottom: 15px;
  419. .spec_title {
  420. padding-right: 11px;
  421. color: #c4c4c4;
  422. width: 50px;
  423. line-height: 35px;
  424. }
  425. .spec_list {
  426. display: block;
  427. line-height:35px;
  428. color:#959595;
  429. font-size:15px;
  430. }
  431. .spec_block {
  432. display: inline-block;
  433. margin-top: 10px;
  434. margin-right: 10px;
  435. .spec_text {
  436. display: block;
  437. padding: 0 10px;
  438. height: 33px;
  439. line-height: 33px;
  440. min-width: 33px;
  441. border: 1px solid #DDDDDD;
  442. text-align: center;
  443. font-size: 12px;
  444. position: relative;
  445. }
  446. image {
  447. height: 100%;
  448. width: 100%;
  449. }
  450. .spec_icon {
  451. width: 35px;
  452. height: 35px;
  453. padding: 0;
  454. }
  455. /*&.active text {
  456. &:before {
  457. content: '';
  458. position: absolute;
  459. border: 3px solid @globalColor;
  460. top: -1px;
  461. left: -1px;
  462. right: -1px;
  463. bottom: -1px;
  464. }
  465. }*/
  466. &.disabled text {
  467. border: none;
  468. margin: 1px;
  469. &:before {
  470. content: '';
  471. position: absolute;
  472. background-color: #eee;
  473. top: -1px;
  474. left: -1px;
  475. right: -1px;
  476. bottom: -1px;
  477. opacity: 0.6;
  478. }
  479. &:after {
  480. content: '';
  481. position: absolute;
  482. border: 3px dashed #cfcfcf;
  483. top: -1px;
  484. left: -1px;
  485. right: -1px;
  486. bottom: -1px;
  487. }
  488. }
  489. }
  490. .num_title {
  491. padding-right: 11px;
  492. color: #c4c4c4;
  493. width: 50px;
  494. line-height: 30px;
  495. }
  496. .num_value {
  497. display: flex;
  498. font-size: 14px;
  499. text {
  500. display: block;
  501. border: 1px solid #e8e8e8;
  502. text-align: center;
  503. min-width: 28px;
  504. width: 28px;
  505. height: 28px;
  506. line-height: 28px;
  507. font-size: 12px;
  508. &.store {
  509. width: auto;
  510. border-color: #ffffff;
  511. margin-left: 10px;
  512. }
  513. }
  514. input {
  515. display: block;
  516. border: none;
  517. height: 100%;
  518. width: 100%;
  519. text-align: center;
  520. outline: none;
  521. font-size: 12px;
  522. }
  523. .none_border {
  524. width: 30px;
  525. border:1px solid #e8e8e8;
  526. border-left: none;
  527. border-right: none;
  528. }
  529. }
  530. }
  531. }
  532. }
  533. .maks{
  534. position: fixed;
  535. bottom: 0;
  536. width: 100%;
  537. height: 100%;
  538. z-index: 40;
  539. background: rgba(0,0,0,.4);
  540. opacity: 1;
  541. transition: opacity .3s ease;
  542. display: none;
  543. &.cur{
  544. display: block;
  545. }
  546. }
  547. .detail-popup {
  548. width:100%;
  549. position: fixed;
  550. left: 0;
  551. bottom: -55px;
  552. /* #ifdef H5 || APP-PLUS */
  553. bottom: 0;
  554. /* #endif */
  555. z-index: 51;
  556. transform:translate3d(0,100,0);
  557. /*选取规格部分*/
  558. .select_spec {
  559. font-size: 12px;
  560. padding: 12px 8px 50px 8px;
  561. .spec_line {
  562. display: flex;
  563. margin-bottom: 15px;
  564. .spec_title {
  565. padding-right: 11px;
  566. color: #c4c4c4;
  567. width: 50px;
  568. line-height: 35px;
  569. }
  570. .spec_list {
  571. display: block;
  572. line-height:35px;
  573. color:#959595;
  574. font-size:15px;
  575. }
  576. .spec_value {
  577. flex: 1;
  578. font-size: 0;
  579. margin-top: -10px;
  580. view{
  581. overflow: hidden;
  582. }
  583. }
  584. .spec_block {
  585. display: inline-block;
  586. margin-top: 10px;
  587. margin-right: 10px;
  588. text {
  589. display: block;
  590. padding: 0 7px;
  591. height: 33px;
  592. line-height: 33px;
  593. min-width: 20px;
  594. border: 1px solid #DDDDDD;
  595. text-align: center;
  596. font-size: 12px;
  597. position: relative;
  598. }
  599. image {
  600. height: 100%;
  601. width: 100%;
  602. }
  603. /*&.active view {
  604. &:before {
  605. content: '';
  606. position: absolute;
  607. border: 3px solid @globalColor;
  608. top: -1px;
  609. left: -1px;
  610. right: -1px;
  611. bottom: -1px;
  612. }
  613. }*/
  614. &.disabled view {
  615. border: none;
  616. margin: 1px;
  617. &:before {
  618. content: '';
  619. position: absolute;
  620. background-color: #eee;
  621. top: -1px;
  622. left: -1px;
  623. right: -1px;
  624. bottom: -1px;
  625. opacity: 0.6;
  626. }
  627. &:after {
  628. content: '';
  629. position: absolute;
  630. border: 3px dashed #cfcfcf;
  631. top: -1px;
  632. left: -1px;
  633. right: -1px;
  634. bottom: -1px;
  635. }
  636. }
  637. }
  638. .num_title {
  639. padding-right: 11px;
  640. color: #c4c4c4;
  641. width: 50px;
  642. line-height: 30px;
  643. }
  644. //.num_value {
  645. // display: flex;
  646. // flex: 1;
  647. // font-size: 0;
  648. //
  649. // text {
  650. // display: block;
  651. // border: 1px solid #e8e8e8;
  652. // text-align: center;
  653. // min-width: 28px;
  654. // width: 28px;
  655. // height: 28px;
  656. // line-height: 28px;
  657. // font-size: 12px;
  658. //
  659. // &.store {
  660. // width: auto;
  661. // border-color: #ffffff;
  662. // margin-left: 10px;
  663. // }
  664. // }
  665. //
  666. // input {
  667. // display: block;
  668. // border: none;
  669. // height: 100%;
  670. // width: 100%;
  671. // text-align: center;
  672. // outline: none;
  673. // }
  674. //
  675. // .none_border {
  676. // width:50px;
  677. // border-left: none;
  678. // border-right: none;
  679. // }
  680. //}
  681. }
  682. .button {
  683. height: 50px;
  684. line-height: 50px;
  685. text-align: center;
  686. position: absolute;
  687. bottom: 0;
  688. left: 0;
  689. right: 0;
  690. border-radius: 0;
  691. background: @mainColor;
  692. &:after {
  693. border-radius: 0;
  694. border: none;
  695. }
  696. &.disabled {
  697. background: #C2C2C2;
  698. }
  699. }
  700. }
  701. }
  702. }