Hall.vue 2.52 KB
Newer Older
1
<template>
潘际乾 committed
2 3 4
  <div class="home-cell" id="hall">
    <CellHeaderVue title="电子大厅">
      <span class="el-icon-refresh" title="刷新"></span>
潘际乾 committed
5
      <span class="el-icon-more" title="操作"></span>
潘际乾 committed
6 7
    </CellHeaderVue>
    <div class="cell-content">
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
      <div class="card-item" v-for="(item, idx) in itemList" :key="idx">
        <div class="dept-name">
          <div class="first-word" :style="{ 'background-image': item.backImg }">
            {{ item.title.substr(0, 1) }}
          </div>
          <div class="dz-title">{{ item.title }}</div>
        </div>
        <div class="type-count">
          <div class="count-item">
            操作处理类 <span class="count-number">26</span>
          </div>
          <div class="count-item">
            提示信息类 <span class="count-number">3</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
潘际乾 committed
29
import CellHeaderVue from "./CellHeader.vue";
30 31 32

export default {
  name: "Hall",
潘际乾 committed
33
  components: { CellHeaderVue },
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
  data() {
    return {
      itemList: [
        { title: "资产管理大厅", backImg: "linear-gradient(#2073ef, #bec2f3" },
        {
          title: "我行发布资产大厅",
          backImg: "linear-gradient(rgb(28 190 241), rgb(201 229 237))",
        },
        {
          title: "他行发布资产大厅",
          backImg: "linear-gradient(rgb(243, 195, 12), rgb(239 228 197))",
        },
        {
          title: "资金发布大厅",
          backImg: "linear-gradient(#ff9800, rgb(251 234 210))",
        },
      ],
    };
  },
};
</script>

<style scoped>
潘际乾 committed
57
#hall .cell-content {
58 59 60
  display: flex;
  flex-wrap: wrap;
}
潘际乾 committed
61
#hall .cell-content {
62 63 64
  justify-content: space-around;
  align-items: center;
}
潘际乾 committed
65
#hall .cell-content .card-item {
66 67 68 69
  width: 45%;
  height: 45%;
  background-color: #e6e8ef;
  border-radius: 12px;
潘际乾 committed
70
  padding: 10px 10px 10px 15px;
71 72 73 74
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
75
  font-size: 14px;
76 77 78 79 80
}
.dept-name {
  display: flex;
  align-items: center;
}
潘际乾 committed
81 82
.dept-name,
.type-count {
83 84
  flex: 1;
}
85 86
.first-word {
  width: 40px;
潘际乾 committed
87
  height: 40px;
88 89 90 91 92 93 94
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bolder;
  font-family: emoji;
  border-radius: 8px;
潘际乾 committed
95
  font-size: 20px;
96 97
}
.dz-title {
潘际乾 committed
98
  margin-left: 10px;
99 100 101 102 103 104 105 106 107 108
  font-weight: bold;
}

.type-count .count-item {
  display: flex;
  align-items: center;
  font-weight: 400;
  color: #6c6f72;
}
.type-count .count-number {
109
  font-size: 20px;
110 111 112 113
  margin-left: 20px;
  color: #000;
}
</style>