questionJiexi.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
  3. mask-background-color="rgba(255, 255, 255, 0.6);" class="ezy-popup-width-all">
  4. <view class="ezy-dajx-page">
  5. <view class="icon-title-navBar-box">
  6. <view @click="handleBack" class="nav-bar-icon"></view>
  7. <view class="nav-bar-title">单元测试</view>
  8. </view>
  9. <view class="shiti-frame-box">
  10. <view class="dajx-content-box">
  11. <!-- 思路分析 -->
  12. <view class="slfx-title"></view>
  13. <view class="slfx-content"> {{data.answer}}</view>
  14. <!-- <view class="slfx-content"> {{data.answer}}</view> -->
  15. <!-- 视频讲解 -->
  16. <view class="spjj-title"></view>
  17. <view class="spjj-video-box">
  18. <!-- 播放和放大按钮不用可以删除 -->
  19. <view class="play-btn"></view>
  20. <view class="scale-btn"></view>
  21. <!-- 这里放视频 ↓ -->
  22. <view class="spjj-video"></view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </uni-popup>
  28. </template>
  29. <script setup>
  30. import { ref,unref } from "vue";
  31. const popupRef = ref(null);
  32. let data = {};
  33. function showPopup(item) {
  34. data = item;
  35. popupRef.value.open()
  36. }
  37. function handleBack() {
  38. popupRef.value.close()
  39. }
  40. defineExpose({showPopup})
  41. </script>