修改
This commit is contained in:
parent
d17979d2d1
commit
74af2adae7
@ -44,11 +44,14 @@
|
||||
<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'></video>
|
||||
:initial-time='videoitem.watchTime' @error='videoerror'></video>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<u-empty text="暂无内容" mode="list" icon-size='240' font-size='32'></u-empty>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
@ -95,6 +98,17 @@
|
||||
this.videoshow = false
|
||||
})
|
||||
},
|
||||
//视频播放出错
|
||||
videoerror(e) {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频',
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
setTimeout(e => {
|
||||
this.videoshow = false
|
||||
}, 1000)
|
||||
},
|
||||
//novideoplay未购买
|
||||
novideoplay() {
|
||||
this.$refs.uToast.show({
|
||||
|
||||
@ -44,11 +44,14 @@
|
||||
<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'></video>
|
||||
:initial-time='videoitem.watchTime' @error='videoerror'></video>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<u-empty text="暂无内容" mode="list" icon-size='240' font-size='32'></u-empty>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
@ -93,6 +96,17 @@
|
||||
this.videoshow = false
|
||||
})
|
||||
},
|
||||
//视频播放出错
|
||||
videoerror(e) {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频',
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
setTimeout(e => {
|
||||
this.videoshow = false
|
||||
}, 1000)
|
||||
},
|
||||
//视频播放
|
||||
videoplay(item) {
|
||||
if (item.itemDirectoryUrl) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user