buyer-product.vue 1.03 KB
<template>
  <div class="product-wrapper">
    <ImageFormat :src="data.goodImg" width="90" height="90"></ImageFormat>

    <div class="product-price">
      <div class="red">¥{{data.goodPrice}}</div>
      <div class="product-name">{{data.productName}}</div>
      <div class="price">{{data.colorName}},{{data.sizeName}}</div>
    </div>
  </div>
</template>

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

<style lang="scss" scoped>

.product-wrapper {
  height: 180px;
}

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

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

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

.product-name {
  font-size: 24px;
  color: #999;
  display: inline-block;
  margin-bottom: 24px;
  line-height: 36px;
}

.red {
  color: #d0021b;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: bold;
  @include num
}

</style>