index.vue
1.87 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
<template>
<div class="business_container">
<NafmHeader navClass="nafmii-head-bg3" title="业务开展列表" />
<main class="business_content">
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
<van-cell v-for="(item, index) in businessList" :key="index">
<div slot="title" class="title">{{item.title}}</div>
<p slot="label" class="info">
<span class="update_time">
<van-icon :name="timeIcon" />
{{$t('mbusiness.updateTime')}}:{{item.update_time}}
</span>
<span class="org">{{item.org}}</span>
</p>
</van-cell>
</van-list>
</main>
</div>
</template>
<script>
export default {
name: "BusinessList",
data() {
return {
businessList: [{
title: '南京市高淳区城市投资有限公司关于发行2021年度第一期中期票据的注册报告',
update_time: '2021-4-12',
org: 'MTN'
},{
title: '广州越秀金融控股集团股份有限公司关于发行2021年度第二期中期票据的注册报告',
update_time: '2021-4-12',
org: 'MTN'
}],
loading: false,
finished: false,
timeIcon: require('@/assets/icon/time_update.png')
}
},
methods: {
onLoad() {
setTimeout(() => {
this.finished = true
}, 3000)
}
}
}
</script>
<style lang="less" scoped>
.business_container {
.title {
color: #222222;
font-size: 16px;
text-align: justify;
}
.info {
color: #888d8d;
line-height: 16px;
font-size: 12px;
display: flex;
justify-content: space-between;
.update_time {
display: flex;
align-items: center;
.van-icon {
font-size: 14px;
margin-right: 6px;
}
}
}
::v-deep(.van-icon) {
line-height: 16px;
}
}
</style>