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