<template>
  <div class="tip_modal" v-if="tipFlag" @mousewheel="mousewheel">
    <div class="modal_content">
      <p>经销商已上传反馈链接，此平台不可删除</p>
      <div class="button">
        <div class="current_button" @click="closeModal">确定</div>
        <div class="current_button" @click="closeModal">取消</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    tipFlag: {
      type: Boolean,
      default: false,
    }
  },
  methods: {
    mousewheel: function (e) {
      e.preventDefault();
    },
    closeModal: function() {
        this.$emit('close_tip_modal');
    }
  },
};
</script>

<style scoped lang="less">
.tip_modal {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(127, 127, 127, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  .modal_content {
    width: 400px;
    height: 200px;
    background-color: #fff;
    transform: translateY(-150px);
    p {
      font-size: 16px;
      margin-left: 0px;
      margin-top: 40px;
    }
    .button {
      margin-top: 50px;
      display: flex;
      justify-content: center;
    }
  }
}
</style>
