fix: 去除鼓励语句,视频遮罩层调整

This commit is contained in:
杨航
2025-09-11 10:30:41 +08:00
parent 7463292daa
commit 41b8ae1889
4 changed files with 34 additions and 23 deletions
+12 -4
View File
@@ -1,11 +1,13 @@
<template>
<view v-bind="$attrs">
<image :src="imgUrlShow" fit="cover" :mode="mode" @click="showDetail" style="width: 100%;height: 100%;"></image>
<uv-overlay :show="showModel" opacity=".6" @click="showModel = false">
<view class="overlay-box">
<!-- <uv-overlay :show="showModel" opacity=".6" @click="showModel = false"> -->
<uni-popup ref="PopupRef" class="popup">
<view class="overlay-box" @click="closePopup">
<image class="detail-img" :src="imgUrlShow" :mode="mode"></image>
</view>
</uv-overlay>
</uni-popup>
<!-- </uv-overlay> -->
</view>
</template>
@@ -90,9 +92,14 @@
}
},
methods: {
closePopup(){
this.showModel = false
this.$refs.PopupRef.close()
},
showDetail(){
if(!!this.previewDetail){
this.showModel = true
this.$refs.PopupRef.open()
}
},
getPreviewUrlBlob(id) {
@@ -151,7 +158,8 @@
<style lang="scss" scoped>
.overlay-box{
position: relative;
height: 100%;
height: 100vh;
width: 100vw;
.detail-img{
position: absolute;
left: 50%;
+14 -11
View File
@@ -1,5 +1,6 @@
<template>
<view class="video-view-box" @click="showModel = true">
<view class="video-view-box" @click="showModelNow">
<view class="img-box">
<image
class="icon"
@@ -7,8 +8,9 @@
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">
<!-- <uv-overlay :show="showModel" opacity=".6" @click.stop="showModel = false"> -->
<uni-popup ref="PopupRef" class="popup">
<view class="overlay-box" @click="playEnded">
<video class="video-cont-center"
:id="`video`+ fileId"
ref="playerRef"
@@ -19,7 +21,7 @@
@ended="playEnded"
object-fit="contain"></video>
</view>
</uv-overlay>
</uni-popup>
</view>
</template>
@@ -66,15 +68,15 @@
}
},
methods: {
showModelNow(){
this.$refs.PopupRef.open()
this.showModel = true
},
playError(info){
console.log('err',info)
console.log(this.$refs.playerRef)
console.log(this.videoContext)
// this.$refs.playerRef.stop();
},
playEnded(){
// let _newDate = new Date().getTime()
// this.fileUrlShow = getPreviewFileUrl(this.fileId)+'?t=' + _newDate
this.$refs.PopupRef.close()
this.showModel = false
},
getPreviewUrlBlob(id) {
@@ -145,7 +147,8 @@
}
.overlay-box{
position: relative;
width: 100%;
height: 100%;
width: 100vw;
height: 100vh;
overflow: hidden;
}
</style>
+2 -2
View File
@@ -118,11 +118,11 @@
<image class="icon icon-iamge" src="@/static/images/course/goon.png" ></image></view>
</view>
<!-- 简答鼓励信息 -->
<view class="talking-cont last-cont" v-if=" [5].indexOf(type) >= 0 && !dataInfo.isLoading">
<!-- <view class="talking-cont last-cont" v-if=" [5].indexOf(type) >= 0 && !dataInfo.isLoading">
<view class="talking-text">
{{ changeBr(dataInfo.suggestContent || '--') }}
</view>
</view>
</view> -->
</view>
</view>
<!-- ai回答 -->