coupon-buy.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. @font-face {
  2. font-family: "ysbth";
  3. src: url('ysbth.ttf') format('truetype');
  4. }
  5. ax-body {
  6. display: block;
  7. height: 100%;
  8. background: #F6FAFF;
  9. }
  10. .body {
  11. position: relative;
  12. z-index: 1;
  13. background: linear-gradient( 180deg, #6DEEED 0%, #C4FFFF 8%, #FFFFFF 37%, #F5F7FB 100%);
  14. padding: 0 20rpx 0 20rpx;
  15. }
  16. /* 页面背景 */
  17. .page-background {
  18. position: fixed;
  19. top: 0;
  20. left: 0;
  21. right: 0;
  22. z-index: 0;
  23. }
  24. .page-background image {
  25. display: block;
  26. width: 100%;
  27. /* transform: scaleY(-100%); */
  28. }
  29. /* 统计卡 */
  30. .sta-card {
  31. flex: 1;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. flex-direction: column;
  36. height: 78px;
  37. border-radius: 8px;
  38. background: #FFFFFF;
  39. position: relative;
  40. overflow: hidden;
  41. }
  42. .sta-card::before {
  43. content: '';
  44. display: block;
  45. position: absolute;
  46. top: 0;
  47. left: 0;
  48. right: 0;
  49. bottom: 0;
  50. box-shadow: 0 8px 8px #fff inset;
  51. background-color: transparent !important;
  52. }
  53. .sta-card+.sta-card {
  54. margin-left: 10px;
  55. }
  56. .sta-card .value {
  57. font-size: 24px;
  58. font-weight: bold;
  59. position: relative;
  60. z-index: 3;
  61. }
  62. .sta-card .name {
  63. font-size: 12px;
  64. color: #aaa;
  65. position: relative;
  66. z-index: 3;
  67. }
  68. .sta-card .bg {
  69. position: absolute;
  70. top: 0;
  71. right: 0;
  72. height: 100%;
  73. z-index: 2;
  74. }
  75. .overflow-payment {
  76. position: absolute;
  77. width: 176rpx;
  78. height: 40rpx;
  79. background: #FF4D3A;
  80. border-radius: 8rpx;
  81. font-size: 24rpx;
  82. color: #FFFFFF;
  83. text-align: center;
  84. top: 0;
  85. right: 0;
  86. z-index: 9999;
  87. }
  88. /* 卡片 */
  89. .card {
  90. border-radius: 16px;
  91. padding: 15px 0;
  92. margin-top: 10px;
  93. }
  94. .card .title {
  95. /* display: flex;
  96. align-items: flex-end;
  97. justify-content: space-between; */
  98. margin-bottom: 20px;
  99. font-weight: bold;
  100. }
  101. .title-text {
  102. font-weight: normal;
  103. font-size: 26rpx;
  104. color: #666;
  105. }
  106. .card .title .more {
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. font-weight: normal;
  111. font-size: 14px;
  112. color: #aaa;
  113. }
  114. .card .title .more .icon {
  115. margin-left: 5px;
  116. }
  117. /* 温馨提示 */
  118. .tips .li {
  119. font-size: 14px;
  120. color: #666;
  121. }
  122. .tips .li+.li {
  123. margin-top: 7px;
  124. }
  125. /* 优惠券 */
  126. .coupons {
  127. display: grid;
  128. grid-template-columns: 1fr 1fr 1fr;
  129. gap: 10px;
  130. }
  131. .coupons .item {
  132. --item-bg: #3eb6f8;
  133. --item-bg-active: #0093e4;
  134. --coupon-bg: #fff;
  135. --coupon-bg-active: #3ab8ff;
  136. --font-color: #3eb6f8;
  137. --font-color-active: #fff;
  138. padding: 5px;
  139. height: 150px;
  140. border-radius: 10px;
  141. background-color: var(--item-bg);
  142. color: var(--font-color);
  143. }
  144. .coupons .item .coupon {
  145. display: flex;
  146. flex-direction: column;
  147. width: 100%;
  148. height: 100%;
  149. overflow: hidden;
  150. border-radius: 10px;
  151. filter: drop-shadow(0 1px 6px rgba(102, 102, 102, 0.3));
  152. }
  153. .coupons .item .coupon .top {
  154. flex: 1;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. flex-direction: column;
  159. background-color: var(--coupon-bg);
  160. }
  161. .coupons .item .coupon .top .value {
  162. font-size: 36px;
  163. font-weight: bold;
  164. }
  165. .coupons .item .coupon .top .unit {
  166. font-size: 14px;
  167. }
  168. .coupons .item .coupon .bottom {
  169. text-align: center;
  170. font-size: 14px;
  171. background-color: var(--coupon-bg);
  172. padding: 10px;
  173. }
  174. .coupons .item .coupon .middle {
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. height: 10px;
  179. position: relative;
  180. overflow: hidden;
  181. }
  182. .coupons .item .coupon .middle::before {
  183. content: '';
  184. display: block;
  185. width: 50%;
  186. height: 10px;
  187. background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg) 50%);
  188. }
  189. .coupons .item .coupon .middle::after {
  190. content: '';
  191. display: block;
  192. width: 50%;
  193. height: 10px;
  194. background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg) 50%);
  195. }
  196. .coupons .item .coupon .middle .line {
  197. position: absolute;
  198. top: 50%;
  199. left: 10px;
  200. right: 10px;
  201. border-top: 1px dashed var(--font-color);
  202. }
  203. .coupons .item.active {
  204. background-color: var(--item-bg-active);
  205. color: var(--font-color-active);
  206. }
  207. .coupons .item.active .coupon .middle .line {
  208. border-color: var(--font-color-active);
  209. }
  210. .coupons .item.active .coupon .top,
  211. .coupons .item.active .coupon .bottom {
  212. background-color: var(--coupon-bg-active);
  213. }
  214. .coupons .item.active .coupon .middle::before {
  215. background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg-active) 50%);
  216. }
  217. .coupons .item.active .coupon .middle::after {
  218. background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg-active) 50%);
  219. }
  220. .new-coupons-box{
  221. display: grid;
  222. grid-template-columns: 1fr 1fr 1fr;
  223. gap: 10px;
  224. }
  225. .new-coupons {
  226. background: url('/static/img/not-coupons-bg.png');
  227. width: 220rpx;
  228. height: 136rpx;
  229. background-size: cover; /* 确保图片覆盖整个元素 */
  230. background-position: center;
  231. text-align: center;
  232. }
  233. .newCouponsActive{
  234. background: url('/static/img/coupons-bg.png');
  235. width: 220rpx;
  236. height: 136rpx;
  237. background-size: cover; /* 确保图片覆盖整个元素 */
  238. background-position: center;
  239. text-align: center;
  240. }
  241. .new-coupons-price{
  242. font-weight: bold;
  243. font-size: 24rpx;
  244. color: #2B303A;
  245. height: 74rpx;
  246. line-height: 74rpx;
  247. }
  248. .new-coupons-unit{
  249. font-size: 22rpx;
  250. font-weight: normal;
  251. }
  252. .new-coupons-text{
  253. font-weight: 400;
  254. font-size: 28rpx;
  255. color: #2B303A;
  256. font-family: 'ysbth';
  257. height: 56rpx;
  258. line-height: 56rpx;
  259. }
  260. .pay-type {
  261. display: flex;
  262. align-items: center;
  263. justify-content: space-between;
  264. }
  265. .pay-type .icon {
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. width: 20px;
  270. height: 20px;
  271. font-size: 14px;
  272. margin-right: 5px;
  273. border-radius: 100pc;
  274. background-color: #04BE02;
  275. color: #fff;
  276. }
  277. .footer {
  278. position: fixed;
  279. left: 10px;
  280. right: 10px;
  281. bottom: 0;
  282. }
  283. .pay {
  284. display: flex;
  285. align-items: center;
  286. justify-content: center;
  287. height: 50px;
  288. font-size: 14px;
  289. margin-top: 20px;
  290. border-radius: 8px;
  291. color: #2B303A;
  292. background: linear-gradient(to right, #8FF8FB, #47AEFF);
  293. }
  294. .pay::after {
  295. content: unset;
  296. display: none;
  297. }
  298. .pay[disabled] {
  299. text-shadow: unset;
  300. background: #ddd;
  301. }
  302. .coupon-item {
  303. --item-color: #D6F3FF;
  304. font-family: 'ysbth';
  305. color: #2B303A;
  306. background-color: var(--item-color);
  307. border-radius: 8px;
  308. text-align: center;
  309. padding: 0 8px;
  310. position: relative;
  311. margin-bottom: 10px;
  312. }
  313. .coupon-item .ticket {
  314. background-color: #F2F8FF;
  315. border-radius: 8px;
  316. margin-top: -10px;
  317. box-shadow: 0 -1px 6px rgba(122, 168, 222, 0.1);
  318. }
  319. .coupon-item .ticket .value {
  320. display: flex;
  321. align-items: flex-end;
  322. justify-content: center;
  323. padding-top: 10px;
  324. color: #2B303A;
  325. }
  326. .coupon-item .ticket .value .val {
  327. display: inline-block;
  328. font-size: 18px;
  329. font-weight: bold;
  330. transform: translateY(2px);
  331. margin-right: 2px;
  332. }
  333. .coupon-item .ticket .value .unit {
  334. font-size: 12px;
  335. }
  336. .coupon-item .ticket .line-wrap {
  337. display: flex;
  338. align-items: center;
  339. position: relative;
  340. height: 16px;
  341. }
  342. .coupon-item .ticket .line-wrap .line {
  343. flex: 1;
  344. height: 1px;
  345. border-top: 1px dashed #aaa;
  346. }
  347. .coupon-item .ticket .line-wrap .circle {
  348. width: 16px;
  349. height: 16px;
  350. border-radius: 100%;
  351. background-color: var(--item-color);
  352. }
  353. .coupon-item .ticket .line-wrap view:first-child {
  354. transform: translateX(-50%);
  355. }
  356. .coupon-item .ticket .line-wrap view:last-child {
  357. transform: translateX(50%);
  358. }
  359. .coupon-item .ticket .margin {
  360. height: 15px;
  361. }
  362. .coupon-item .trapezium {
  363. width: 100%;
  364. height: 10px;
  365. position: relative;
  366. overflow: hidden;
  367. margin-top: -10px;
  368. }
  369. .coupon-item .trapezium::after {
  370. content: '';
  371. display: block;
  372. width: 50%;
  373. height: 10px;
  374. position: absolute;
  375. left: 0;
  376. bottom: 0;
  377. transform: skewX(-15deg) translateX(0.3em);
  378. border-radius: 10px 0 0 0;
  379. background-color: var(--item-color);
  380. }
  381. .coupon-item .trapezium::before {
  382. content: '';
  383. display: block;
  384. width: 50%;
  385. height: 10px;
  386. position: absolute;
  387. right: 0;
  388. bottom: 0;
  389. transform: skewX(15deg) translateX(-0.3em);
  390. border-radius: 0 10px 0 0;
  391. background-color: var(--item-color);
  392. }
  393. .coupon-item .text {
  394. margin-top: -8px;
  395. position: relative;
  396. z-index: 3;
  397. }
  398. .coupon-item.active {
  399. --item-color: #47AEFF !important;
  400. }
  401. .coupon-item.active .ticket .value {
  402. color: #47AEFF;
  403. }
  404. .coupon-item.active .text {
  405. color: #fff;
  406. }
  407. .payment-tips {
  408. width: 702rpx;
  409. height: 72rpx;
  410. background: #FFF6E8;
  411. border-radius: 16rpx;
  412. font-size: 24rpx;
  413. color: #FAB04D;
  414. line-height: 72rpx;
  415. text-align: center;
  416. }