<template>
  <div class="detail-list br">
    <ul v-show="!dataList.length">
      <li class="list" v-for="(item, index) in dataList" :key="index">
        <img src="../../assets/type-2.png" alt="">
        <ul class="desc">
          <li class="text">邀请居民做健康排查</li>
          <li class="time">2019.12.15 10:35</li>
        </ul>
        <span class="score"><span>+5</span>勤奋分</span>
      </li>
    </ul>
    <div v-show="dataList.length" class="no-content">
      <img src="../../assets/no-content.png" alt="">
      <div class="text">暂无记录,您还没有参加活动</div>
      <DetailBtn style="margin-top: 30px;" btnText="立即参加" :isFixed="isFixed" btnWidth="50%"></DetailBtn>
    </div>
  </div>
</template>
<script>
import DetailBtn from '@/components/bussiness/detail-btn';
export default {
  components: {
    DetailBtn
  },
  props: {
    dataList: {
      type: Array,
      default: () => [0, 1, 3,0, 1, 3,0, 1, 3,0, 1, 3, 4]
    }
  },
  data() {
    return {
      isFixed: false
    }
  },
}
</script>
<style lang="less">
  .detail-list {
    font-size: 16px;
    &.br {
      border-radius: 20px 20px 0 0;
      margin-top: -24px;
      position: relative;
      top: 0;
      left: 0;
      z-index: 3;
      background: #fff;
    }
    .list {
      display: flex;
      flex-direction: row;
      height: 79px;
      // line-height: 79px;
      align-content: space-between;
      align-items: center;
      margin: 0 15px;
      border-bottom: 1px solid #F8F9FA;
      img {
        width: 50px;
        height: 50px;
        border-radius: 25px;
      }
      .desc {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin-left: 15px;
        .text {
          height: 16px;
          line-height: 16px;
          font-size: 16px;
          font-weight: 700;
          color: #373839;
        }
        .time {
          margin-top: 8px;
          height: 13px;
          line-height: 13px;
          font-size: 13px;
          font-size: 13px;
          font-weight: 400;
          color: #676869;
        }
      }
      .score {
        height: 13px;
        line-height: 13px;
        font-size: 13px;
        font-weight: 700;
        color: #373839;
        span {
          color: #FD5A2F;
        }
      }
    }
    .no-content {
      padding-top: 100px;
      text-align: center;
      .text {
        font-size: 15px;
        color: #999999;
      }
      img {
        width: 150px;
        height: 150px;
      }
    }
  }

</style>