productDialog.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <uni-popup ref="detailPopup" :animation="false" :is-mask-click="false"
  3. mask-background-color="rgba(51, 137, 217, 0.65);" style="z-index: 101;">
  4. <view class="mall-detail-dialog">
  5. <view class="detail-content-box">
  6. <icon class="cpmx-title"></icon>
  7. <icon class="dialog-close-btn" @click="detailCloseBtn"></icon>
  8. <view class="product-body-box">
  9. <!-- ↓需要换成从接口中取得 wgy -->
  10. <view class="detail-item-box">
  11. <img src="/static/images/my/about-icon.png" class="mall-image"/>
  12. <view class="content-body-box">
  13. <view class="content-name">
  14. <view class="name-text">数学暑假进阶L1</view>
  15. </view>
  16. <view class="content-text">适用于L1和学前,介绍介绍,适用于L1和学前,介绍介绍适用于L1和学前,介绍介绍</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </uni-popup>
  23. </template>
  24. <script setup>
  25. import { ref } from 'vue';
  26. const $emit = defineEmits(['payBtn'])
  27. const detailPopup = ref(null); // 索引
  28. // 打开弹窗
  29. function detailShow() {
  30. detailPopup.value.open();
  31. }
  32. // 开启提分之旅按钮
  33. function detailPayBtn(){
  34. $emit('payBtn')
  35. }
  36. function detailCloseBtn(){
  37. detailPopup.value.close();
  38. }
  39. defineExpose({
  40. detailShow
  41. })
  42. </script>