detailDialog.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <uni-popup ref="detailPopup" :animation="false" :is-mask-click="false"
  3. mask-background-color="rgba(51, 137, 217, 0.65);">
  4. <view class="mall-detail-dialog">
  5. <view class="detail-content-box">
  6. <icon class="yfmx-title"></icon>
  7. <icon class="dialog-close-btn" @click="detailCloseBtn"></icon>
  8. <view class="detail-body-box">
  9. <!-- ↓需要换成从接口中取得 wgy -->
  10. <view class="detail-item-box">
  11. <!-- radio选中状态需要改成动态的 wgy -->
  12. <radio value="zhifubao" checked="true" activeBackgroundColor="transparent" class="detail-radio radio-checked"/>
  13. <img src="/static/images/my/about-icon.png" class="mall-image"/>
  14. <view class="content-body-box">
  15. <view class="content-name">
  16. <view class="name-text">数学暑假进阶L1</view>
  17. </view>
  18. <view class="content-text">适用于L1和学前,介绍介绍,适用于L1和学前,介绍介绍适用于L1和学前,介绍介绍</view>
  19. <view class="content-row">
  20. <view class="content-yuanjia">¥39.9</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="detail-bottom-box">
  26. <view><radio value="zhifubao" checked="true" activeBackgroundColor="transparent" class="detail-radio radio-checked"/>全选</view>
  27. </view>
  28. </view>
  29. </view>
  30. </uni-popup>
  31. </template>
  32. <script setup>
  33. import { ref } from 'vue';
  34. const showPayWay = ref(true)
  35. function switchPayWay(){
  36. showPayWay.value = !showPayWay.value
  37. }
  38. const $emit = defineEmits(['payBtn'])
  39. const detailPopup = ref(null); // 索引
  40. // 打开弹窗
  41. function detailShow() {
  42. detailPopup.value.open();
  43. }
  44. // 开启提分之旅按钮
  45. function detailPayBtn(){
  46. $emit('payBtn')
  47. }
  48. function detailCloseBtn(){
  49. detailPopup.value.close();
  50. }
  51. defineExpose({
  52. detailShow,detailCloseBtn
  53. })
  54. </script>