|
@@ -266,19 +266,7 @@ export default {
|
|
|
if (this.activeName === 'video') {
|
|
if (this.activeName === 'video') {
|
|
|
this.userVideoListWrapper(this.currentPage, this.userId)
|
|
this.userVideoListWrapper(this.currentPage, this.userId)
|
|
|
} else if (this.activeName === 'image') {
|
|
} else if (this.activeName === 'image') {
|
|
|
- getUserAlbums1(this.userId).then(resp => {
|
|
|
|
|
- if (resp.code === 0) {
|
|
|
|
|
- const respData = resp.data
|
|
|
|
|
- if (respData.length !== 0) {
|
|
|
|
|
- this.showEmpty = false
|
|
|
|
|
- for (const item of respData) {
|
|
|
|
|
- this.dataList.push(item)
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- this.showEmpty = true
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.userAlbumWrapper(this.currentPage, this.userId)
|
|
|
} else if (this.activeName === 'audio') {
|
|
} else if (this.activeName === 'audio') {
|
|
|
getUserAudios(this.userId, this.currentPage).then(resp => {
|
|
getUserAudios(this.userId, this.currentPage).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
@@ -325,6 +313,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ userAlbumWrapper(pageNumber, userId) {
|
|
|
|
|
+ getUserAlbums1(pageNumber, userId).then(resp => {
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ const respData = resp.data
|
|
|
|
|
+ this.dataList = respData.list
|
|
|
|
|
+ this.totalSize = respData.totalSize
|
|
|
|
|
+ if (this.dataList.length !== 0) {
|
|
|
|
|
+ this.showEmpty = false
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.showEmpty = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
userStatusListWrapper(pageNumber, userId) {
|
|
userStatusListWrapper(pageNumber, userId) {
|
|
|
userStatus(userId, pageNumber).then(resp => {
|
|
userStatus(userId, pageNumber).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|