serviceList.vue
1.64 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
<template>
<div>
<ul class="serviceList">
<li>
<div class="serviceListTitle">
<span class="serviceListName">阳光保险</span>
<span>95510</span>
</div>
<div class="serviceListCon">
<div>1</div>
<div>
<p>阳光保险于2005年7月成立,阳光保险于2005年7月成立,阳光保险于2005年7月成立,阳光保险于2005年7月成立,</p>
<span class="consultBtn">
咨询
</span>
</div>
<div class="serviceListArrow">
>
</div>
</div>
</li>
<li>
1
</li>
</ul>
</div>
</template>
<script>
export default {
name: "serviceList"
};
</script>
<style scoped lang="scss">
.serviceList {
padding: 10px;
> li {
padding: 10px;
margin-bottom: 10px;
background-color: #fff;
border-radius: 4px;
}
}
.serviceListTitle {
display: flex;
justify-content: space-between;
}
.serviceListName {
font-size: 16px;
color: #000;
font-weight: 600;
}
.serviceListCon{
display: flex;
margin-top: 10px;
>div:nth-of-type(2){
flex: 1;
padding: 0 10px;
overflow: hidden;
p{
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.consultBtn{
display: inline-block;
padding: 3px 30px;
margin: 5px 0;
background-color: #1AAD19;
border-radius: 4px;
color: #fff;
cursor: pointer;
}
.serviceListArrow{
font-size: 18px;
line-height: 56px;
font-weight: 600;
}
</style>