Dialog.vue 4.61 KB
<template>
  <div class="mask" v-if="isShow">
    <div class="dialog-wrap">
      <div class="dialog">
        <div class="dialog-title">
          客户价值分析
          <div class="close" @click="closeHandle">
            <img src="@/assets/images/close.png" />
          </div>
        </div>
        <div class="dialog-content flex">
          <div class="content-top axis">
            <img src="@/assets/images/axis.png" />
          </div>
          <div class="content-top bg">
            <div class="content-top-title">
              <!-- <img class="title-icon" src="@/assets/images/title-icon.png" /> -->
              <div class="title">客户价值</div>
              <!-- <img class="title-icon" src="@/assets/images/title-icon.png" /> -->
            </div>
            <div class="content-info">
              重要价值:R高、F高、M高
              <br />
              重要发展:R高、F低、M高
              <br />
              重要召回:R低、F高、M高
              <br />
              重要挽留:R低、F低、M高
              <br />
              一般价值:R高、F高、M低
              <br />
              一般发展:R高、F低、M低
              <br />
              一般召回:R低、F高、M低
              <br />
              一般挽留:R低、F低、M低
            </div>
          </div>
          <div class="content-bottom bg">
            <div class="title">售后客户价值模型</div>
            <div class="info">
              R=最近一次和上一次到店间隔时间
              <br />
              F=一年内到店频次
              <br />
              M=一年内售后工单金额
            </div>
          </div>
          <div class="content-bottom bg">
            <div class="title">当前逻辑</div>
            <div class="info">
              6个月内(高)< R ≤ 超6个月(低)
              <br />
              2次以内(低)≤ F <超2次(高)
              <br />
              3000元 (低)≤ M <超 3000元(高)
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyDialog',
  props: {
    isShow: Boolean
  },
  data() {
    return {
      msg: ''
    }
  },
  methods: {
    closeHandle() {
      this.$emit('closeDialog')
    }
  }
}
</script>

<style lang="scss" scoped>
.mask {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 99;
  left: 0px;
  top: 0px;
  background: rgba(0, 0, 0, 0.8);
}
.dialog-wrap {
  width: 61.11vw;
  height: 73.29vh;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  background-image: url('../../../assets/images/bg-5.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  padding: 3.9vh 3.67vw;
  box-sizing: border-box;
  .close {
    width: 20px;
    height: 20px;
    position: absolute;
    right: -330px;
    top: -5px;
    cursor: pointer;
  }
  .dialog-title {
    width: 13.19vw;
    height: 4.39vh;
    background-image: url('../../../assets/images/title-dialog.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    margin: 0 auto;
    position: relative;
    line-height: 4.39vh;
  }
  .dialog-content {
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3.5vh;
    .axis {
      width: 26.88vw;
      height: 34.97vh;
      margin-right: 1.25vw;
      img {
        height: 100%;
      }
    }
    .content-top-title {
      width: 10vw;
      margin: 7px auto;
      display: flex;
      align-items: center;
      height: 2.68vh;
      .title-icon {
        width: 21px;
        height: 7px;
      }
      .title {
        font-weight: 500;
        font-size: 16px;
        color: #ffffff;
        margin: 0 auto;
        height: 2.68vh;
        line-height: 2.68vh;
      }
    }
    .content-info {
      font-weight: 400;
      font-size: 14px;
      color: #c0c8d4;
      margin: 0 auto;
      text-align: center;
    }
  }
  .content-top {
    width: 25.14vw;
    height: 27.93vh;
    margin-bottom: 4.45vh;
  }
  .content-bottom {
    width: 25.14vw;
    height: 14.88vh;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    padding: 1.2vh 1.39vw;
    box-sizing: border-box;
    .title {
      font-weight: 500;
      font-size: 16px;
      margin-bottom: 8px;
      height: 2.68vh;
    }
    .info {
      font-weight: 400;
      font-size: 14px;
      color: #c0c8d4;
    }
  }
  .bg {
    background: #001d43;
    box-shadow: inset 0 0 20px 0 #003587;
    border-radius: 4px;
  }
}
</style>