index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. 正在加载中
  7. </view>
  8. <view v-else>
  9. 上拉加载更多
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. // +----------------------------------------------------------------------
  16. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  17. // +----------------------------------------------------------------------
  18. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  19. // +----------------------------------------------------------------------
  20. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  21. // +----------------------------------------------------------------------
  22. // | Author: CRMEB Team <admin@crmeb.com>
  23. // +----------------------------------------------------------------------
  24. export default {
  25. name: "Loading",
  26. props: {
  27. loaded: {
  28. type: Boolean,
  29. default: false
  30. },
  31. loading: {
  32. type: Boolean,
  33. default: false
  34. }
  35. }
  36. };
  37. </script>
  38. <style>
  39. .Loads {
  40. height: 80upx;
  41. font-size: 25upx;
  42. color: #000;
  43. }
  44. .Loads .iconfont {
  45. font-size: 30upx;
  46. margin-right: 10upx;
  47. height: 32upx;
  48. line-height: 32upx;
  49. }
  50. /*加载动画*/
  51. @keyframes load {
  52. from {
  53. transform: rotate(0deg);
  54. }
  55. to {
  56. transform: rotate(360deg);
  57. }
  58. }
  59. .loadingpic {
  60. animation: load 3s linear 1s infinite;
  61. }
  62. .loading {
  63. animation: load linear 1s infinite;
  64. }
  65. </style>