questionJiexi.vue 1.2 KB

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