更改h5视频播放问题

This commit is contained in:
jia 2023-09-04 19:52:13 +08:00
parent 9b2997b694
commit e3872c2c4c

View File

@ -743,19 +743,26 @@
get() { get() {
let that = this let that = this
// 1.这里引入后端请求数据 // 1.这里引入后端请求数据
if(this.videoID){
deoList(this.videoID).then(res => { deoList(this.videoID).then(res => {
that.videoData([res.data]) that.videoData([res.data])
if (res.data.list.length < that.limit) { if (res.data.list.length < that.limit) {
this.loadMore = false; this.loadMore = false;
} }
}).catch(err => { }).catch(err => {
return uni.showToast({ return uni.showToast({
title: err, title: err,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
}) })
this.videoID=''
}else{
videoList().then(res=>{
that.videoData(res.data.list);
})
}
// that.isUser ? // that.isUser ?
// myVideoList(that.userUid, { // myVideoList(that.userUid, {
// page: that.page, // page: that.page,