load.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /* ==================
  2. 加载
  3. ==================== */
  4. .load {
  5. display: block;
  6. line-height: 3em;
  7. text-align: center;
  8. }
  9. .load::before {
  10. font-family: "icon";
  11. display: inline-block;
  12. margin-right: 6rpx;
  13. }
  14. .load.loading::before, .load.loading-none::before {
  15. content: "\e67a";
  16. animation: icon-spin 2s infinite linear;
  17. }
  18. .load.loading::after {
  19. content: "加载中...";
  20. }
  21. .load.over::before {
  22. content: "\e64a";
  23. }
  24. .load.over::after {
  25. content: "没有更多了";
  26. }
  27. .load.error::before {
  28. content: "\e658";
  29. }
  30. /*
  31. .load.error::after {
  32. content: "加载失败";
  33. }*/
  34. .load.notexist::before {
  35. content: "\e658";
  36. }
  37. .load.notexist::after {
  38. content: "数据不存在或者已删除";
  39. }
  40. .load.load-icon::before {
  41. font-size: 32rpx;
  42. }
  43. .load.load-icon::after {
  44. display: none;
  45. }
  46. .load.load-icon.over {
  47. display: none;
  48. }
  49. .load.load-modal {
  50. position: fixed;
  51. top: 0;
  52. right: 0;
  53. bottom: 140rpx;
  54. left: 0;
  55. margin: auto;
  56. width: 260rpx;
  57. height: 260rpx;
  58. background-color: var(--white);
  59. border-radius: 10rpx;
  60. box-shadow: 0 0 0rpx 2000rpx rgba(0, 0, 0, 0.5);
  61. display: flex;
  62. align-items: center;
  63. flex-direction: column;
  64. justify-content: center;
  65. font-size: 28rpx;
  66. z-index: 9999;
  67. line-height: 2.4em;
  68. }
  69. .load.load-modal [class*="icon-"] {
  70. font-size: 60rpx;
  71. }
  72. .load.load-modal image {
  73. width: 70rpx;
  74. height: 70rpx;
  75. }
  76. .load.load-modal::after {
  77. content: "";
  78. position: absolute;
  79. background-color: var(--white);
  80. border-radius: 50%;
  81. width: 200rpx;
  82. height: 200rpx;
  83. font-size: 10px;
  84. border-top: 6rpx solid rgba(0, 0, 0, 0.05);
  85. border-right: 6rpx solid rgba(0, 0, 0, 0.05);
  86. border-bottom: 6rpx solid rgba(0, 0, 0, 0.05);
  87. border-left: 6rpx solid var(--orange);
  88. animation: icon-spin 1s infinite linear;
  89. z-index: -1;
  90. }
  91. .load-progress {
  92. pointer-events: none;
  93. top: 0;
  94. position: fixed;
  95. width: 100%;
  96. left: 0;
  97. z-index: 2000;
  98. }
  99. .load-progress.hide {
  100. display: none;
  101. }
  102. .load-progress .load-progress-bar {
  103. position: relative;
  104. width: 100%;
  105. height: 4rpx;
  106. overflow: hidden;
  107. transition: all 200ms ease 0s;
  108. }
  109. .load-progress .load-progress-spinner {
  110. position: absolute;
  111. top: 10rpx;
  112. right: 10rpx;
  113. z-index: 2000;
  114. display: block;
  115. }
  116. .load-progress .load-progress-spinner::after {
  117. content: "";
  118. display: block;
  119. width: 24rpx;
  120. height: 24rpx;
  121. -webkit-box-sizing: border-box;
  122. box-sizing: border-box;
  123. border: solid 4rpx transparent;
  124. border-top-color: inherit;
  125. border-left-color: inherit;
  126. border-radius: 50%;
  127. -webkit-animation: load-progress-spinner 0.4s linear infinite;
  128. animation: load-progress-spinner 0.4s linear infinite;
  129. }
  130. @-webkit-keyframes load-progress-spinner {
  131. 0% {
  132. -webkit-transform: rotate(0);
  133. transform: rotate(0);
  134. }
  135. 100% {
  136. -webkit-transform: rotate(360deg);
  137. transform: rotate(360deg);
  138. }
  139. }
  140. @keyframes load-progress-spinner {
  141. 0% {
  142. -webkit-transform: rotate(0);
  143. transform: rotate(0);
  144. }
  145. 100% {
  146. -webkit-transform: rotate(360deg);
  147. transform: rotate(360deg);
  148. }
  149. }