duihuanError.vue 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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">{{ tex }}</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 tex = ref('兑换无效,请重新输入');
  18. const emits =defineEmits(['confirm'])
  19. function handleConfirm() {
  20. emits('confirm')
  21. handleClose()
  22. }
  23. function handleShow(msg) {
  24. tex.value = msg;
  25. dlRef.value.open('center')
  26. }
  27. function handleClose() {
  28. dlRef.value.close();
  29. }
  30. defineExpose({
  31. handleShow
  32. })
  33. </script>
  34. <style scoped>
  35. </style>