Blame view

admin-web-master/src/views/active/component/detail.vue 1.74 KB
3f535f30   杨鑫   '初始'
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
  <template>
    <div class="activeData">
      <div class="topData">
        <div v-for="(item,index) in infoList" :key="index" class="details">
          <div class="textOne">{{ item.value }}</div>
          <div class="textTwo">
            <div class="l_text">{{ item.name }}</div>
          </div>
        </div>
      </div>
      <div class="botTable">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>商家数据明细</span>
            <el-button class="exportBtn" style="background-color: #3F9B6A;color: #fff" @click="send">导出</el-button>
          </div>
          <div class="text">
            <!--  表格 -->
            <div class="content_table">
              <slot name="table" />
            </div>
          </div>
        </el-card>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    props: {
      infoList: {
        type: Array,
        default: () => []
      }
    },
    methods: {
      // 导出
      send() { this.$emit('export') }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .activeData{
    .topData {
      width: 100%;
      height: 140px;
      background: #ffffff;
      box-shadow: 0px 0px 10px 0px rgba(51, 51, 51, 0.15);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: space-around;
      .details {
        .textOne {
          font-size: 40px;
          font-weight: bold;
          color: #ffae11;
          text-align: center;
        }
        .textTwo {
          font-size: 18px;
          color: #333333;
          display: flex;
          justify-content: center;
          align-items: center;
          .l_text {
            height: 20px;
          }
        }
      }
    }
    .botTable{
      margin-top: 20px;
      .clearfix{
        span{
          line-height: 40px;
        }
      }
      .exportBtn{
        float: right;
      }
    }
  }
  </style>