creatingVideo.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <view class="creating-video">
  3. <view class="container">
  4. <view class="dot">
  5. </view>
  6. <view class="pulse"></view>
  7. <view class="pulse1"></view>
  8. </view>
  9. <view class="loading-text">视频生成中……</view>
  10. <view class="progress-box">
  11. <progress :percent="50" show-info stroke-width="3" />
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. }
  20. },
  21. methods: {
  22. }
  23. }
  24. </script>
  25. <style scoped lang="scss">
  26. .creating-video {
  27. @keyframes warn {
  28. 0% {
  29. transform: scale(0.1);
  30. -webkit-transform: scale(0.1);
  31. opacity: 0.0;
  32. }
  33. 25% {
  34. transform: scale(0.25);
  35. -webkit-transform: scale(0.25);
  36. opacity: 0.1;
  37. }
  38. 50% {
  39. transform: scale(0.5);
  40. -webkit-transform: scale(0.5);
  41. opacity: 0.3;
  42. }
  43. 75% {
  44. transform: scale(0.6);
  45. -webkit-transform: scale(0.6);
  46. opacity: 0.5;
  47. }
  48. 100% {
  49. transform: scale(0.7);
  50. -webkit-transform: scale(0.7);
  51. opacity: 0.0;
  52. }
  53. }
  54. @keyframes warn1 {
  55. 0% {
  56. transform: scale(0.3);
  57. -webkit-transform: scale(0.3);
  58. opacity: 0.0;
  59. }
  60. 25% {
  61. transform: scale(0.3);
  62. -webkit-transform: scale(0.3);
  63. opacity: 0.1;
  64. }
  65. 50% {
  66. transform: scale(0.3);
  67. -webkit-transform: scale(0.3);
  68. opacity: 0.3;
  69. }
  70. 75% {
  71. transform: scale(0.4);
  72. -webkit-transform: scale(0.4);
  73. opacity: 0.5;
  74. }
  75. 100% {
  76. transform: scale(0.6);
  77. -webkit-transform: scale(0.6);
  78. opacity: 0.0;
  79. }
  80. }
  81. .container {
  82. position: relative;
  83. width: 100%;
  84. height: 300px;
  85. }
  86. .dot {
  87. position: absolute;
  88. margin: 0 auto;
  89. width: 150px;
  90. height: 150px;
  91. left: calc((100% - 150px) / 2);
  92. top: 80px;
  93. -webkit-border-radius: 50%;
  94. -moz-border-radius: 50%;
  95. background: rgba(189, 49, 36, 0.9);
  96. box-shadow: 1px 1px 5px #BD3124, 1px 1px 10px #BD3124, 1px 1px 15px #BD3124;
  97. border-radius: 50%;
  98. z-index: 2;
  99. color: #fff;
  100. text-align: center;
  101. line-height: 150px;
  102. font-size: 20px;
  103. }
  104. .pulse {
  105. position: absolute;
  106. width: 320px;
  107. height: 320px;
  108. left: calc((100% - 320px)/2);
  109. top: -5px;
  110. border: 6px solid rgba(222, 134, 143, 0.7);
  111. -webkit-border-radius: 50%;
  112. -moz-border-radius: 50%;
  113. border-radius: 50%;
  114. z-index: 1;
  115. opacity: 0;
  116. -webkit-animation: warn 2s linear;
  117. -moz-animation: warn 2s linear;
  118. animation: warn 2s linear;
  119. -webkit-animation-iteration-count: infinite;
  120. -moz-animation-iteration-count: infinite;
  121. animation-iteration-count: infinite;
  122. box-shadow: 1px 1px 30px rgba(222, 134, 143, 0.8);
  123. }
  124. .pulse1 {
  125. position: absolute;
  126. width: 320px;
  127. height: 320px;
  128. left: calc((100% - 320px)/2);
  129. top: -5px;
  130. border: 6px solid rgba(222, 134, 143, 0.9);
  131. -webkit-border-radius: 50%;
  132. -moz-border-radius: 50%;
  133. border-radius: 50%;
  134. z-index: 1;
  135. opacity: 0;
  136. -webkit-animation: warn1 2s linear;
  137. -moz-animation: warn1 2s linear;
  138. animation: warn1 2s linear;
  139. -webkit-animation-iteration-count: infinite;
  140. -moz-animation-iteration-count: infinite;
  141. animation-iteration-count: infinite;
  142. box-shadow: 1px 1px 30px rgba(222, 134, 143, 0.9);
  143. }
  144. .loading-text {
  145. width: 100%;
  146. text-align: center;
  147. font-size: 20px;
  148. }
  149. .progress-box {
  150. margin-top: 100px;
  151. padding: 0 20px;
  152. width: 100%;
  153. height: 50px;
  154. margin-bottom: 60rpx;
  155. /deep/ .uni-progress-inner-bar{
  156. background-color: #DE868F !important;
  157. }
  158. }
  159. }
  160. </style>