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