coupon.wxss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. page {
  2. background: #F9F9F9;
  3. }
  4. .tabs-radius {
  5. background: #fff;
  6. /* opacity: 0.8; */
  7. border-radius: 24rpx;
  8. }
  9. .tabs-wrap {
  10. padding: 0 30rpx;
  11. height: 120rpx;
  12. /* height: 96rpx; */
  13. /* margin-top: 16rpx; */
  14. /* opacity: 0.8; */
  15. background: #fff;
  16. /* justify-content: space-around; */
  17. justify-content: space-between;
  18. }
  19. .tabs-wrap .item {
  20. /* width: 33.33%; */
  21. height: 100%;
  22. font-size: 28rpx;
  23. color: #666666;
  24. position: relative;
  25. font-family: PingFangSC-Regular, PingFang SC;
  26. font-weight: 400;
  27. }
  28. .tabs-wrap .item.line::before {
  29. content: '';
  30. position: absolute;
  31. right: -80rpx;
  32. top: 26rpx;
  33. width: 2rpx;
  34. height: 44rpx;
  35. background-color: #EEEEEE;
  36. border-radius: 16rpx;
  37. }
  38. /* .tabs-wrap .item.active {
  39. font-family: PingFangSC-Semibold;
  40. font-size: 28rpx;
  41. color: #333;
  42. border-bottom: 6rpx solid #FA7D22;
  43. } */
  44. .tabs-wrap .item.active {
  45. font-family: PingFangSC-Medium, PingFang SC;
  46. font-weight: 500;
  47. color: #333333;
  48. }
  49. .tabs-wrap .item.active::before {
  50. content: '';
  51. position: absolute;
  52. top: 90rpx;
  53. width: 40rpx;
  54. height: 8rpx;
  55. background: linear-gradient(144deg, #FA7D22 0%, #FA4622 100%);
  56. border-radius: 4rpx;
  57. }
  58. .tabs-content {
  59. margin: 0 30rpx 40rpx;
  60. }
  61. .tabs-content .coupon-item {
  62. margin-top: 20rpx;
  63. display: block;
  64. }
  65. .tabs-content .item {
  66. margin: 20rpx 30rpx;
  67. /* background: #fff; */
  68. /* height: 172rpx; */
  69. border-radius: 8rpx;
  70. box-sizing: border-box;
  71. overflow: hidden;
  72. box-shadow: 0px 4rpx 20rpx 0px rgba(0, 0, 0, 0.06);
  73. }
  74. .tabs-content .item-left {
  75. width: 212rpx;
  76. height: 100%;
  77. /* background: #FF7676; */
  78. font-family: PingFangSC-Semibold;
  79. color: #FFFFFF;
  80. background-image: radial-gradient(circle at 0px 50%, #F9F9F9 15rpx, #F5849F 15rpx);
  81. }
  82. .tabs-content .item-left text {
  83. color: #fff;
  84. }
  85. .tabs-content .item-right {
  86. padding: 0 16rpx;
  87. color: #FFFFFF;
  88. }
  89. .tabs-content .item-right text {
  90. font-size: 28rpx;
  91. color: #000;
  92. }
  93. .tabs-content .item-right .item-btn {
  94. width: 122rpx;
  95. height: 54rpx;
  96. background: #FA7D22;
  97. border-radius: 27rpx;
  98. font-size: 28rpx;
  99. box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.06);
  100. }
  101. .tabs-content .item-right image {
  102. width: 136rpx;
  103. height: 96rpx;
  104. }
  105. .tabs-content .item-right .triangle {
  106. height: 0;
  107. font-size: 0;
  108. line-height: 0;
  109. border-style: solid;
  110. border-width: 8rpx 0px 8rpx 16rpx;
  111. border-color: transparent #FA7D22;
  112. margin-left: 12rpx;
  113. transition: all .3s;
  114. }
  115. .tabs-content .triangle.active {
  116. transform: rotate(90deg);
  117. }
  118. .tabs-content .item.current1 .item-left {
  119. background-image: radial-gradient(circle at 0px 50%, #F9F9F9 15rpx, #A4A4A4 15rpx);
  120. }
  121. .tabs-content .item.current1 .item-right text {
  122. color: #666666;
  123. }
  124. .tabs-content .item.current2 .item-left {
  125. background-image: radial-gradient(circle at 0px 50%, #F9F9F9 15rpx, #C8C8C8 15rpx);
  126. }
  127. .tabs-content .item.current2 .item-right text {
  128. color: #999999;
  129. }
  130. .tabs-content .item-btm {
  131. transition: all .3s;
  132. }
  133. .tabs-content .item-btm view {
  134. padding: 20rpx 28rpx;
  135. font-size: 28rpx;
  136. color: #666666;
  137. }
  138. /* 优惠券新页面 */
  139. .coupon-item {
  140. width: 690rpx;
  141. height: 220rpx;
  142. background: url('https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220822/%E7%BC%96%E7%BB%84%206%402x.png');
  143. background-size: cover;
  144. margin: 0 auto;
  145. margin-top: 20rpx;
  146. display: flex;
  147. }
  148. .coupon-left {
  149. width: 180rpx;
  150. height: 100%;
  151. position: relative;
  152. }
  153. .coupon-type {
  154. font-size: 12px;
  155. font-weight: 500;
  156. height: 36rpx;
  157. line-height: 36rpx;
  158. width: 92rpx;
  159. text-align: center;
  160. color: white;
  161. }
  162. .coupon-price {
  163. height: 182rpx;
  164. line-height: 170rpx;
  165. width: 100%;
  166. font-size: 44rpx;
  167. color: #FF3007;
  168. font-weight: 500;
  169. text-align: center;
  170. }
  171. .coupon-price text {
  172. color: #FF3007;
  173. }
  174. .coupon-right {
  175. flex: 1;
  176. height: 100%;
  177. padding-left: 30rpx;
  178. }
  179. .coupon-right-top {
  180. width: 100%;
  181. height: 140rpx;
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: space-around;
  185. }
  186. .coupon-title {
  187. font-size: 32rpx;
  188. font-weight: 600;
  189. white-space: nowrap;
  190. overflow: hidden;
  191. text-overflow: ellipsis;
  192. width: 400rpx;
  193. }
  194. .coupon-condition {
  195. font-size: 24rpx;
  196. color: #666666;
  197. white-space: nowrap;
  198. overflow: hidden;
  199. text-overflow: ellipsis;
  200. }
  201. .coupon-right-bottom {
  202. width: 100%;
  203. height: 80rpx;
  204. display: flex;
  205. align-items: center;
  206. }
  207. .coupon-time {
  208. font-size: 24rpx;
  209. color: #666666;
  210. width: 360rpx;
  211. white-space: nowrap;
  212. overflow: hidden;
  213. text-overflow: ellipsis;
  214. display: flex;
  215. align-items: center;
  216. }
  217. .coupon-time text {
  218. font-size: 24rpx;
  219. color: #666666;
  220. width: 360rpx;
  221. white-space: nowrap;
  222. overflow: hidden;
  223. text-overflow: ellipsis;
  224. }
  225. .finaTime {
  226. font-size: 24rpx;
  227. color: #FF3007;
  228. white-space: nowrap;
  229. overflow: hidden;
  230. text-overflow: ellipsis;
  231. font-size: 30rpx;
  232. }
  233. .coupon-redio {
  234. width: 104rpx;
  235. height: 50rpx;
  236. background-color: #fb7e1f;
  237. border-radius: 40rpx;
  238. text-align: center;
  239. line-height: 50rpx;
  240. color: white;
  241. font-size: 24rpx;
  242. }
  243. /* 使用过的优惠券 */
  244. .used .coupon-price {
  245. color: #979797;
  246. }
  247. .used .coupon-price text {
  248. color: #979797;
  249. }
  250. .used .coupon-title {
  251. color: #979797;
  252. }
  253. .used .coupon-condition {
  254. color: #979797;
  255. }
  256. .used .coupon-time {
  257. color: #979797;
  258. }
  259. .used .coupon-redio {
  260. background-color: #979797;
  261. }
  262. .used .bgc {
  263. background-color: #979797;
  264. width: 99rpx;
  265. height: 38rpx;
  266. border-radius: 12px 0px 12px 0px;
  267. }
  268. /* 历史记录 */
  269. .history {
  270. font-size: 28rpx;
  271. text-align: right;
  272. margin-right: 40rpx;
  273. color: #999999;
  274. background-color: #ffffff;
  275. width: 100%;
  276. }
  277. .history text {
  278. font-size: 28rpx;
  279. margin-right: 40rpx;
  280. color: #999999;
  281. }