<template>
  <div class="classification-list-item-con flex-default">
    <img class="thumb" :src="data.thumb" />
    <div class="info-con">
      <div class="top">
        <div class="name-con">
          <div class="tab">转让</div>
          <p class="name">{{ data.goodsName }}</p>
        </div>
        <m-price
          :amt="data.price"
          :rmbSize="10"
          :intSize="20"
          :floatSize="14"
        />
      </div>
      <div class="merchant flex-default">
        <img class="avatar" :src="data.saleThumb" />
        <span class="name">{{ data.nickName }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="less">
.classification-list-item-con {
  background: #ffffff;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  > .thumb {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    margin-right: 10px;
  }
  > .info-con {
    flex: 1;
    height: 100px;
    display: flex;
    flex-direction: column;
    .top {
      flex: 1;
      .name-con {
        position: relative;
      }
      .name-con .name {
        font-size: 14px;
        font-weight: bold;
        line-height: 18px;
        text-indent: 34px;
        margin-bottom: 5px;
      }
      .name-con .tab {
        position: absolute;
        left: 0;
        top: 3px;
        background: linear-gradient(295deg, #f07c5b 0%, #dd2e41 100%);
        border-radius: 2px;
        line-height: 12px;
        padding: 0 3px;
        color: #ffffff;
      }
    }
    .merchant {
      .avatar {
        width: 18px;
        height: 18px;
        margin-right: 5px;
      }
      .name {
        color: #999999;
        font-size: 11px;
      }
    }
  }
}
</style>

