<template>
  <div class="my-table clear">
    <div class="my-table-li">
      <div class="my-table-li-top">数量(X):</div>
      <div class="my-table-li-bottom">单价(元):</div>
      <div class="my-table-li-bottom">税率:{{ tax }}%</div>
    </div>

    <div class="my-table-li" v-for="(si, i) in price_list" :key="si.min + i">
      <div class="my-table-li-top">
        {{ si.min + "≤X" + (si.max === 0 ? "" : "＜" + si.max) }}
      </div>
      <div class="my-table-li-bottom">{{ si.price }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "showGoodPrice",
  props: ["price_list", "tax"],
  data() {
    return {};
  },
  watch: {
    // newTime: function (val) {
    //   if (val) {
    //     this.initForm();
    //   }
    // },
  },
};
</script>

<style scoped>
.my-table {
  background: rgb(236, 245, 255);
  float: left;
  .my-table-li {
    float: left;

    min-width: 100px;
    &:first-child {
      width: 100px;
    }
    .my-table-li-top,
    .my-table-li-bottom {
      width: 100%;
      float: left;
      height: 32px;
      padding: 0 5px;
      line-height: 32px;
      text-align: center;
      font-size: 13px;
    }
    .my-table-li-top {
      background: rgb(217, 236, 255);
    }
    .my-table-li-bottom {
      background: rgb(236, 245, 255);
    }
  }
}
</style>
