redpacket.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. @keyframes futop {
  2. 0% {
  3. top: -120rpx;
  4. }
  5. 100% {
  6. top: -80rpx;
  7. }
  8. }
  9. @keyframes red {
  10. 0% {
  11. transform: rotate(-20deg);
  12. }
  13. 100% {
  14. transform: rotate(20deg);
  15. }
  16. }
  17. @keyframes dog {
  18. 0% {
  19. transform: scale(1.2) rotate(-20deg);
  20. }
  21. 5% {
  22. transform: scale(1);
  23. }
  24. 60% {
  25. transform: scale(1);
  26. }
  27. 65% {
  28. transform: scale(1.2) rotate(-20deg);
  29. }
  30. 70% {
  31. transform: scale(1);
  32. }
  33. 75% {
  34. transform: scale(1.2) rotate(-20deg);
  35. }
  36. 80% {
  37. transform: scale(1);
  38. }
  39. 100% {
  40. transform: scale(1);
  41. }
  42. }
  43. .bg {
  44. position: relative;
  45. width: 100%;
  46. min-height: 100%;
  47. background-color: #e8343f;
  48. padding-bottom: 43rpx;
  49. }
  50. button::afrer {
  51. border: 0;
  52. }
  53. .button {
  54. border: 0;
  55. margin: 0;
  56. padding: 0;
  57. background: 0;
  58. position: static;
  59. }
  60. .red_top {
  61. position: relative;
  62. width: 750rpx;
  63. height: 478rpx;
  64. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/bg.jpg');
  65. background-size: 100% 100%;
  66. }
  67. .red_top_fu {
  68. position: absolute;
  69. left: 94rpx;
  70. top: -100rpx;
  71. width: 562rpx;
  72. height: 562rpx;
  73. display: block;
  74. z-index: 1;
  75. animation: futop 1s ease-in-out infinite alternate;
  76. }
  77. .red_rule {
  78. position: absolute;
  79. top: 21rpx;
  80. right: 23rpx;
  81. width: 92rpx;
  82. height: 35rpx;
  83. font-size: 26rpx;
  84. color: #390707;
  85. text-align: center;
  86. line-height: 35rpx;
  87. border-radius: 12rpx;
  88. background: linear-gradient(#f7c775, #ffdc98);
  89. }
  90. .red_price {
  91. position: absolute;
  92. left: 174rpx;
  93. top: 316rpx;
  94. width: 403rpx;
  95. height: 63rpx;
  96. text-align: center;
  97. line-height: 63rpx;
  98. color: #e8042a;
  99. font-size: 26rpx;
  100. font-weight: bold;
  101. z-index: 2;
  102. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/topprice.png');
  103. background-size: 100% 100%;
  104. }
  105. .red_btnBg {
  106. position: relative;
  107. width: 619rpx;
  108. height: 68rpx;
  109. margin: 10rpx auto 0;
  110. }
  111. .red_btnLeft {
  112. position: absolute;
  113. left: 0;
  114. top: 0;
  115. width: 142rpx;
  116. height: 67rpx;
  117. border: 1rpx solid #e6be7a;
  118. border-radius: 8rpx;
  119. }
  120. .btnLeft_form {
  121. display: block;
  122. width: 142rpx;
  123. height: 67rpx;
  124. }
  125. .red_btnRight {
  126. position: absolute;
  127. right: 0;
  128. top: 0;
  129. width: 461rpx;
  130. height: 67rpx;
  131. border: 1rpx solid #e6be7a;
  132. border-radius: 8rpx;
  133. }
  134. .red_btn {
  135. width: 134rpx;
  136. height: 59rpx;
  137. margin: 4rpx auto 0;
  138. background: linear-gradient(#ffdc97, #fcca71);
  139. color: #eb0d2b;
  140. text-align: center;
  141. line-height: 59rpx;
  142. font-size: 27rpx;
  143. color: #e70529;
  144. font-weight: bold;
  145. border-radius: 5rpx;
  146. }
  147. .send_btn {
  148. position: relative;
  149. width: 453rpx;
  150. height: 59rpx;
  151. margin: 4rpx auto 0;
  152. background: linear-gradient(#fff232, #ff9711);
  153. color: #eb0d2b;
  154. text-align: center;
  155. line-height: 59rpx;
  156. font-size: 27rpx;
  157. color: #eb0d2b;
  158. font-weight: bold;
  159. border-radius: 5rpx;
  160. }
  161. .red_growBg {
  162. position: relative;
  163. width: 619rpx;
  164. height: 129rpx;
  165. background-color: #fff;
  166. margin: 25rpx auto 0;
  167. }
  168. .red_growBorder {
  169. position: absolute;
  170. width: 28rpx;
  171. height: 29rpx;
  172. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/border.png');
  173. background-size: 100% 100%;
  174. }
  175. .red_growBorder_left {
  176. left: 5rpx;
  177. top: 5rpx;
  178. }
  179. .red_growBorder_right {
  180. right: 5rpx;
  181. top: 5rpx;
  182. transform: rotate(90deg);
  183. }
  184. .red_growBorder_top {
  185. right: 5rpx;
  186. bottom: 5rpx;
  187. transform: rotate(180deg);
  188. }
  189. .red_growBorder_bottom {
  190. left: 5rpx;
  191. bottom: 5rpx;
  192. transform: rotate(270deg);
  193. }
  194. .red_growText {
  195. line-height: 129rpx;
  196. float: left;
  197. font-size: 30rpx;
  198. color: #e8042a;
  199. padding-left: 30rpx;
  200. }
  201. .red_wang {
  202. display: inline-block;
  203. position: relative;
  204. animation: dog 2s ease-in-out infinite;
  205. }
  206. .red_gorw_price {
  207. line-height: 129rpx;
  208. float: right;
  209. font-size: 58rpx;
  210. color: #e8042a;
  211. padding-right: 50rpx;
  212. letter-spacing: -1rpx;
  213. }
  214. .red_yuan {
  215. font-size: 36rpx;
  216. }
  217. .red_friendBg {
  218. position: relative;
  219. width: 603rpx;
  220. height: 574rpx;
  221. background-color: #fff;
  222. margin: 17rpx auto 0;
  223. padding: 8rpx;
  224. }
  225. .red_friend {
  226. position: relative;
  227. border: 2rpx solid #e6be7a;
  228. height: 566rpx;
  229. padding-left: 26rpx;
  230. padding-right: 26rpx;
  231. }
  232. .red_friend_title {
  233. color: #737373;
  234. font-size: 26rpx;
  235. text-align: center;
  236. height: 64rpx;
  237. line-height: 64rpx;
  238. border-bottom: 1rpx solid #e6be7a;
  239. }
  240. .red_friend_line {
  241. height: 79rpx;
  242. border-bottom: 1rpx solid #e6be7a;
  243. }
  244. .red_friend_head {
  245. width: 49rpx;
  246. height: 49rpx;
  247. border: 1rpx solid #e7c281;
  248. float: left;
  249. margin-left: 10rpx;
  250. margin-top: 13rpx;
  251. border-radius: 100%;
  252. }
  253. .red_friend_left {
  254. float: left;
  255. padding-left: 10rpx;
  256. height: 49rpx;
  257. }
  258. .red_friend_num {
  259. padding-top: 16rpx;
  260. color: #737373;
  261. font-size: 20rpx;
  262. line-height: 24rpx;
  263. }
  264. .red_friend_name {
  265. color: #737373;
  266. font-size: 20rpx;
  267. width: 200rpx;
  268. }
  269. .red_friend_price {
  270. float: right;
  271. height: 79rpx;
  272. line-height: 79rpx;
  273. color: #e8042a;
  274. font-size: 23rpx;
  275. }
  276. .red_friend_price_black {
  277. float: right;
  278. height: 79rpx;
  279. line-height: 79rpx;
  280. color: #737373;
  281. font-size: 23rpx;
  282. }
  283. .red_friend_big {
  284. width: 93rpx;
  285. height: 33rpx;
  286. background-color: #e8042a;
  287. float: right;
  288. margin-top: 24rpx;
  289. border-radius: 14rpx;
  290. font-size: 22rpx;
  291. font-weight: bold;
  292. text-align: center;
  293. line-height: 33rpx;
  294. color: #fff;
  295. margin-right: 7rpx;
  296. }
  297. .red_friend_fire {
  298. width: 110rpx;
  299. height: 33rpx;
  300. background-color: #e8042a;
  301. float: right;
  302. margin-top: 24rpx;
  303. border-radius: 14rpx;
  304. font-size: 22rpx;
  305. font-weight: bold;
  306. text-align: center;
  307. line-height: 33rpx;
  308. color: #fff;
  309. margin-right: 7rpx;
  310. }
  311. .red_page_bg {
  312. position: absolute;
  313. width: 100%;
  314. height: 96rpx;
  315. left: 0;
  316. bottom: 0;
  317. }
  318. .red_fire {
  319. width: 32rpx;
  320. height: 26rpx;
  321. margin-left: 5rpx;
  322. margin-top: 4rpx;
  323. float: left;
  324. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/fireworks.png');
  325. background-size: 100% 100%;
  326. }
  327. .red_fire_text {
  328. margin-right: 10rpx;
  329. float: right;
  330. }
  331. .red_page {
  332. width: 216rpx;
  333. height: 96rpx;
  334. margin: 0 auto;
  335. }
  336. .red_page_block {
  337. position: relative;
  338. width: 52rpx;
  339. height: 52rpx;
  340. float: left;
  341. margin-top: 23rpx;
  342. background-color: #e6be7a;
  343. border-radius: 4rpx;
  344. }
  345. .red_page_text {
  346. float: left;
  347. width: 112rpx;
  348. height: 96rpx;
  349. line-height: 96rpx;
  350. color: #737373;
  351. font-size: 28rpx;
  352. text-align: center;
  353. }
  354. .red_page_left {
  355. position: relative;
  356. left: -14rpx;
  357. top: 13rpx;
  358. border-left: 26rpx solid rgba(0,0,0,0);
  359. border-right: 26rpx solid #fff;
  360. border-top: 13rpx solid rgba(0,0,0,0);
  361. border-bottom: 13rpx solid rgba(0,0,0,0);
  362. }
  363. .red_page_right {
  364. position: relative;
  365. left: 14rpx;
  366. top: 13rpx;
  367. border-left: 26rpx solid #fff;
  368. border-right: 26rpx solid rgba(0,0,0,0);
  369. border-top: 13rpx solid rgba(0,0,0,0);
  370. border-bottom: 13rpx solid rgba(0,0,0,0);
  371. }
  372. .red_rankBg {
  373. position: relative;
  374. width: 603rpx;
  375. height: 574rpx;
  376. background-color: #fff;
  377. margin: 66rpx auto 0;
  378. padding: 8rpx;
  379. }
  380. .red_rank {
  381. position: relative;
  382. border: 2rpx solid #e8343f;
  383. height: 566rpx;
  384. padding-left: 26rpx;
  385. padding-right: 26rpx;
  386. }
  387. .red_rank_title {
  388. color: #737373;
  389. font-size: 26rpx;
  390. text-align: center;
  391. height: 64rpx;
  392. line-height: 64rpx;
  393. border-bottom: 1rpx solid #e7052b;
  394. }
  395. .red_rank_line {
  396. height: 79rpx;
  397. border-bottom: 1rpx solid #e7052b;
  398. }
  399. .red_rank_head {
  400. width: 49rpx;
  401. height: 49rpx;
  402. border: 1rpx solid #e7052b;
  403. float: left;
  404. margin-left: 10rpx;
  405. margin-top: 13rpx;
  406. border-radius: 100%;
  407. }
  408. .red_page_rank_block {
  409. position: relative;
  410. width: 52rpx;
  411. height: 52rpx;
  412. float: left;
  413. margin-top: 23rpx;
  414. background-color: #e7052b;
  415. border-radius: 4rpx;
  416. }
  417. .red_rank_textBg {
  418. position: absolute;
  419. top: -45rpx;
  420. left: 100rpx;
  421. border-radius: 75rpx;
  422. width: 388rpx;
  423. height: 75rpx;
  424. background-color: #fdce79;
  425. }
  426. .red_rank_text {
  427. width: 370rpx;
  428. height: 60rpx;
  429. border: 2rpx solid #fff;
  430. margin: 6rpx auto 0;
  431. border-radius: 60rpx;
  432. text-align: center;
  433. line-height: 60rpx;
  434. color: #e8042a;
  435. font-size: 27rpx;
  436. font-weight: bold;
  437. }
  438. .redpacket_bg {
  439. position: fixed;
  440. z-index: 20;
  441. left: 0;
  442. top: 0;
  443. width: 100%;
  444. height: 100%;
  445. background-color: rgba(0,0,0,0.5);
  446. }
  447. .redpacket_close {
  448. position: absolute;
  449. left: 104rpx;
  450. top: 180rpx;
  451. width: 542rpx;
  452. height: 703rpx;
  453. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/close.png');
  454. background-size: 100% 100%;
  455. }
  456. .chai_from {
  457. position: absolute;
  458. left: 50%;
  459. top: 95rpx;
  460. margin-left: -92rpx;
  461. width: 1rpx;
  462. height: 1rpx;
  463. display: block;
  464. border: 0;
  465. }
  466. .redpacket_chai {
  467. width: 183rpx;
  468. height: 181rpx;
  469. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/chai.png');
  470. background-size: 100% 100%;
  471. }
  472. .redpacket_open {
  473. position: absolute;
  474. left: 104rpx;
  475. top: 25rpx;
  476. width: 542rpx;
  477. height: 860rpx;
  478. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/open.png');
  479. background-size: 100% 100%;
  480. }
  481. .redpacket_open_block {
  482. margin: 95rpx auto 0;
  483. width: 542rpx;
  484. height: 336rpx;
  485. }
  486. .redpacket_open_text {
  487. font-size: 25rpx;
  488. color: #cd5216;
  489. padding-top: 75rpx;
  490. text-align: center;
  491. }
  492. .redpacket_open_price {
  493. font-size: 80rpx;
  494. color: #e50429;
  495. text-align: center;
  496. font-weight: bold;
  497. }
  498. .redpacket_open_yuan {
  499. font-size: 46rpx;
  500. }
  501. .open_ad {
  502. padding-top: 290rpx;
  503. }
  504. .close_ad {
  505. padding-top: 16rpx;
  506. }
  507. .ad_headbg {
  508. position: relative;
  509. height: 160rpx;
  510. }
  511. .ad_head {
  512. width: 192rpx;
  513. height: 80rpx;
  514. margin: 0 auto;
  515. }
  516. .ad_head_left {
  517. float: left;
  518. width: 72rpx;
  519. height: 72rpx;
  520. border: 3rpx solid #e6be7a;
  521. border-radius: 100%;
  522. }
  523. .ad_head_right {
  524. float: right;
  525. width: 72rpx;
  526. height: 72rpx;
  527. border: 3rpx solid #e6be7a;
  528. border-radius: 100%;
  529. }
  530. .ad_head_center {
  531. float: left;
  532. width: 36rpx;
  533. height: 80rpx;
  534. line-height: 80rpx;
  535. text-align: center;
  536. font-size: 27rpx;
  537. color: #ffe09d;
  538. }
  539. .ad_text_bg {
  540. width: 542rpx;
  541. height: 28rpx;
  542. line-height: 28rpx;
  543. color: #ffe09d;
  544. font-size: 22rpx;
  545. overflow: hidden;
  546. }
  547. .ad_text_left {
  548. width: 248rpx;
  549. padding-right: 23rpx;
  550. float: left;
  551. text-align: right;
  552. }
  553. .ad_text_right {
  554. width: 251rpx;
  555. padding-left: 20rpx;
  556. float: right;
  557. }
  558. .ad_text {
  559. color: #ffe09d;
  560. font-size: 24rpx;
  561. text-align: center;
  562. height: 50rpx;
  563. line-height: 50rpx;
  564. }
  565. .ad_from {
  566. position: absolute;
  567. left: 50%;
  568. margin-left: -240rpx;
  569. top: 170rpx;
  570. width: 480rpx;
  571. height: 217rpx;
  572. }
  573. .ad_iamge_bg {
  574. width: 480rpx;
  575. height: 217rpx;
  576. }
  577. .ad-iamge {
  578. width: 100%;
  579. height: 100%;
  580. }
  581. .close_red {
  582. position: absolute;
  583. left: 50%;
  584. margin-left: -23rpx;
  585. bottom: -90rpx;
  586. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/closepacket.png');
  587. width: 60rpx;
  588. height: 60rpx;
  589. background-size: 100% 100%;
  590. }
  591. .red_price_update {
  592. position: absolute;
  593. z-index: 10;
  594. right: 10rpx;
  595. top: 52rpx;
  596. width: 32rpx;
  597. height: 28rpx;
  598. background-size: 100% 100%;
  599. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/update.png');
  600. }
  601. .button_packet {
  602. position: absolute;
  603. left: 115rpx;
  604. top: 10rpx;
  605. background-image: url('https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/redpacket/red.png');
  606. width: 30rpx;
  607. height: 38rpx;
  608. background-size: 100% 100%;
  609. animation: red 0.5s ease-in-out infinite alternate;
  610. }