| 123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <uni-popup ref="dlRef" :animation="true" :is-mask-click="false" mask-background-color="rgba(255, 255, 255, 0.6);">
- <view>兑换成功</view>
- <view @click="handleConfirm">确认</view>
- </uni-popup>
- </template>
- <script setup>
- import {ref} from "vue"
- const dlRef = ref(null);
- const emits =defineEmits(['confirm'])
- function handleConfirm() {
- emits('confirm')
- handleClose()
- }
- function handleShow() {
- dlRef.value.open('center')
- }
- function handleClose() {
- dlRef.value.close();
- }
- defineExpose({
- handleShow
- })
- </script>
- <style scoped>
- </style>
|