duihuanError.vue 585 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <uni-popup ref="dlRef" :animation="true" :is-mask-click="false" mask-background-color="rgba(255, 255, 255, 0.6);">
  3. <view>兑换无效,请重新输入</view>
  4. <view @click="handleConfirm">确认</view>
  5. </uni-popup>
  6. </template>
  7. <script setup>
  8. import {ref} from "vue"
  9. const dlRef = ref(null);
  10. const emits =defineEmits(['confirm'])
  11. function handleConfirm() {
  12. emits('confirm')
  13. handleClose()
  14. }
  15. function handleShow() {
  16. dlRef.value.open('center')
  17. }
  18. function handleClose() {
  19. dlRef.value.close();
  20. }
  21. defineExpose({
  22. handleShow
  23. })
  24. </script>
  25. <style scoped>
  26. </style>