coupons.wxss 3.1 KB

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