daoTipDialog.vue 750 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <uni-popup ref="daoTipPopup" type="bottom">
  3. <view class="game-popup-box">
  4. {{productTip}}
  5. <view style="background-color: #fff;" :style="{backgroundImage: 'url(' + productTip + ')'}">123123</view>
  6. <view @click="handleClose">我知道了</view>
  7. </view>
  8. </uni-popup>
  9. </template>
  10. <script setup>
  11. import {ref} from "vue";
  12. const props = defineProps({
  13. productTip: {
  14. type: String,
  15. default: ''
  16. },
  17. });
  18. const daoTipPopup = ref(null);
  19. const $emit = defineEmits(['dao-tip-close'])
  20. function handleShow() {
  21. daoTipPopup.value.open();
  22. }
  23. function handleClose() {
  24. daoTipPopup.value.close();
  25. $emit('dao-tip-close');
  26. }
  27. defineExpose({
  28. handleShow
  29. })
  30. </script>
  31. <style>
  32. </style>