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 class="record-item">
<img src="@/assets/images/消费.png" />
<div class="item" style="flex:2;margin-left:10px">
<span style="font-size:14px;color:#333333">提现</span>
<span style="font-size:12px;color:#999999">{{
recordItem.moneyTime
}}</span>
</div>
<div class="item" style="flex:1">
<span style="font-size:16px;font-weight:bold;#333333;"
>¥{{ recordItem.money }}</span
>
<span :class="`status-process`" style="font-size:12px">{{
recordItem.status | cashOutStatus
}}</span>
</div>
</div>
</template>
<script>
export default {
name: "RecordItem",
props: {
recordItem: {
type: Object,
default: () => {}
}
},
filters: {
cashOutStatus(val) {
let statusStr = "";
switch (val) {
case 2:
statusStr = "银行处理中";
break;
case 3:
statusStr = "提现成功";
break;
default:
statusStr = "";
break;
}
return statusStr;
}
}
};
</script>
<style lang="scss" scoped>
.record-item {
display: flex;
align-items: center;
margin-bottom: 10px;
padding: 0 15px;
width: 100%;
height: 44px;
img {
width: 34px;
height: 34px;
}
.item {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
}
.status-process {
// 银行处理中
color: #88c678;
}
.status-success {
color: #999999;
}
}
</style>