coupons.css 3.0 KB

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