FinishReceptionDialog.vue 1.32 KB
<template>
  <MessageBox :popupW="704" ref="finish" :content="content" :isFooter="false">
    <view class="footer">
      <view class="footer-btn confirm flex" @click="handleConfirm">
        完成接待
        <text>(推荐)</text>
      </view>
      <view class="footer-btn cancel flex" @click="handleCancel">
        仍要退出
        <text>(不推荐)</text>
      </view>
    </view>
  </MessageBox>
</template>

<script>
export default {
  data() {
    return {
      content: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
    }
  },
  methods: {
    open() {
      this.$refs.finish.open()
    },
    close() {
      this.$refs.finish.close()
    },
    handleConfirm() {
      this.$emit('confirm')
    },
    handleCancel() {
      this.$emit('cancel')
    }
  }
}
</script>

<style scoped lang="scss">
.footer {
  border-top: toRpx(2) solid #eff0f2;
  font-weight: 600;
  font-size: toRpx(32);
  margin-top: toRpx(48);

  .footer-btn {
    justify-content: center;
    margin: toRpx(16) auto 0;
  }

  .confirm {
    width: toRpx(608);
    height: toRpx(80);
    background: #2c66f7;
    border-radius: toRpx(40);
    color: #fff;
  }

  .cancel {
    width: toRpx(608);
    height: toRpx(80);
    background: #f5f6fa;
    border-radius: toRpx(40);
    color: #5b6b8c;
  }
}
</style>