解决视频下拉数据问题
This commit is contained in:
parent
a88fbe0ee2
commit
22725b4c2e
@ -704,8 +704,13 @@
|
|||||||
// });
|
// });
|
||||||
// })'
|
// })'
|
||||||
// that.isUser ?
|
// that.isUser ?
|
||||||
videoList().then(res=>{
|
videoList({
|
||||||
that.getVideoData(res.data.list);
|
page: that.page,
|
||||||
|
limit: that.limit,
|
||||||
|
id:this.videoID
|
||||||
|
|
||||||
|
}).then(res=>{
|
||||||
|
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;
|
||||||
|
@ -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,13 +759,32 @@
|
|||||||
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
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// that.isUser ?
|
// that.isUser ?
|
||||||
// myVideoList(that.userUid, {
|
// myVideoList(that.userUid, {
|
||||||
// page: that.page,
|
// page: that.page,
|
||||||
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user