解决视频下拉数据问题
This commit is contained in:
parent
a88fbe0ee2
commit
22725b4c2e
@ -704,8 +704,13 @@
|
||||
// });
|
||||
// })'
|
||||
// that.isUser ?
|
||||
videoList().then(res=>{
|
||||
that.getVideoData(res.data.list);
|
||||
videoList({
|
||||
page: that.page,
|
||||
limit: that.limit,
|
||||
id:this.videoID
|
||||
|
||||
}).then(res=>{
|
||||
that.getVideoData(res.data.list);
|
||||
})
|
||||
|
||||
|
||||
@ -1325,7 +1330,7 @@
|
||||
|
||||
.userInfo {
|
||||
position: absolute;
|
||||
bottom: 120px;
|
||||
bottom: 400rpx;
|
||||
right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -424,6 +424,7 @@
|
||||
communityId: '',
|
||||
Listcount: '',
|
||||
loadMore: true,
|
||||
videoshow:true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -741,9 +742,11 @@
|
||||
}
|
||||
},
|
||||
get() {
|
||||
|
||||
let that = this
|
||||
|
||||
// 1.这里引入后端请求数据
|
||||
if(this.videoID){
|
||||
if(that.videoshow){
|
||||
deoList(this.videoID).then(res => {
|
||||
that.videoData([res.data])
|
||||
if (res.data.list.length < that.limit) {
|
||||
@ -756,13 +759,32 @@
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
this.videoID=''
|
||||
this.videoshow=false
|
||||
}else{
|
||||
videoList().then(res=>{
|
||||
that.videoData(res.data.list);
|
||||
})
|
||||
}
|
||||
|
||||
// videoList().then(res=>{
|
||||
// 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
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// that.isUser ?
|
||||
// myVideoList(that.userUid, {
|
||||
// page: that.page,
|
||||
@ -780,7 +802,8 @@
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// });
|
||||
// }) :
|
||||
// })
|
||||
//:
|
||||
// graphicLstApi({
|
||||
// page: that.page,
|
||||
// limit: that.limit,
|
||||
@ -1412,7 +1435,7 @@
|
||||
|
||||
.userInfo {
|
||||
position: absolute;
|
||||
bottom: 60rpx;
|
||||
bottom: 420rpx;
|
||||
right: 20rpx;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
|
Loading…
x
Reference in New Issue
Block a user