eggDialog.vue 637 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <uni-popup ref="eggPopup" :animation="false" :is-mask-click="false"
  3. mask-background-color="rgba(255, 255, 255, 0.6);">
  4. <view class="study-egg-dialog">
  5. <view class="egg-content-box">
  6. <view class="egg-title"></view>
  7. <view class="egg-img"></view>
  8. <view class="egg-btn" @click="eggBtn"></view>
  9. </view>
  10. </view>
  11. </uni-popup>
  12. </template>
  13. <script setup>
  14. import { ref } from 'vue';
  15. const eggPopup = ref(null); // 索引
  16. // 打开弹窗
  17. function eggShow() {
  18. eggPopup.value.open();
  19. }
  20. // 开启提分之旅按钮
  21. function eggBtn(){
  22. eggPopup.value.close();
  23. }
  24. defineExpose({
  25. eggShow
  26. })
  27. </script>