lendHistory.vue
1.9 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
77
<template>
<v-layout column justify-center align-center id="lendHistory">
<v-flex>
<HistoryStatisticsCard type="lend" :data="overview"/>
<div id="SearchBlock">
<input v-model="search" type="search" id="searchInput" :class="!search ? 'empty' : ''" placeholder="搜索姓名 search"/>
</div>
<HistoryList :list="historyList" type="lend"/>
</v-flex>
</v-layout>
</template>
<script>
import HistoryStatisticsCard from '@/components/HistoryStatisticsCard'
import HistoryList from '@/components/HistoryList'
export default {
data:() => ({
overview: {
total: '100000.00',
interest: '100000.00',
times: '100000'
},
search: '',
historyList: [{
avatar: '/avatar.png',
name: '杨洋',
amount: '100000.00',
time: '2018-03-08',
status: '还款中'
},{
avatar: '',
name: '杨洋',
amount: '100.00',
time: '2018-03-08',
status: '还款中'
},{
avatar: '/avatar.png',
name: '杨洋',
amount: '100000.00',
time: '2018-03-08',
status: '还款中'
}]
}),
components: {
HistoryStatisticsCard,
HistoryList
}
}
</script>
<style lang="scss" scpoed>
#lendHistory {
#SearchBlock {
width: 100vw;
padding: 0.9rem 0.7rem;
#searchInput {
background-color: $menu-grey;
border: 1px solid #979797;
border-radius: 0.5rem;
width: 100%;
height: 2rem;
text-align: center;
outline: none;
color: $light-gold;
&.empty {
font-family: 'Material Icons';
}
}
::-moz-placeholder { color: $light-gold; line-height: 2rem;}
::-webkit-input-placeholder { color:$light-gold; line-height: 2rem; }
:-ms-input-placeholder { color:$light-gold; line-height: 2rem; }
}
}
</style>