12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
- mask-background-color="rgba(255, 255, 255, 0.6);" class="ezy-popup-width-all">
- <view class="ezy-dajx-page">
- <view class="icon-title-navBar-box">
- <view @click="handleBack" class="nav-bar-icon"></view>
- <view class="nav-bar-title">单元测试</view>
- </view>
- <view class="shiti-frame-box">
- <view class="dajx-content-box">
- <!-- 思路分析 -->
- <view class="slfx-title"></view>
- <view class="slfx-content"> {{data.answer}}</view>
- <!-- <view class="slfx-content"> {{data.answer}}</view> -->
-
- <!-- 视频讲解 -->
- <view class="spjj-title"></view>
- <view class="spjj-video-box">
- <!-- 播放和放大按钮不用可以删除 -->
- <view class="play-btn"></view>
- <view class="scale-btn"></view>
- <!-- 这里放视频 ↓ -->
- <view class="spjj-video"></view>
- </view>
- </view>
- </view>
- </view>
-
- </uni-popup>
- </template>
- <script setup>
- import { ref,unref } from "vue";
- const popupRef = ref(null);
- let data = {};
- function showPopup(item) {
- data = item;
- popupRef.value.open()
- }
-
- function handleBack() {
- popupRef.value.close()
- }
-
- defineExpose({showPopup})
- </script>
|