incomeHeader.vue
1.36 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
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<div>
<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>
<incomeCircle :data="data"></incomeCircle>
</div>
</template>
<script>
import incomeCircle from './incomeCircle';
export default {
name: 'income-header',
props: {
data: {
type: Object,
default: {}
}
},
data() {
return {
};
},
components: {
incomeCircle
}
};
</script>
<style lang="scss" scoped>
.income-header-wrapper {
position: relative;
}
.income-header {
margin: 48px 0;
}
.total-income {
color: #000;
font-size: 40px;
font-weight: bold;
margin-bottom: 44px;
@include num
}
.income {
margin-bottom: 20px;
font-size: 24px;
.dot1,.dot2 {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 16px;
margin-right: 16px;
}
.dot1 {
background-color: #002B47;
}
.dot2 {
background-color: #65AB85;
}
.income-num {
color: #000;
margin-left: 20px;
}
}
</style>