<template>
  <div class="list-item-con" @click="goGoods(itemData.goodsId, itemData.type,itemData.salesType)">
    <div class="m-icon picture">
      <img :src="itemData.thumb" />
    </div>
    <div class="desc">
      <!-- 		<div class="append">
				<span>满减</span>
			</div> -->
      {{ itemData.name }}
    </div>
    <div class="tips-con flex-default">
      <!-- 	<div class="item flex-default">
				<span>满200元减20元</span>
			</div> -->
      <!-- 		<div class="describe item flex-default">
				<span>杭州市销量第一</span>
			</div> -->
    </div>
    <div class="price-con flex-default">
      <m-price :amt="itemData.defaultPrice" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    itemData: Object,
  },
  data() {
    return {};
  },
  methods: {
  },
};
</script>

<style lang="less">
.list-item-con {
  width: 168px;
  border-radius: 8px;
  background-color: #ffffff;
  margin-bottom: 8px;
  overflow: hidden;
  .picture {
    width: 100%;
    height: 136px;
    background-color: #eaeaea;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  >.desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    color: #140603;
    line-height: 16px;
    padding: 0 8px;
    margin-top: 10px;
    .append {
      height: 12px;
      background: linear-gradient(295deg, #f07c5b 0%, #dd2e41 100%);
      border-radius: 1px;
      color: #ffffff;
      line-height: 12px;
      margin-right: 2px;
      display: flex;
      align-items: center;
      float: left;
      margin-top: 3px;
      uni-text {
        font-size: 12px;
        line-height: 15px;
        display: inline-block;
        transform: scale(0.8);
      }
    }
  }
  >.tips-con {
    margin: 5px 8px;
    color: #dd2e41;
    .item {
      align-items: center;
      width: 84px;
      height: 12px;
      border: 1px solid #dd2e41;
      box-sizing: content-box !important;
      uni-text {
        font-size: 12px;
        line-height: 15px;
        display: inline-block;
        transform: scale(0.8);
      }
      &.describe {
        border: 0;
        background-color: #f5f7fb;
      }
    }
  }
  > .price-con {
    padding: 0 8px;
    margin: 5px 0 12px;
    .m-price-con {
      transform: scale(0.7);
      transform-origin: 0 0;
    }
  }
}
</style>
