<template>
  <div class="goods-item">
    <div class="img">
      <img :src="item.cover" alt="" srcset="">
    </div>
    <div class="bo">
      <div class="price">
        <span>¥</span>
        <span>{{item.activityPrice}}</span>
      </div>
      <div class="tit">{{ item.spceName }}</div>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      item: {
        type: Object,
        default: () => {}
      }
    }
  }
</script>

<style scoped lang="scss">
.goods-item {
  width: 310px;
  // background-color: pink;
  border-radius: 10px;
  box-shadow: 0px 4px 8px 10px rgba(0,0,0,0.0300);
  .img {
    width: 100%;
    height: 254px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0px 0px;
    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .bo {
    padding: 4px 8px;
    padding-bottom: 14px;
    .price {
      color: #eb4c63;
      font-size: 18px;
    }
    .tit {
      overflow: hidden;
      word-break: break-all;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
  }
}
</style>
