解决视频下拉数据问题

This commit is contained in:
jia 2023-09-05 11:30:45 +08:00
parent a88fbe0ee2
commit 22725b4c2e
2 changed files with 40 additions and 12 deletions

View File

@ -704,7 +704,12 @@
// }); // });
// })' // })'
// that.isUser ? // that.isUser ?
videoList().then(res=>{ videoList({
page: that.page,
limit: that.limit,
id:this.videoID
}).then(res=>{
that.getVideoData(res.data.list); that.getVideoData(res.data.list);
}) })
@ -1325,7 +1330,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 120px; bottom: 400rpx;
right: 10px; right: 10px;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -424,6 +424,7 @@
communityId: '', communityId: '',
Listcount: '', Listcount: '',
loadMore: true, loadMore: true,
videoshow:true
} }
}, },
watch: { watch: {
@ -741,9 +742,11 @@
} }
}, },
get() { get() {
let that = this let that = this
// 1.这里引入后端请求数据 // 1.这里引入后端请求数据
if(this.videoID){ if(that.videoshow){
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) {
@ -756,10 +759,29 @@
duration: 2000 duration: 2000
}); });
}) })
this.videoID='' this.videoshow=false
}else{ }else{
videoList().then(res=>{ // videoList().then(res=>{
that.videoData(res.data.list); // that.videoData(res.data.list);
// })
// console.log(that.userUid,that.videoID)
videoList({
page: that.page,
limit: that.limit,
id:this.videoID
// is_star: that.isSatrt,
// community_id: that.videoID
}).then(res => {
that.videoData(res.data.list)
if (res.data.list.length < that.limit) {
this.loadMore = false;
}
}).catch(err => {
return uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}) })
} }
@ -780,7 +802,8 @@
// icon: 'none', // icon: 'none',
// duration: 2000 // duration: 2000
// }); // });
// }) : // })
//:
// graphicLstApi({ // graphicLstApi({
// page: that.page, // page: that.page,
// limit: that.limit, // limit: that.limit,
@ -1412,7 +1435,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 60rpx; bottom: 420rpx;
right: 20rpx; right: 20rpx;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;