index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .mediaBox {
  2. position: fixed;
  3. top: 0px;
  4. left: 0px;
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. width: 100vw;
  9. height: 100vh;
  10. display: flex;
  11. justify-content: center;
  12. background-color: rgba(0, 0, 0, 0.6);
  13. .poster {
  14. position: relative;
  15. margin-bottom: 120rpx;
  16. width: 646rpx;
  17. height: 959rpx;
  18. .close {
  19. position: absolute;
  20. width: 60rpx;
  21. height: 60rpx;
  22. top: -71rpx;
  23. right: -26rpx;
  24. }
  25. .img {
  26. width: 100%;
  27. height: 100%;
  28. border-radius: 20rpx;
  29. overflow: hidden;
  30. }
  31. .qrCode {
  32. position: absolute;
  33. left: 38rpx;
  34. bottom: 32rpx;
  35. width: 170rpx;
  36. height: 170rpx;
  37. }
  38. }
  39. .btns {
  40. position: absolute;
  41. bottom: 0;
  42. left: 0;
  43. width: 100%;
  44. display: flex;
  45. align-items: center;
  46. justify-content: space-between;
  47. box-sizing: border-box;
  48. padding: 25rpx 60rpx;
  49. padding-bottom: calc(env(safe-area-inset-bottom) + 25rpx);
  50. background-color: white;
  51. .btn {
  52. width: 275rpx;
  53. padding: 13rpx 0;
  54. text-align: center;
  55. font-size: 32rpx;
  56. color: #FFFFFF;
  57. background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
  58. box-shadow: 0rpx 6rpx 4rpx 0rpx rgba(0, 0, 0, 0.08);
  59. border-radius: 39rpx;
  60. }
  61. }
  62. .canvas {
  63. width: 646rpx;
  64. height: 959rpx;
  65. position: absolute;
  66. left: -9999rpx;
  67. top: -9999rpx;
  68. }
  69. }
  70. /* 转圈动画 */
  71. @keyframes falsh-identifier {
  72. 0% {
  73. transform: rotate(0deg) scale(0.7);
  74. }
  75. 50% {
  76. transform: rotate(180deg) scale(1);
  77. }
  78. 100% {
  79. transform: rotate(360deg) scale(0.7);
  80. }
  81. }
  82. @keyframes falsh-scale {
  83. 0% {
  84. transform: scale(1);
  85. }
  86. 50% {
  87. transform: scale(1.2);
  88. }
  89. 100% {
  90. transform: scale(1);
  91. }
  92. }