<template>
  <div class="shop-recommend-goods-item" @click="goGoods(data.goodsId,data.type,data.salesType)">
    <img class="thumb" :src="data.thumb" />
    <div class="goods-info">
      <div class="name">{{ data.name }}</div>
      <m-price :amt="data.defaultPrice" :rmbSize="10" :intSize="15" :floatSize="12"/>
    </div>
  </div>
</template>

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

<style lang="less">
.shop-recommend-goods-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 10px;
  > .thumb {
    border-radius: 8px 8px 0 0;
    object-fit: contain;
    width: 100%;
  }
  > .goods-info {
    padding: 8px;
    > .name {
      font-size: 13px;
      margin-bottom: 10px;
    }
  }
}
</style>