index.vue 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view>
  3. <view class="Loads acea-row row-center-wrapper" v-if="loading && !loaded" style="margin-top: .2rem;">
  4. <view v-if="loading">
  5. <view class="iconfont icon-jiazai loading acea-row row-center-wrapper"></view>
  6. {{$t(`正在加载中`)}}
  7. </view>
  8. <view v-else>
  9. {{$t(`上拉加载更多`)}}
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name: "Loading",
  17. props: {
  18. loaded: {
  19. type: Boolean,
  20. default: false
  21. },
  22. loading: {
  23. type: Boolean,
  24. default: false
  25. }
  26. }
  27. };
  28. </script>
  29. <style>
  30. .Loads {
  31. height: 80upx;
  32. font-size: 25upx;
  33. color: #000;
  34. }
  35. .Loads .iconfont {
  36. font-size: 30upx;
  37. margin-right: 10upx;
  38. height: 32upx;
  39. line-height: 32upx;
  40. }
  41. /*加载动画*/
  42. @keyframes load {
  43. from {
  44. transform: rotate(0deg);
  45. }
  46. to {
  47. transform: rotate(360deg);
  48. }
  49. }
  50. .loadingpic {
  51. animation: load 3s linear 1s infinite;
  52. }
  53. .loading {
  54. animation: load linear 1s infinite;
  55. }
  56. </style>