This commit is contained in:
yanghang
2025-07-11 18:06:09 +08:00
parent c81bc91485
commit eee760abfd
3 changed files with 21 additions and 6 deletions
+19 -4
View File
@@ -1,8 +1,14 @@
<template>
<view class="video-view-box" @click="showModel = true">
播放
<uv-overlay :show="showModel" opacity=".6" @click="showModel = false">
<view class="overlay-box">
<view class="img-box">
<image
class="icon"
src="@/static/images/course/play.png"
style="width: 100%;height: 100%;"
></image>
</view>
<uv-overlay :show="showModel" opacity=".6" @click.stop="showModel = false">
<view class="overlay-box" @click.stop="showModel = false">
<video class="video-cont-center" v-if="showModel && fileUrlShow" :src="fileUrlShow" controls @error="playError" object-fit="contain"></video>
</view>
</uv-overlay>
@@ -86,7 +92,16 @@
.video-view-box{
width: 100%;
height: 100%;
background-color: #eee;
background-color: #fafafa !important;
position: relative;
}
.img-box{
position: absolute;
left: 50%;
top: 50%;
width: 100rpx;
height: 100rpx;
transform: translate(-50%, -50%);
}
.overlay-box .video-cont-center{
max-width: 100%;
+1 -1
View File
@@ -543,7 +543,7 @@ const audioCacheObj = computed(() => storageStore.audioObj)
height: 269rpx;
border-radius: 15rpx;
overflow: hidden;
background-color: #eee;
background-color: #fafafa;
margin-bottom: 20rpx;
}
}
+1 -1
View File
@@ -689,7 +689,7 @@ const finishQuestionNow = (data) => {
.then(res=> {
// common.msg('完成成功,开始获取评分维度数据!')
let _state = res.body.chatBody.processStat
if(_state = 'ER'){
if(_state === 'ER'){
common.msg('提交答案失败!')
return
}