index.module.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .coupons {
  2. :global {
  3. .van-tab {
  4. font-size: 16px;
  5. }
  6. .van-tab--active {
  7. color: #2dc7aa;
  8. }
  9. }
  10. }
  11. .list {
  12. margin: 14px;
  13. // padding: 12px 14px;
  14. border-radius: 10px;
  15. --coupon-point: #f6f8f9;
  16. }
  17. .item {
  18. // --coupon-point: #fff;
  19. position: relative;
  20. border-radius: 10px;
  21. background: #fae6e7;
  22. padding: 20px 10px 20px 18px;
  23. color: #fc1a19;
  24. + .item {
  25. margin-top: 14px;
  26. }
  27. &.USED,
  28. &.EXPIRED {
  29. background: #eaeaea;
  30. color: #666666;
  31. .conditionTag {
  32. background-color: #ebebeb;
  33. }
  34. }
  35. // 是否可以选择
  36. &.select {
  37. padding-left: 40px;
  38. }
  39. // 优惠是否能使用
  40. &.disabled {
  41. opacity: 0.6;
  42. }
  43. &::before,
  44. &::after {
  45. position: absolute;
  46. width: 16px;
  47. height: 16px;
  48. border-radius: 50%;
  49. content: ' ';
  50. z-index: 1;
  51. top: 50%;
  52. background: var(--coupon-point);
  53. margin-top: -8px;
  54. }
  55. &:before {
  56. left: -8px;
  57. }
  58. &:after {
  59. right: -8px;
  60. }
  61. .top,
  62. .bottom {
  63. display: flex;
  64. align-items: center;
  65. }
  66. .price {
  67. font-size: 36px;
  68. font-weight: bold;
  69. line-height: 42px;
  70. width: 112px;
  71. font-family: PingFangSC-Regular, PingFang SC;
  72. .suffix {
  73. font-size: 24px;
  74. line-height: 33px;
  75. }
  76. .number {
  77. display: inline-block;
  78. min-width: 40px;
  79. text-align: center;
  80. }
  81. }
  82. .type {
  83. max-width: 165px;
  84. overflow: hidden;
  85. white-space: nowrap;
  86. text-overflow: ellipsis;
  87. font-size: 16px;
  88. font-weight: 500;
  89. line-height: 22px;
  90. }
  91. .bottom {
  92. padding-top: 5px;
  93. font-size: 12px;
  94. }
  95. .condition {
  96. width: 112px;
  97. }
  98. .conditionTag {
  99. background: #fbd0d1;
  100. border-radius: 8px;
  101. font-weight: 600;
  102. line-height: 17px;
  103. min-width: 80px;
  104. display: inline-block;
  105. text-align: center;
  106. }
  107. .iconUsed,
  108. .iconExpired {
  109. position: absolute;
  110. top: 0;
  111. right: 0;
  112. width: 54px;
  113. height: 41px;
  114. }
  115. .iconUsed {
  116. background: url('./images/icon_used.png') no-repeat center;
  117. background-size: contain;
  118. }
  119. .iconExpired {
  120. background: url('./images/icon_expired.png') no-repeat center;
  121. background-size: contain;
  122. }
  123. .img-icon {
  124. position: absolute;
  125. top: 9px;
  126. left: 9px;
  127. width: 22px;
  128. height: 22px;
  129. }
  130. }