master.vue
2.81 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<template>
<div class="master_agreement">
<NafmHeader title="《NAGMII主协议》" />
<nav class="bav_bar">
<div v-for="navItem in barList" :key="navItem.id" :class="actNav === navItem.id ? 'act_item' : 'nav_item'" @click="navSwitch(navItem.id)">
<p>{{navItem.title}}</p>
<div v-show="actNav === navItem.id" class="under_line"></div>
</div>
</nav>
<main v-if="actNav === 'time'">
<time-item v-for="(item, index) in timeAgreements" :key="index" :agreement-item="item">
</time-item>
</main>
<main v-if="actNav === 'letter'">
<letter-item v-for="(item, index) in letterAgreements" :key="index" :nav-item="item">
</letter-item>
</main>
<section class="remark">
<h3 class="title">备注:</h3>
<ul class="content">
<li>《NAFMII主协议》非法人产品管理人名单自2020年起进行公示</li>
<li>《债券回购主协议》非法人产品管理人名单自2018年起进行公示</li>
</ul>
</section>
</div>
</template>
<script>
export default {
data() {
return {
barList: [{
title: '按时间',
id: 'time'
}, {
title: '按首字母',
id: 'letter'
}],
actNav: 'time',
letterAgreements: [{
title: 'A',
children: [{
title: 'XXXXXXXXXXXXX公司',
time: '2020-03-03'
}, {
title: 'XXXXXXXXXXXXX公司',
time: '2020-03-04'
}, {
title: 'XXXXXXXXXXXXX公司',
time: '2020-03-05'
}, {
title: 'XXXXXXXXXXXXX公司',
time: '2020-03-06'
}, {
title: 'XXXXXXXXXXXXX公司',
time: '2020-03-07'
}]
}],
timeAgreements: [{
time: '2021-03-03',
children: [{
title: 'XXXXXXXXXXXXX公司'
}, {
title: 'XXXXXXXXXXXXX公司'
}, {
title: 'XXX产品',
manager: 'XXX'
}, {
title: 'XXXXXXXXXXXXX公司'
}]
}]
}
},
components: {
letterItem: ()=> import('./components/letterItem.vue'),
timeItem: ()=> import('./components/timeItem.vue')
},
methods: {
navSwitch(id) {
this.actNav = id
}
}
}
</script>
<style lang="less" scoped>
.master_agreement {
padding: 0 20px;
}
.bav_bar {
width: 384px;
margin: 0 auto;
display: flex;
justify-content: space-around;
font-size: 15px;
color: #ffffff;
background: blue;
.act_item {
font-size: 19px;
font-family: PingFangSC-Semibold;
}
.under_line {
width: 30px;
height: 2.5px;
background: #ffffff;
margin: 0 auto;
}
}
.remark {
line-height: 20px;
margin: 20px 0;
.title {
font-size: 14px;
color: #333333;
font-weight: bold;
}
.content {
font-size: 12px;
color: #999999;
}
}
</style>