coupon-buy.css 7.0 KB

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