index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.35);
  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: 40rpx;
  34. bottom: 30rpx;
  35. width: 170rpx;
  36. height: 170rpx;
  37. border-radius: 50%;
  38. }
  39. }
  40. .btns {
  41. position: absolute;
  42. bottom: 0;
  43. left: 0;
  44. width: 100%;
  45. display: flex;
  46. align-items: center;
  47. justify-content: space-between;
  48. box-sizing: border-box;
  49. padding: 25rpx 60rpx;
  50. padding-bottom: calc(env(safe-area-inset-bottom) + 25rpx);
  51. background-color: white;
  52. .btn {
  53. width: 275rpx;
  54. padding: 13rpx 0;
  55. text-align: center;
  56. font-size: 32rpx;
  57. color: #FFFFFF;
  58. background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
  59. box-shadow: 0rpx 6rpx 4rpx 0rpx rgba(0, 0, 0, 0.08);
  60. border-radius: 39rpx;
  61. }
  62. }
  63. .canvas {
  64. width: 646rpx;
  65. height: 959rpx;
  66. position: absolute;
  67. left: -9999rpx;
  68. top: -9999rpx;
  69. }
  70. }
  71. /* 转圈动画 */
  72. @keyframes falsh-identifier {
  73. 0% {
  74. transform: rotate(0deg) scale(0.7);
  75. }
  76. 50% {
  77. transform: rotate(180deg) scale(1);
  78. }
  79. 100% {
  80. transform: rotate(360deg) scale(0.7);
  81. }
  82. }
  83. @keyframes falsh-scale {
  84. 0% {
  85. transform: scale(1);
  86. }
  87. 50% {
  88. transform: scale(1.2);
  89. }
  90. 100% {
  91. transform: scale(1);
  92. }
  93. }