更改h5视频播放问题
This commit is contained in:
parent
9b2997b694
commit
e3872c2c4c
@ -743,19 +743,26 @@
|
||||
get() {
|
||||
let that = this
|
||||
// 1.这里引入后端请求数据
|
||||
if(this.videoID){
|
||||
deoList(this.videoID).then(res => {
|
||||
that.videoData([res.data])
|
||||
if (res.data.list.length < that.limit) {
|
||||
this.loadMore = false;
|
||||
}
|
||||
}).catch(err => {
|
||||
return uni.showToast({
|
||||
title: err,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
this.videoID=''
|
||||
}else{
|
||||
videoList().then(res=>{
|
||||
that.videoData(res.data.list);
|
||||
})
|
||||
}
|
||||
|
||||
deoList(this.videoID).then(res => {
|
||||
that.videoData([res.data])
|
||||
if (res.data.list.length < that.limit) {
|
||||
this.loadMore = false;
|
||||
}
|
||||
}).catch(err => {
|
||||
return uni.showToast({
|
||||
title: err,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
// that.isUser ?
|
||||
// myVideoList(that.userUid, {
|
||||
// page: that.page,
|
||||
|
Loading…
x
Reference in New Issue
Block a user