| 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
58
59
60
61
62
63
64
65
66
67
68
69
 | | <template> |  |   <div class="width99 padding-top2 margintopbot flex align-center" :class="justify"> |  |     <div |  |       class="didproject-title flex justify-around align-center borderradius overflow pointer" |  |       :style="'background:' + titlebg + ';color:' + titlecolor" |  |       v-for="(item, index) in titlelist" |  |       :key="index" |  |     > |  |       <div class="height width30 flex align-center justify-center overflow padding10"> |  |         <svg-icon class="fontsize4rem text-center" :style="'color:' + item.iconcolor" :icon-class="item.icon" /> |  |       </div> |  |       <div class="heigth width55 padding10 overflow"> |  |         <p class="fontsiez1_5rem">{{ item.titel }}</p> |  |   |  |         <p class="text-center fontsize2rem fontweight600 color409EFF margin-top15" :style="'color:' + item.color"> |  |           <!-- <countTo :startVal="startVal" :endVal="item.mun" :duration="3000"></countTo> --> |  |           {{item.titel=='总库位数量'?item.mun: item.mun }} |  |         </p> |  |       </div> |  |     </div> |  |   </div> |  | </template> |  |   |  | <script> |  | import countTo from "vue-count-to"; |  | export default { |  |   data() { |  |     return { |  |       startVal: 0, |  |   |  |       cleartime: null |  |     }; |  |   }, |  |   props: { |  |     titlelist: { |  |       type: Array, |  |       default: () => [] |  |     }, |  |     titlebg: { |  |       type: String, |  |       default: "" |  |     }, |  |     titlecolor: { |  |       type: String, |  |       default: "" |  |     }, |  |     justify: { |  |       type: String, |  |       default: "justify-between" |  |     } |  |   }, |  |   components: { countTo }, |  |   mounted() {}, |  |   methods: {} |  | }; |  | </script> |  |   |  | <style lang="scss" scoped> |  | .didproject-title { |  |   width: 23%; |  |   padding: 0 0; |  |   box-shadow: 0 0 4px #c1c9d0; |  |   background: #f0f2f5; |  |   transition: all 0.3s; |  |   &:hover { |  |     box-shadow: 0 0 4px #99b7e2; |  |   } |  | } |  | </style> | 
 |