ZZJ
2022-07-11 6ef2ac92c0d3f79b59b8698274918df830b58b29
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
<template>
  <div class="commendCard">
    <div
      class="commendCardItem"
      v-for="(item, index) in commendCardData"
      :key="index"
    >
      <router-link :to="item.router">
        <div>
          <img :src="item.img" alt="" />
          <span class="title">
            {{ item.title }}
          </span>
          <div class="des">
            {{ item.des }}
          </div>
        </div>
      </router-link>
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    commendCardData: {
      type: Array,
    },
  },
  data() {
    return {};
  },
};
</script>
 
<style lang="scss" scoped>
.commendCard {
  display: flex;
  margin-top: 132px;
  width: 954px;
  height: 118px;
  background: #ffffff;
  border: 1px solid #e9ebee;
  box-sizing: border-box;
  box-shadow: 0px 2px 8px rgba(0, 43, 106, 0.12);
 
  .commendCardItem {
    flex: 1;
    box-sizing: border-box;
    padding: 20px;
 
    img {
      height: 48px;
      margin-right: 10px;
      vertical-align: middle;
    }
 
    .title {
      font-size: 18px;
    }
 
    .des {
      color: #999999;
      margin-top: 10px;
      font-size: 14px;
    }
 
    &:hover {
      box-shadow: 0px 2px 8px rgba(0, 43, 106, 0.25);
    }
  }
}
</style>