incomeHeader.vue
1.09 KB
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
<template>
<div class="income-header">
<p class="total-income">收入: {{data.totalIncome}}</p>
<div class="income">
<span class="dot1"></span>
<span class="income-name">货款收入</span>
<span class="income-num">{{data.goodsIncome}}</span>
</div>
<div class="income">
<span class="dot2"></span>
<span class="income-name">补偿收入</span>
<span class="income-num">{{data.compensateIncome}}</span>
</div>
</div>
</template>
<script>
export default {
name: 'income-header',
props: {
data: {
type: Object,
default: {}
}
},
data() {
return {
};
},
};
</script>
<style lang="scss" scoped>
.income-header {
margin: 50px 0;
}
.total-income {
font-size: 36px;
margin-bottom: 40px;
}
.income {
margin-bottom: 15px;
font-size: 24px;
.dot1,.dot2 {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 16px;
}
.dot1 {
background-color: #002B47;
}
.dot2 {
background-color: #65AB85;
}
.income-name {
color: #999;
}
}
</style>