evaluate.vue
920 Bytes
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
<template>
<div class="box">
<template v-for="(i, index) in list">
<div class="item" :key="index" :style="`padding-bottom:${index == list.length - 1 ? '16px' : ''};`">
<evaluate-item :item="i" :hideBorder="index == list.length - 1" :num="index + 1" :showAvatarNicknameFlag="detail.showAvatarNicknameFlag" />
</div>
</template>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'evaluate',
data () {
return {
list: [],
detail: {}
}
},
activated () {
let { list, detail } = this.getParams()
if (list && list.length) this.list = list
else if (this.list.length) return
else this.to('crowdfunding')
if (detail) this.detail = detail
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.box {
padding-bottom: 100px;
.item {
background: #ffffff;
padding: 0 16px;
}
}
</style>