comingSoonDialog.vue 796 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!-- 大弹窗 三~四行文字 -->
  2. <template>
  3. <uni-popup ref="comingSoonPopup" :animation="false" :is-mask-click="false"
  4. mask-background-color="rgba(51, 137, 217, 0.65);">
  5. <view class="coming-soon-dialog">
  6. <icon></icon>
  7. <view class="coming-soon-return-btn" @click="returnBtn"></view>
  8. </view>
  9. </uni-popup>
  10. </template>
  11. <script setup>
  12. import { ref } from 'vue';
  13. const comingSoonPopup = ref(null); // 索引
  14. const $emit = defineEmits(['return-btn'])
  15. // 打开弹窗
  16. function handleShow() {
  17. comingSoonPopup.value.open();
  18. }
  19. // 取消
  20. function handleClose() {
  21. comingSoonPopup.value.close();
  22. }
  23. // 确认
  24. function returnBtn(){
  25. comingSoonPopup.value.close();
  26. $emit('return-btn');
  27. }
  28. defineExpose({
  29. handleShow
  30. })
  31. </script>
  32. <style>
  33. </style>