<template>
  <div class="Hl-container-item">
    <div class="Hlc-item-img">
      <cr-image :src="goods.goodsImage | imogr({ w: 120, h: 120 })" />
    </div>
    <div class="Hlc-item-info">
      <div class="Hlc-item-info-title">
        <span v-if="goods.textTag" class="Hlc-item-info-title-tag">{{ goods.textTag }}</span>
        {{ goods.goodsName || '' }}
      </div>
      <div class="Hlc-item-info-bottom">
        <div class="Hlc-item-info-bottom-des">{{ goods.des || '' }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    goods: {
      type: Object,
      default: () => {}
    }
  }
};
</script>
<style lang="less" scoped>
.Hl-container-item {
  display: flex;
  justify-content: space-around;
  .Hlc-item-img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    margin-right: 8px;
    opacity: 0.5;
  }
  .Hlc-item-info {
    width: 225px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    &-title {
      .text-size(13);
      position: relative;
      opacity: 0.5;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      &-tag {
        .text-size(11);
        color: @white;
        background: @red;
        border-radius: 3px;
        padding: 0 3.5px;
        margin-right: 5px;
      }
    }
    &-bottom {
      position: absolute;
      bottom: 5px;
      width: 100%;
      &-des {
        .text-size(13);
        color: @black;
        // overflow: hidden;
        // text-overflow: ellipsis;
        // display: -webkit-box;
        // -webkit-line-clamp: 1;
        // -webkit-box-orient: vertical;
      }
    }
  }
}
</style>
