index.wxss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.35);
  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: 40rpx;
  34. bottom: 30rpx;
  35. width: 170rpx;
  36. height: 170rpx;
  37. border-radius: 50%;
  38. }
  39. .mediaBox .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. }
  52. .mediaBox .btns .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. .mediaBox .canvas {
  63. width: 646rpx;
  64. height: 959rpx;
  65. position: absolute;
  66. left: -9999rpx;
  67. top: -9999rpx;
  68. }
  69. /* 转圈动画 */
  70. @keyframes falsh-identifier {
  71. 0% {
  72. transform: rotate(0deg) scale(0.7);
  73. }
  74. 50% {
  75. transform: rotate(180deg) scale(1);
  76. }
  77. 100% {
  78. transform: rotate(360deg) scale(0.7);
  79. }
  80. }
  81. @keyframes falsh-scale {
  82. 0% {
  83. transform: scale(1);
  84. }
  85. 50% {
  86. transform: scale(1.2);
  87. }
  88. 100% {
  89. transform: scale(1);
  90. }
  91. }