duihuanSuccess.vue 836 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <uni-popup ref="dlRef" :animation="true" :is-mask-click="false" mask-background-color="rgba(0,0,0, 0.76);">
  3. <view class="small-one-button-dialog">
  4. <view class="tip-content-box">
  5. <view class="tip-content">兑换成功</view>
  6. <view class="tip-btn-box">
  7. <ezyActiveVue class="ezy-btn-active tip-btn" @aclick="handleConfirm">确认</ezyActiveVue>
  8. </view>
  9. </view>
  10. </view>
  11. </uni-popup>
  12. </template>
  13. <script setup>
  14. import {ref} from "vue"
  15. import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
  16. const dlRef = ref(null);
  17. const emits =defineEmits(['confirm'])
  18. function handleConfirm() {
  19. emits('confirm')
  20. handleClose()
  21. }
  22. function handleShow() {
  23. dlRef.value.open('center')
  24. }
  25. function handleClose() {
  26. dlRef.value.close();
  27. }
  28. defineExpose({
  29. handleShow
  30. })
  31. </script>
  32. <style scoped>
  33. </style>