This commit is contained in:
曹辉 2023-04-27 16:20:12 +08:00
parent 9fd524be32
commit e0ed1e0354
2 changed files with 9 additions and 12 deletions

View File

@ -102,14 +102,13 @@
},
//
videoerror(e) {
console.log(e)
// this.$refs.uToast.show({
// title: '',
// type: 'error',
// duration: '2000'
// })
// this.videoerroshow = false
// this.videoshow = false
this.$refs.uToast.show({
title: '暂无视频',
type: 'error',
duration: '2000'
})
this.videoerroshow = false
this.videoshow = false
},
//novideoplay
novideoplay() {

View File

@ -42,10 +42,8 @@
</view>
</view>
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
<view>
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
:initial-time='videoitem.watchTime' @error='videoerror'></video>
</view>
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"></video>
</u-popup>
<u-toast ref="uToast" />
</view>