Serve.vue
1.16 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
<template>
<div class="serve" v-if="list.length">
<div class="box flex" @click="showModal = true">
服务
<div class="serve-text flex">
<template v-for="(i, index) in list">
<div :key="index" class="flex">
{{ i.title }}
<span v-if="index != list.length - 1">·</span>
</div>
</template>
</div>
<div class="sprite-icon icon-arrow"></div>
</div>
<serve-modal v-model="showModal" @cancel="showModal = false" :list="list" />
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'Serve',
props: {
list: {
type: Array,
default: () => []
}
},
data () {
return {
showModal: false
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang="scss">
@import '@/assets/css/crowdfunding.scss';
.box {
color: #999999;
font-size: 12px;
font-weight: 400;
border-radius: 4px;
line-height: 17px;
.serve-text {
width: 254px;
color: #2c2c2c;
margin-left: 20px;
overflow: hidden;
white-space: nowrap;
span {
margin: 0 4px;
}
}
.sprite-icon {
margin-left: auto;
}
}
</style>