case_three.vue 4.79 KB
<template>
  <div class="chart-container">
    <div class="content_con">
      <div class="box_wrap_con">
        <div class="wrapper">
          <div class="h3_title">案例1-广州某合资品牌丰田4S店</div>
          <div class="h12_title margin_3">合作之前</div>
          <div class="con2_widget margin_4">
            <div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
          </div>
        </div>
        <div class="drive_line"></div>
        <div class="wrapper_2">
          <div class="h12_title">合作之后</div>
          <div class="text_line_widget margin_4">
            <div class="h5_title">
              2020年6月份累计收益:
              <span class="price">53400</span>
              元
            </div>
            <div class="h5_title">
              2020年度累计收益约:
              <span class="price">65万</span>
              元
            </div>
          </div>

          <div class="h5_title margin_5">太阳膜新增升级收益23400元,节省赠送膜成本100*300=30000元</div>
          <div class="table_widget margin_4">
            <table>
              <tr>
                <th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
              </tr>
              <tr>
                <td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
              </tr>
            </table>
          </div>
        </div>
      </div>
      <div class="box_wrap_con">
        <div class="wrapper">
          <div class="h3_title">案例2-四川某经销商集团</div>
          <div class="h3_title margin_3">合作之前</div>
          <div class="con2_widget margin_4">
            <div class="text_label h5_title">旗下门店数:28家</div>
            <div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
            <div class="text_label h5_title">集团年度新车销量:26880</div>
            <div class="text_label h5_title">单店年度新车销量:960</div>
          </div>
        </div>
        <div class="drive_line"></div>
        <div class="wrapper_2">
          <div class="h3_title">合作之后</div>
          <div class="text_line_widget margin_4">
            <div class="h5_title">
              2020年集团累计收益约:
              <span class="price">2286.15万元</span>
              元
            </div>
            <div class="h5_title">
              平均单店收益约:
              <span class="price">81万</span>
              元
            </div>
          </div>
          <div style="height: 10px;" class="margin_5"></div>
          <div class="table_widget margin_4">
            <table>
              <tr>
                <th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
              </tr>

              <tr>
                <td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {
      tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
      tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
      tableTD1: [100, '52%', 52, 2283, 118716, 23400],
      tableTD2: [960, '63%', 1350, 816480, 22861440]
    }
  },
  methods: {}
}
</script>
<style lang="scss" scoped>
.chart-container {
  height: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}
.content_con {
  display: flex;
  justify-content: space-between;
  .box_wrap_con {
    width: 48%;
  }
  .con2_widget {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 15px;
    height: 54px;
    .text_label {
      width: 50%;
      margin-bottom: 5px;
    }
  }
  .drive_line {
    margin: 0 auto;
    width: 100%;
    height: 1px;
    background: #e8e8ea;
    margin-bottom: 19px;
  }
  .wrapper_2 {
    .text_line_widget {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .price {
        font-size: 14px;
        font-weight: 600;
      }
    }
    .table_widget {
      width: 100%;
      height: 90px;
      background: #f6f6f7;
      // overflow: hidden;
      td,
      th {
        border: 1px solid #e0e0e4;
        font-size: 14px;
        font-weight: 400;
        color: #3a3a3a;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      th,
      td {
        height: 41px;
        text-align: center;
        line-height: 41px;
      }
      table {
        width: 100%;
        border-collapse: collapse;
      }
    }
  }
  .margin_3 {
    margin-top: 20px;
  }
  .margin_4 {
    margin-top: 10px;
  }
  .margin_5 {
    margin-top: 25px;
  }
}
</style>