index.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .wr-coupon {
  2. display: flex;
  3. background-image: url('https://tdesign.gtimg.com/miniprogram/template/retail/coupon/coupon-bg-nocorners.png');
  4. background-size: 100% 100%;
  5. background-repeat: no-repeat;
  6. position: relative;
  7. margin-bottom: 24rpx;
  8. overflow: hidden;
  9. }
  10. .theme-weak.wr-coupon {
  11. background-image: url('https://tdesign.gtimg.com/miniprogram/template/retail/coupon/coupon-bg-grey2.png');
  12. }
  13. .wr-coupon__left {
  14. width: 200rpx;
  15. height: 180rpx;
  16. display: flex;
  17. flex-direction: column;
  18. justify-content: center;
  19. text-align: center;
  20. color: #fa4126;
  21. overflow: hidden;
  22. position: relative;
  23. }
  24. .theme-weak .wr-coupon__left {
  25. color: #333;
  26. }
  27. .wr-coupon__left--value {
  28. font-size: 64rpx;
  29. line-height: 88rpx;
  30. font-weight: bold;
  31. font-family: 'DIN Alternate', cursive;
  32. }
  33. .wr-coupon__left--value-int {
  34. font-size: 48rpx;
  35. line-height: 88rpx;
  36. }
  37. .wr-coupon__left--value-decimal {
  38. font-size: 36rpx;
  39. line-height: 48rpx;
  40. }
  41. .wr-coupon__left--image {
  42. width: 128rpx;
  43. height: 128rpx;
  44. border-radius: 8px;
  45. margin-top: 30rpx;
  46. }
  47. .wr-coupon__left--unit {
  48. font-size: 24rpx;
  49. line-height: 32rpx;
  50. }
  51. .wr-coupon__left--desc {
  52. font-size: 24rpx;
  53. line-height: 32rpx;
  54. color: #fa4126;
  55. }
  56. .theme-weak .wr-coupon__left--desc {
  57. color: #333;
  58. }
  59. .wr-coupon__right {
  60. flex-grow: 1;
  61. padding: 0 20rpx;
  62. height: 180rpx;
  63. box-sizing: border-box;
  64. overflow: hidden;
  65. display: flex;
  66. align-items: center;
  67. }
  68. .wr-coupon__right--title {
  69. display: flex;
  70. -webkit-display: flex;
  71. flex-direction: column;
  72. align-items: flex-start;
  73. color: #999999;
  74. font-size: 24rpx;
  75. flex: 1;
  76. }
  77. .wr-coupon__right--title .coupon-title {
  78. max-width: 320rpx;
  79. color: #333333;
  80. font-size: 28rpx;
  81. line-height: 40rpx;
  82. font-weight: bold;
  83. display: -webkit-box;
  84. -webkit-line-clamp: 1;
  85. -webkit-box-orient: vertical;
  86. overflow: hidden;
  87. white-space: normal;
  88. }
  89. .wr-coupon__right--title .coupon-time {
  90. margin-top: 16rpx;
  91. /* // letter-spacing: -0.05em; */
  92. }
  93. .wr-coupon__right--title .coupon-desc {
  94. margin-top: 8rpx;
  95. }
  96. .wr-coupon__right--title .coupon-arrow {
  97. font-size: 22rpx;
  98. }
  99. .wr-coupon__right--oper {
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. }
  104. .wr-coupon__mask {
  105. width: 702rpx;
  106. height: 182rpx;
  107. position: absolute;
  108. top: 0;
  109. left: 0;
  110. background-color: #ffffff;
  111. opacity: 0.5;
  112. }
  113. .wr-coupon__tag {
  114. position: absolute;
  115. top: 8px;
  116. right: -24rpx;
  117. text-align: center;
  118. width: 106rpx;
  119. height: 28rpx;
  120. opacity: 0.9;
  121. font-size: 20rpx;
  122. line-height: 28rpx;
  123. color: #fa4126;
  124. border: 0.5px solid #fa4126;
  125. box-sizing: border-box;
  126. transform: rotate(45deg);
  127. }
  128. .wr-coupon__seal {
  129. width: 128rpx;
  130. height: 128rpx;
  131. position: absolute;
  132. top: 0;
  133. right: 0;
  134. background-size: 100% 100%;
  135. }
  136. .wr-coupon__seal.seal-useless {
  137. background-image: url('https://tdesign.gtimg.com/miniprogram/template/retail/coupon/seal-used.png');
  138. }
  139. .wr-coupon__seal.seal-disabled {
  140. background-image: url('https://tdesign.gtimg.com/miniprogram/template/retail/coupon/coupon-expired.png');
  141. }