jstxDownDialog.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!-- 生成题库弹窗 -->
  2. <template>
  3. <uni-popup ref="tipBigPopup" :animation="false" :is-mask-click="false"
  4. mask-background-color="rgba(0,0,0, 0.76);">
  5. <view class="ezy-tip-dialog sxtk-sc-dialog">
  6. <view class="tip-content-box">
  7. <view class="tip-title">{{title}}</view>
  8. <view class="tip-content sxtk-content" v-if="content">
  9. <view class="content-text">
  10. <view>用户您好:</view>
  11. {{content}}
  12. </view>
  13. </view>
  14. <view class="tip-btn-box">
  15. <ezyActiveVue class="ezy-btn-active confirm-btn" @aclick="confirmBtn">下载到手机</ezyActiveVue>
  16. <ezyActiveVue class="ezy-btn-active not-confirm-btn" @aclick="handleClose">取消</ezyActiveVue>
  17. </view>
  18. </view>
  19. </view>
  20. </uni-popup>
  21. </template>
  22. <script setup>
  23. import { ref } from 'vue';
  24. import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
  25. const props = defineProps({
  26. title: {
  27. type: String,
  28. default: '温馨提示'
  29. },
  30. content: {
  31. type: String,
  32. default: ''
  33. },
  34. });
  35. const tipBigPopup = ref(null); // 索引
  36. const $emit = defineEmits(['confirm-btn'])
  37. // 打开弹窗
  38. function handleShow() {
  39. tipBigPopup.value.open();
  40. }
  41. // 取消
  42. function handleClose() {
  43. tipBigPopup.value.close();
  44. }
  45. // 确认
  46. function confirmBtn(){
  47. $emit('confirm-btn');
  48. tipBigPopup.value.close();
  49. }
  50. defineExpose({
  51. handleShow,
  52. handleClose
  53. })
  54. </script>
  55. <style>
  56. </style>