product.vue 965 Bytes
<template>
  <div class="product-wrapper">
    <ImageFormat :src="data.goodImg" width="120" height="120"></ImageFormat>

    <div class="product-price">
      <div class="product-price-wrapper">
        <div class="price">{{data.colorName}},{{data.sizeName}}</div>
        <div class="tip">最低售价:<span class="price2">¥{{data.goodPrice}}</span></div>
      </div>
    </div>
  </div>
</template>

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

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

.product-price {
  display: inline-block;
  vertical-align: top;
  height: 100%;
  margin-left: 20px;
  padding-top: 10%;
}

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

.tip {
  font-size: 28px;
  margin-top: 24px;
}

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

</style>