index.wxss 1.6 KB

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