duihuanSuccess.vue 551 B

1234567891011121314151617181920212223242526272829303132333435
  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. }
  14. function handleShow() {
  15. dlRef.value.open('center')
  16. }
  17. function handleClose() {
  18. dlRef.value.close();
  19. }
  20. defineExpose({
  21. handleShow
  22. })
  23. </script>
  24. <style scoped>
  25. </style>