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

603 lines
14 KiB

  1. @import '../../../common/css/global';
  2. #store-cart{
  3. .goods-box{
  4. padding-bottom: 50px;
  5. .goods-item{
  6. display: flex;
  7. padding: 10px;
  8. background: #FFFFFF;
  9. font-size: 12px;
  10. align-items: center;
  11. .input{
  12. }
  13. .img-box{
  14. image{
  15. display: block;
  16. width: 80px;
  17. height: 80px;
  18. border: 1px solid #e5e5e5;
  19. }
  20. }
  21. .item-info{
  22. margin-left: 10px;
  23. line-height: 20px;
  24. flex: 1;
  25. overflow: hidden;
  26. text-overflow: ellipsis;
  27. white-space: nowrap;
  28. .name{
  29. padding-bottom: 5px;
  30. overflow: hidden;
  31. white-space: nowrap;
  32. text-overflow: ellipsis;
  33. }
  34. .money-box{
  35. display: flex;
  36. color: #838383;
  37. .model{
  38. flex: 1;
  39. }
  40. .money{
  41. }
  42. }
  43. .mun-box{
  44. display: flex;
  45. align-items: center;
  46. .change-num{
  47. flex: 1;
  48. padding-top: 4px;
  49. .ul-list-content{
  50. display: flex;
  51. .item{
  52. display: block;
  53. list-style: none;
  54. width: 30px;
  55. height: 30px;
  56. border: 1px solid #e8e8e8;
  57. text-align: center;
  58. line-height: 30px;
  59. &:nth-child(2) {
  60. border-left: none;
  61. border-right: none;
  62. }
  63. input{
  64. display: block;
  65. border: none;
  66. height: 100%;
  67. width: 100%;
  68. text-align: center;
  69. outline: none;
  70. }
  71. }
  72. }
  73. }
  74. .remove{
  75. color: #0899ff;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. .buy-box{
  82. display: flex;
  83. align-items: center;
  84. position: fixed;
  85. /* #ifdef APP-PLUS || MP-WEIXIN */
  86. bottom: 50px;
  87. /* #endif */
  88. /* #ifdef H5 */
  89. bottom:50PX;
  90. /* #endif */
  91. width: 100%;
  92. height: 50px;
  93. line-height: 50px;
  94. font-size: 15px;
  95. background: #FFFFFF;
  96. // z-index: 10; // todo
  97. .checkbox{
  98. display: flex;
  99. align-items: center;
  100. margin: 0 10px;
  101. checkbox{
  102. display: flex;
  103. }
  104. }
  105. .money-box{
  106. flex: 1;
  107. white-space: nowrap;
  108. text-overflow: ellipsis;
  109. overflow: hidden;
  110. }
  111. .num-box{
  112. height: 100%;
  113. width: 110px;
  114. text-align: center;
  115. color: #FFFFFF;
  116. border-radius: 0;
  117. background: @mainColor;
  118. &:after {
  119. border-radius: 0;
  120. border: none;
  121. }
  122. }
  123. }
  124. /*领券头部*/
  125. .discount-box{
  126. .is-login{
  127. font-size: 12px;
  128. display: flex;
  129. align-items: center;
  130. background: #FFFFFF;
  131. padding: 10px 0 10px 15px;
  132. margin-bottom: 10px;
  133. .promotion-box{
  134. flex: 1;
  135. .promotion{
  136. display: flex;
  137. align-items: center;
  138. color:#4a4a4a;
  139. .title{
  140. color: @mainColor;
  141. border:1px solid @mainColor;
  142. border-radius:3px;
  143. padding: 3px 5px;
  144. margin-right: 10px;
  145. }
  146. }
  147. }
  148. .coupon{
  149. padding: 0 15px;
  150. color:@mainColor;
  151. &.mx-1px-left:before{
  152. border-left: 1px solid #979797;
  153. }
  154. }
  155. }
  156. .no-login{
  157. background: #FFFFFF;
  158. padding: 10px 0 10px 15px;
  159. margin-bottom: 10px;
  160. font-size: 14px;
  161. display: flex;
  162. align-items: center;
  163. .left{
  164. display: flex;
  165. align-items: center;
  166. flex: 1;
  167. i{
  168. color: #e73237;
  169. margin-right: 5px;
  170. }
  171. span{
  172. color:#e73237;
  173. }
  174. }
  175. .right{
  176. color:#e73237;
  177. padding-right: 15px;
  178. }
  179. }
  180. }
  181. .maks{
  182. position: fixed;
  183. bottom: 0;
  184. width: 100%;
  185. height: 100%;
  186. z-index: 40;
  187. background: rgba(0,0,0,.4);
  188. opacity: 1;
  189. transition: opacity .3s ease;
  190. display: none;
  191. &.cur{
  192. display: block;
  193. }
  194. }
  195. /*选择优惠券部分*/
  196. .select-coupon-box {
  197. background: #F7F7F7;
  198. position: fixed;
  199. bottom: 0;
  200. width: 100%;
  201. height: 0;
  202. z-index: 50;
  203. transition:all .3s linear;
  204. &.cur{
  205. height: 60%;
  206. }
  207. .select-coupon {
  208. height: 100%;
  209. box-sizing: border-box;
  210. .select-coupon-top {
  211. padding: 0 15px;
  212. background: #e9e9e9;
  213. text-align: center;
  214. overflow: visible;
  215. .title {
  216. position: relative;
  217. color: #4A4A4A;
  218. overflow: visible;
  219. font-size: 14px;
  220. padding: 10px 0;
  221. .close {
  222. position: absolute;
  223. right: -10px;
  224. top: 0px;
  225. padding: 10px;
  226. }
  227. }
  228. }
  229. .select-coupon-bottom {
  230. padding: 0 15px;
  231. height:100%;
  232. /*padding-bottom: 50px;*/
  233. overflow: auto;
  234. box-sizing: border-box;
  235. .title{
  236. font-size: 14px;
  237. color: #000;
  238. padding-top: 8px;
  239. }
  240. .coupon-box {
  241. margin-bottom: 50px;
  242. .ticket_box {
  243. padding-bottom: 10px;
  244. display: flex;
  245. img {
  246. width: 100%;
  247. }
  248. .f12 {
  249. font-size: 12px;
  250. }
  251. .color_3 {
  252. color: #838383;
  253. }
  254. .fff {
  255. color: #fff;
  256. }
  257. .online {
  258. color: #FD8300;
  259. }
  260. &:first-child {
  261. margin-top: 10px;
  262. }
  263. .ticket_left {
  264. width: 109px;
  265. height: 90px;
  266. background-size: 109px;
  267. .ticket_left_content {
  268. display: flex;
  269. align-items: center;
  270. background: @globalColor;
  271. height: 100%;
  272. font-size: 12px;
  273. }
  274. }
  275. .ticket_left_y {
  276. background-size: cover;
  277. }
  278. .ticket_left_b {
  279. background-size: cover;
  280. }
  281. .ticket_right {
  282. flex: 1;
  283. background-size: 10px;
  284. padding-right: 9px;
  285. overflow: hidden;
  286. background: #FFFFFF;
  287. .ticket_right_top {
  288. border-bottom: 1px solid #DDDDDD;
  289. padding-top: 10px;
  290. padding-bottom: 5px;
  291. }
  292. .ticket_right_bottom {
  293. background: #FFFFFF;
  294. padding-bottom: 4px;
  295. padding-top: 1px;
  296. .names {
  297. font-size: 12px;
  298. margin: 5px 5px 0 0;
  299. overflow: hidden;
  300. text-overflow: ellipsis;
  301. white-space: nowrap;
  302. }
  303. .btn-box {
  304. display: flex;
  305. align-items: center;
  306. justify-content: space-between;
  307. padding-right: 5px;
  308. .btn {
  309. width: 70px;
  310. height: 20px;
  311. line-height: 20px;
  312. text-align: center;
  313. -webkit-border-radius: 15px;
  314. border-radius: 15px;
  315. padding: 2px 0;
  316. &.use {
  317. color: @globalColor;
  318. border: 1px solid @globalColor;
  319. }
  320. &.already {
  321. color: #717071;
  322. background: #DBDCDC;
  323. border: 1px solid #DBDCDC;
  324. }
  325. }
  326. .time {
  327. white-space: nowrap;
  328. overflow: hidden;
  329. text-overflow: ellipsis;
  330. }
  331. }
  332. }
  333. }
  334. }
  335. .coupon-item {
  336. margin-bottom: 10px;
  337. &:first-child {
  338. margin-top: 10px;
  339. }
  340. .coupon {
  341. display: flex;
  342. &.shasow {
  343. box-shadow: 0px 7px 10px 0px rgba(6, 0, 0, 0.2);
  344. }
  345. .coupon-left {
  346. width: 110px;
  347. height: 80px;
  348. color: #ffffff;
  349. background-size: cover;
  350. background: @mainColor;
  351. position: relative;
  352. .text-wrap {
  353. display: flex;
  354. flex-direction: column;
  355. justify-content: center;
  356. align-items: center;
  357. height: 100%;
  358. font-size: 12px;
  359. .text-box {
  360. text-align: center;
  361. width: 100%;
  362. .text{
  363. display: block;
  364. padding: 0 10px;
  365. overflow: hidden;
  366. white-space: nowrap;
  367. text-overflow: ellipsis;
  368. font-size: 20px;
  369. font-weight: 600;
  370. &.label{
  371. font-size: 12px;
  372. font-weight: 100;
  373. }
  374. .money{
  375. font-size: 14px;
  376. font-weight: 100;
  377. }
  378. }
  379. .money-num {
  380. font-size: 25px;
  381. font-weight: bold;
  382. }
  383. }
  384. }
  385. .dot-wrap {
  386. position: absolute;
  387. top: 0px;
  388. margin-top: 5px;
  389. .dot-item {
  390. width: 5px;
  391. height: 5px;
  392. background: #F7F7F7;
  393. border-radius: 50%;
  394. margin: 4px 0 9px -1px;
  395. &:last-child {
  396. margin-top: 10px;
  397. }
  398. }
  399. }
  400. }
  401. .coupon-right {
  402. flex: 1;
  403. background: #fff;
  404. padding: 0px 15px;
  405. font-size: 12px;
  406. overflow: hidden;
  407. .top {
  408. font-size: 12px;
  409. display: -webkit-box;
  410. color: #333333;
  411. height: 40px;
  412. line-height: 20px;
  413. padding-top: 8px;
  414. box-sizing: border-box;
  415. text-overflow: ellipsis;
  416. -webkit-box-orient: vertical;
  417. -webkit-line-clamp: 2;
  418. .type {
  419. color: #333333;
  420. border: 1px solid #333333;
  421. padding: 2px 5px;
  422. border-radius: 3px;
  423. line-height: 20px;
  424. margin-right: 5px;
  425. }
  426. }
  427. .bottom {
  428. .bottom-use {
  429. display: flex;
  430. align-items: center;
  431. justify-content: space-between;
  432. font-size: 12px;
  433. margin: 7px 0;
  434. .tiem-box {
  435. color: #9E9E9F;
  436. flex: 1;
  437. font-size: 9px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. margin-top: 5px;
  442. }
  443. .btn {
  444. text-align: center;
  445. border-radius: 3px;
  446. padding: 3px 12px;
  447. }
  448. .use {
  449. color: #fff;
  450. border: 1px solid @mainColor;
  451. background: @mainColor;
  452. }
  453. .already {
  454. color: #9B9B9B;
  455. background: #fff;
  456. border: 1px solid #9B9B9B;
  457. }
  458. }
  459. }
  460. }
  461. }
  462. }
  463. }
  464. }
  465. }
  466. }
  467. /*查看促销部分*/
  468. .see-discounts-box{
  469. background: #F7F7F7;
  470. position: fixed;
  471. bottom: 0;
  472. width: 100%;
  473. height: 0;
  474. z-index: 50;
  475. transition:all .3s linear;
  476. &.cur{
  477. height: 50%;
  478. }
  479. .select-discounts {
  480. height: 100%;
  481. box-sizing: border-box;
  482. .select-discounts-top {
  483. padding: 0 15px;
  484. background: #e9e9e9;
  485. text-align: center;
  486. overflow: visible;
  487. .title {
  488. position: relative;
  489. color: #4A4A4A;
  490. overflow: visible;
  491. font-size: 14px;
  492. padding: 10px 0;
  493. .close {
  494. position: absolute;
  495. right: -10px;
  496. top: 0px;
  497. padding: 10px;
  498. }
  499. }
  500. }
  501. .select-discounts-bottom {
  502. height:100%;
  503. /*padding-bottom: 50px;*/
  504. overflow: auto;
  505. box-sizing: border-box;
  506. .disconts-item {
  507. display: flex;
  508. align-items: baseline;
  509. padding: 10px 5px;
  510. &:last-child:before {
  511. display: none;
  512. }
  513. &:last-child {
  514. margin-bottom: 0;
  515. }
  516. .discounts-tags-title {
  517. color: @mainColor;
  518. border: 1px solid @mainColor;
  519. border-radius: 3px;
  520. padding: 0 5px;
  521. margin-right: 10px;
  522. }
  523. .tags-item{
  524. flex: 1;
  525. }
  526. }
  527. }
  528. }
  529. }
  530. //重置按钮样式
  531. checkbox .wx-checkbox-input{
  532. border-radius: 100%;
  533. background-color: #fff;
  534. border: 1px solid #c1caca;
  535. box-shadow: 0 1px 2px rgba(0,0,0,.05), inset 0 -15px 10px -12px rgba(0,0,0,.05);
  536. height: 14px;
  537. width: 14px;
  538. }
  539. checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  540. background-color: @globalColor;
  541. border: 1px solid @globalColor;
  542. }
  543. .no-goods{
  544. text-align: center;
  545. padding: 20px 0;
  546. image{
  547. width:126px;
  548. vertical-align: middle;
  549. }
  550. }
  551. }