evaluate.vue 920 Bytes
<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>