couponItem.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. /* components/local/couponItem/couponItem.wxss */
  2. .flex {
  3. display: flex;
  4. }
  5. .flex-start {
  6. align-items: flex-start;
  7. justify-content: flex-start;
  8. }
  9. .flex-align-center {
  10. display: flex;
  11. align-items: center;
  12. }
  13. .flex-align-baseline {
  14. display: flex;
  15. align-items: baseline;
  16. }
  17. .flex-justify-center {
  18. display: flex;
  19. justify-content: center;
  20. }
  21. .flex-justify-space-around {
  22. display: flex;
  23. justify-content: space-around;
  24. }
  25. .flex-justify-space-between {
  26. display: flex;
  27. justify-content: space-between;
  28. }
  29. .flex-center {
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. }
  34. .flex-column {
  35. display: flex;
  36. flex-direction: column;
  37. /* align-items: flex-start;
  38. justify-content: flex-start; */
  39. }
  40. .flex1 {
  41. flex: 1;
  42. }
  43. .ellipsis {
  44. white-space: nowrap;
  45. overflow: hidden;
  46. text-overflow: ellipsis;
  47. }
  48. .component-coupon-item text {
  49. font-family: PingFangSC-Medium, PingFang SC;
  50. }
  51. .component-coupon-item.invalid {
  52. background: #E6E6E6 !important;
  53. }
  54. .component-coupon-item.invalid text {
  55. color: #B1B1B1 !important;
  56. }
  57. .component-coupon-item.invalid .coupon-item-mark {
  58. background: #B3B3B3 !important;
  59. }
  60. .component-coupon-item.invalid .coupon-item-btn1 {
  61. background: #B3B3B3 !important;
  62. }
  63. .component-coupon-item.invalid .coupon-item-line {
  64. border-top: 2rpx dashed #D7D7D7 !important;
  65. }
  66. .component-coupon-item .flex2 {
  67. flex: 2;
  68. }
  69. .component-coupon-item .flex-row {
  70. display: flex;
  71. flex-direction: row;
  72. }
  73. .component-coupon-item .flex-col {
  74. display: flex;
  75. flex-direction: column;
  76. }
  77. .component-coupon-item {
  78. position: relative;
  79. background: #FFF4E6;
  80. border-radius: 24rpx;
  81. overflow: hidden;
  82. padding: 20rpx 28rpx 12rpx;
  83. text-align: left;
  84. }
  85. .coupon-item-mark {
  86. position: absolute;
  87. top: 0;
  88. left: 0;
  89. height: 36rpx;
  90. background: #875617;
  91. border-radius: 24rpx 0rpx 24rpx 0rpx;
  92. text-align: center;
  93. line-height: 36rpx;
  94. font-size: 20rpx;
  95. font-weight: 500;
  96. color: #FFFFFF;
  97. padding: 0 16rpx;
  98. }
  99. .coupon-item-content {
  100. display: flex;
  101. flex-direction: row;
  102. align-items: center;
  103. justify-content: space-between;
  104. }
  105. .coupon-item-money {
  106. flex: 1.2;
  107. overflow: hidden;
  108. }
  109. .coupon-item-money text {
  110. font-family: PingFangSC-Medium, PingFang SC;
  111. font-weight: 500;
  112. color: #FF3007;
  113. }
  114. .coupon-item-money-detail {
  115. align-items: baseline;
  116. margin-top: 30rpx;
  117. }
  118. .coupon-item-money-detail.line2 {
  119. margin-top: 10rpx;
  120. }
  121. .coupon-item-money-detail.line2 .yuan {
  122. line-height: 70rpx;
  123. }
  124. .coupon-item-money-detail .currency {
  125. font-size: 28rpx;
  126. font-family: PingFangSC-Medium, PingFang SC;
  127. line-height: 40rpx;
  128. }
  129. .coupon-item-money-detail .yuan {
  130. font-size: 56rpx;
  131. font-family: PingFangSC-Medium, PingFang SC;
  132. line-height: 80rpx;
  133. }
  134. .coupon-item-money-detail .yuan-price{
  135. font-size: 42rpx;
  136. font-family: PingFangSC-Medium, PingFang SC;
  137. line-height: 80rpx;
  138. }
  139. .coupon-item-money-detail .fen {
  140. font-size: 28rpx;
  141. font-family: PingFangSC-Medium, PingFang SC;
  142. font-weight: 500;
  143. line-height: 40rpx;
  144. }
  145. .coupon-item-limit-text {
  146. font-size: 24rpx;
  147. font-family: PingFangSC-Regular, PingFang SC !important;
  148. font-weight: 400;
  149. color: #FF3007;
  150. line-height: 34rpx;
  151. }
  152. .coupon-item-btn1 {
  153. width: 104rpx;
  154. height: 50rpx;
  155. background: #FA7D22;
  156. border-radius: 25rpx;
  157. font-size: 24rpx;
  158. font-family: PingFang-SC-Medium, PingFang-SC;
  159. font-weight: 500;
  160. color: #FFFFFF;
  161. line-height: 50rpx;
  162. text-align: center;
  163. }
  164. .coupon-item-btn2 {
  165. width: 48rpx;
  166. height: 48rpx;
  167. font-family: PingFang-SC-Medium, PingFang-SC;
  168. font-weight: 500;
  169. line-height: 50rpx;
  170. text-align: right;
  171. }
  172. .coupon-item-btn2 image {
  173. width: 48rpx;
  174. height: 48rpx;
  175. }
  176. .coupon-item-title {
  177. margin-top: 10rpx;
  178. /* margin-left: 36rpx; */
  179. flex: 2.5;
  180. overflow: hidden;
  181. }
  182. .coupon-item-title text {
  183. width: 100%;
  184. height: 44rpx;
  185. line-height: 44rpx;
  186. font-size: 32rpx;
  187. font-weight: 500;
  188. color: #875617;
  189. margin-top: 16rpx;
  190. }
  191. .coupon-item-title .coupon-time {
  192. height: 34rpx;
  193. line-height: 34rpx;
  194. font-size: 24rpx;
  195. font-family: PingFangSC-Regular, PingFang SC;
  196. font-weight: 400;
  197. color: #875617;
  198. }
  199. .coupon-item-line {
  200. height: 2rpx;
  201. border: none;
  202. border-top: 2rpx dashed #FFDFB6;
  203. margin: 16rpx 0 10rpx;
  204. }
  205. .coupon-item-rules {
  206. justify-content: space-between;
  207. }
  208. .coupon-item-rules image {
  209. width: 48rpx;
  210. height: 48rpx;
  211. }
  212. .coupon-item-rules-text {
  213. height: 32rpx;
  214. line-height: 32rpx;
  215. font-size: 24rpx;
  216. font-family: PingFangSC-Regular, PingFang SC;
  217. font-weight: 400;
  218. color: #C38029;
  219. margin-right: 56rpx;
  220. }
  221. .coupon-item-rules-text.rules-show {
  222. height: auto;
  223. margin-top: 8rpx;
  224. }
  225. .coupon-item-status-icon {
  226. width: 144rpx;
  227. height: 144rpx;
  228. position: absolute;
  229. top: 36rpx;
  230. right: 28rpx;
  231. }