index.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. .page-wrap {
  2. padding: 82.42rpx 0 96.15rpx;
  3. }
  4. .tabs-panel {
  5. position: fixed;
  6. left: 0;
  7. top: 0;
  8. right: 0;
  9. height: 82.42rpx;
  10. background: #fff;
  11. display: flex;
  12. padding: 0 41.21rpx;
  13. z-index: 1;
  14. &::before,
  15. &::after {
  16. content: '';
  17. position: absolute;
  18. left: 0;
  19. right: 0;
  20. height: 1rpx;
  21. background: #e0e0e0;
  22. }
  23. &::before {
  24. top: 0;
  25. }
  26. &::after {
  27. bottom: 0;
  28. }
  29. .item {
  30. padding: 0 9.62rpx;
  31. text-align: center;
  32. font-size: 27.47rpx;
  33. color: #999;
  34. line-height: 82.42rpx;
  35. position: relative;
  36. & + .item {
  37. margin-left: 27.47rpx;
  38. }
  39. }
  40. .active {
  41. color: #00bcd2;
  42. &::after {
  43. content: '';
  44. position: absolute;
  45. left: 0%;
  46. right: 0%;
  47. bottom: 0%;
  48. height: 5.49rpx;
  49. background: #00bcd2;
  50. z-index: 1;
  51. }
  52. }
  53. }
  54. .coupon-panel {
  55. .item {
  56. width: 708.79rpx;
  57. height: 192.31rpx;
  58. border-radius: 8.24rpx;
  59. position: relative;
  60. overflow: hidden;
  61. padding: 27.47rpx 233.52rpx 27.47rpx 41.21rpx;
  62. box-sizing: border-box;
  63. margin: 13.74rpx auto;
  64. &:before {
  65. content: '';
  66. position: absolute;
  67. left: 0;
  68. top: 0;
  69. width: 100%;
  70. height: 100%;
  71. background: #fff;
  72. -webkit-mask-image: radial-gradient(circle at 13.74rpx 50%, transparent 13.74rpx, red 13.74rpx);
  73. -webkit-mask-position: -13.74rpx;
  74. z-index: -1;
  75. }
  76. &::after {
  77. content: '';
  78. position: absolute;
  79. right: -27.47rpx;
  80. top: 0;
  81. height: 100%;
  82. width: 239.01rpx;
  83. background: #fe6e6d;
  84. -webkit-mask-image: radial-gradient(circle at 5rpx, transparent 6rpx, red 6rpx);
  85. -webkit-mask-position: -6rpx;
  86. -webkit-mask-size: 100% 19rpx;
  87. z-index: -1;
  88. }
  89. &.disabled::after {
  90. background: #ccc;
  91. }
  92. }
  93. .name {
  94. font-size: 30.22rpx;
  95. height: 68.68rpx;
  96. display: flex;
  97. align-items: center;
  98. margin-top: -14rpx;
  99. .text {
  100. flex: 1;
  101. width: 0;
  102. white-space: nowrap;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. }
  106. .price {
  107. line-height: 1;
  108. margin: -14rpx 10rpx 0 0;
  109. }
  110. }
  111. .desc {
  112. font-size: 24.73rpx;
  113. color: #999;
  114. white-space: nowrap;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. line-height: 1.3;
  118. }
  119. .side {
  120. position: absolute;
  121. right: 0;
  122. top: 0;
  123. height: 100%;
  124. width: 211.54rpx;
  125. display: flex;
  126. flex-direction: column;
  127. align-items: center;
  128. font-size: 21.98rpx;
  129. color: #fff;
  130. padding-top: 27.47rpx;
  131. }
  132. .price {
  133. font-size: 68.68rpx;
  134. &:before {
  135. content: '¥';
  136. font-size: 38.46rpx;
  137. }
  138. }
  139. .state-1 {
  140. width: 182.69rpx;
  141. height: 120.88rpx;
  142. margin-top: 13.74rpx;
  143. }
  144. .state-2 {
  145. width: 189.56rpx;
  146. height: 130.49rpx;
  147. margin-top: 8.24rpx;
  148. }
  149. }
  150. .foot-btn {
  151. position: fixed;
  152. left: 0;
  153. bottom: 0;
  154. width: 100%;
  155. height: 96.15rpx;
  156. background: #fff;
  157. font-size: 30.22rpx;
  158. color: #00bcd2;
  159. line-height: 96.15rpx;
  160. border: none;
  161. border-radius: 0;
  162. &:before {
  163. content: '';
  164. position: absolute;
  165. top: 0;
  166. left: 0;
  167. right: 0;
  168. height: 1rpx;
  169. background: #e0e0e0;
  170. }
  171. &::after {
  172. display: none;
  173. }
  174. }