coupons.css 2.4 KB

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