liding
3 天以前 359f69135b571c8e7b6d046bc849655abfe7075d
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<template>
  <el-row align="middle" :gutter="20" class="ivu-mt">
    <el-col :xl="6" :lg="6" :md="12" :sm="12" :xs="24" class="ivu-mb mb20" v-for="(item, index) in cardLists"
         :key="index">
      <div class="card_box">
          <div class="card_box_cir" :class="item.class">
              <span class="iconfont" :class="item.icon" :style="{color:item.color}" v-if="item.icon"></span>
              <i class="el-icon-edit" style="color: #fff;" v-else></i>
          </div>
          <div class="card_box_txt">
            <span class="sp2" v-text="item.name"></span>
            <span class="sp1" v-text="item.count || 0"></span>
          </div>
        </div>
    </el-col>
  </el-row>
</template>
 
<script>
  export default {
    name: "index",
    props: {
      cardLists: Array
    },
  }
</script>
 
<style scoped lang="scss">
.one {
  background: rgba(24, 144, 255, .1);
}
.two {
  background: rgba(162, 119, 255, .1);
}
.three {
  background: rgba(232, 182, 0, .1);
}
.four {
  background: rgba(27, 190, 107, .1);
}
.five {
  background: rgba(75, 202, 213, .1);
}
.six {
  background: rgba(239, 156, 32, .1);
}
  .one1{
    background: #1890FF;
  }
  .two1{
    background: #A277FF;
  }
  .three1{
    background: #EF9C20;
  }
  .four1{
    background: #1BBE6B;
  }
  .five1{
    background: #4BCAD5;
  }
  .six1{
    background: #EF9C20;
  }
  .card_box {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    /*justify-content: center*/
    padding: 25px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    .card_box_cir {
      width: 50px;
      height: 50px;
      border-radius: 4px;
      overflow: hidden;
      margin-right: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .card_box_txt {
      .sp1 {
        display: block;
        color: #333333;
        font-size: 28px;
        padding-top: 3px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
      }
      .sp2 {
        display: block;
        color: #606266;
        font-size: 14px;
        font-weight: 400;
      }
    }
  }
  .iconfont{
    font-size: 23px;
  }
</style>