<template>
  <div class="order-goods-list-con common">
    <div class="shop flex-default" @click="goShop(data.merchantId)">
      <m-icon icon="icon-shop" :size="15" />
      <span class="name">{{ data.enterpriseName }}</span>
      <m-icon icon="icon-more" :size="10" />
    </div>
    <div class="goods flex-default" @click="goGoods(data.goodsId, data.type,data.salesType)">
      <img class="thumb" :src="data.thumb" />
      <div class="spu">
        <div class="name">{{ data.name }}</div>
        <div class="sku">{{ data.propList | propFilter }}</div>
      </div>
      <div class="price">
        <!-- <div class="amt">￥1099.00</div> -->
        <div class="num">X{{ data.number }}</div>
      </div>
    </div>
    <div class="info-list">
      <div class="info">
        <div class="label">运费</div>
        <div class="amt">￥{{ data.postFee }}</div>
      </div>
      <!-- <div class="total flex-default">
        <div class="label">实付款</div>
        <m-price
          :amt="data.amount || 0"
          :intSize="16"
          :floatSize="12"
          :rmbSize="11"
        />
      </div> -->
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  computed: {},
  filters: {
    propFilter(val) {
      if (!val) {
        return "";
      }
      return val.map((item) => item.value).join(" + ");
    },
  },
  methods: {
  },
};
</script>

<style lang="less">
@import "../components/goods-list.less";
</style>



