<template>
    <!--<van-overlay :show="show" @click="">-->
      <div class="wrapper" :show="show" @click.stop>
          <div class="title">
              温馨提示
          </div>
          <div class="message">
              本次问诊正在进行，确定退出？
          </div>
          <div class="buttonBox">
              <span class="button okBtn" @click="confirm">确定</span>
              <span class="button cancelBtn" @click="cancel">取消</span>
          </div>
      </div>
    <!--</van-overlay>-->
</template>
<script>
export default {
    name:"ConfirmBox",
    props:["show"],
    methods: {
        confirm(){
            this.$emit("confirmDialog")
        },
        cancel(){
            this.$emit("cancelDialog")
        }
    }
}
</script>
<style lang="less" scoped>
.wrapper{
    position: fixed;
  top: 45%;
  left: 50%;
  width: 6.4rem;
  height: 3.36rem;
  overflow: hidden;
  font-size: 16px;
  background-color: #fff;
  border-radius: 16px;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-transition-property: opacity, -webkit-transform;
  transition-property: opacity, -webkit-transform;
  transition-property: transform, opacity;
  transition-property: transform, opacity, -webkit-transform;
}
.title {
    height: .44rem;
  line-height: .44rem;
  font-size: .32rem;
  color: #333;
  width: 100%;
  text-align: center;
  padding: .6rem 0  .4rem 0;
}
.message {
    height: .42rem;
    line-height: .42rem;
    font-size: .30rem;
    color: #333;
    width: 100%;
    text-align: center;
    padding: 0 0  .6rem 0;
}
.buttonBox {
    position: absolute;
    bottom: 0;
    height: .9rem;
    line-height: .9rem;
    width: 100%;
}
.button{
    display: inline-block;
    width: 50%;
    text-align: center;
    box-sizing: border-box;
    font-size: .32rem;
    border: 1px solid #E6E6E6;
}
.okBtn {
    color: #FF6167;
}
</style>
