product.vue 1.3 KB
<template>
  <div class="product-wrapper">
    <div class="good-image">
      <ImageFormat :src="data.goodImg" :width="240" :height="240"></ImageFormat>
    </div>
    <div class="product-price">
      <div class="product-price-wrapper">
        <div class="price"><span class='icon-ufo'></span> {{data.colorName}},{{data.sizeName}}</div>
        <div class="tip">{{ data.priceType}} <span class="price2">{{data.goodPrice}}</span></div>
        <div v-if="data.priceBidType" class="tip">{{ data.priceBidType}} <span class="price2">{{data.goodBidPrice}}</span></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'OrderProductInfo',
  props: {
    data: {
      type: Object,
      default() {
        return {};
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.product-wrapper {
  display: flex;
  height: 240px;
  overflow: hidden;
}

.good-image {
  width: 240px;
  height: 240px;
  overflow: hidden;
    img {
      width: 100%;
      display: block;
    }
}

.product-price {
  display: flex;
  height: 100%;
  margin-left: 20px;
  align-items: center;
}

.price {
  font-weight: bold;
  font-size: 24px;
  color: #999;
  margin-bottom: 20px;
}

.tip {
  font-size: 28px;
  margin-bottom: 10px;
}

.price2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
}

</style>