coupons.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ax-body {
  2. display: block;
  3. height: 100%;
  4. background: #F5F7FB;
  5. }
  6. ax-body .ax-custom-title {
  7. background-color: #fff !important;
  8. }
  9. /* 选项卡start */
  10. .tabs-box {
  11. z-index: 9999;
  12. position: fixed;
  13. width: 100%;
  14. left: 0;
  15. height: 100rpx;
  16. background-color: #fff;
  17. display: flex;
  18. align-items: center;
  19. text-align: center;
  20. gap: 20rpx;
  21. }
  22. .item-tabs {
  23. flex: 1;
  24. height: 80rpx;
  25. line-height: 80rpx;
  26. position: relative;
  27. color: #B1B1B1;
  28. font-size: 28rpx;
  29. }
  30. .item-tabs:after {
  31. content: '';
  32. position: absolute;
  33. left: 50%;
  34. /* 水平起点居中 */
  35. -webkit-transform: translateX(-50%);
  36. transform: translateX(-50%);
  37. /* 向左偏移自身50%宽度,实现水平居中 */
  38. bottom: 0;
  39. width: 0;
  40. height: 8rpx;
  41. border-radius: 10rpx;
  42. background-color: #3EB6F8;
  43. opacity: 0;
  44. transition: opacity 0.5s;
  45. transition: width 0.3s;
  46. }
  47. .item-tabs.active {
  48. color: #2B303A;
  49. font-weight: bold;
  50. }
  51. .item-tabs.active:after {
  52. width: 48rpx;
  53. opacity: 1;
  54. }
  55. /* 选项卡end */
  56. .list-body {
  57. }
  58. .coupons-list-box {
  59. margin-top: 20rpx;
  60. position: relative;
  61. overflow: hidden;
  62. height: 196rpx;
  63. width: 702rpx;
  64. }
  65. .coupons-list-box .coupons-bg-img {
  66. position: absolute;
  67. height: 196rpx;
  68. width: 100%;
  69. }
  70. .coupons-content-box {
  71. position: absolute;
  72. display: flex;
  73. height: 196rpx;
  74. }
  75. .coupons-content-box .coupons-left {
  76. margin-top: 24rpx;
  77. width: 180rpx;
  78. text-align: center;
  79. margin-left: 14rpx;
  80. }
  81. .left-price {
  82. font-weight: 800;
  83. font-size: 50rpx;
  84. color: #FFFFFF;
  85. }
  86. .left-price text {
  87. font-size: 28rpx;
  88. }
  89. .left-rules {
  90. height: 46rpx;
  91. line-height: 46rpx;
  92. margin-top: 20rpx;
  93. background-color: #fff;
  94. border-radius: 24rpx;
  95. font-size: 24rpx;
  96. color: #FF6457;
  97. text-align: center;
  98. }
  99. .coupons-center {
  100. text-align: center;
  101. margin-left: 30rpx;
  102. margin-top: 24rpx;
  103. }
  104. .coupons-title {
  105. font-weight: 800;
  106. font-size: 28rpx;
  107. color: #222222;
  108. }
  109. .coupons-valid {
  110. margin-top: 16rpx;
  111. font-size: 24rpx;
  112. color: #AAAAAA;
  113. }
  114. .coupons-range {
  115. margin-top: 16rpx;
  116. font-size: 24rpx;
  117. color: #222222;
  118. }
  119. .coupons-right {
  120. margin-top: 58rpx;
  121. margin-left:50rpx;
  122. }
  123. .coupons-dayrules {
  124. font-size: 20rpx;
  125. color: #AAAAAA;
  126. }
  127. .coupons-getbtn {
  128. margin-top:22rpx;
  129. height: 44rpx;
  130. width: 136rpx;
  131. text-align: center;
  132. line-height: 44rpx;
  133. background: #FF6457;
  134. border-radius: 22rpx;
  135. font-size: 24rpx;
  136. color: #FFFFFF;
  137. }
  138. .ribbon {
  139. width: 160rpx;
  140. height: 30rpx;
  141. background: #FF6457;
  142. position: absolute;
  143. right: -44rpx;
  144. top: 20rpx;
  145. -webkit-transform: rotateZ(45deg);
  146. transform: rotateZ(45deg);
  147. text-align: center;
  148. color: #fff;
  149. font-size: 20rpx;
  150. }