|
|
@@ -138,7 +138,7 @@
|
|
|
<el-row v-if="showEmpty" class="not-result">
|
|
|
<el-col :span="12" :offset="6">
|
|
|
<img src="@/assets/img/icon/not-collection.png">
|
|
|
- <div>暂无内容</div>
|
|
|
+ <div>该用户还没发布任何东西呢</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
statusList: [],
|
|
|
followerList: [],
|
|
|
followingList: [],
|
|
|
- showEmpty: false,
|
|
|
+ showEmpty: true,
|
|
|
videoCount: 0,
|
|
|
statusCount: 0,
|
|
|
followingCount: 0,
|
|
|
@@ -228,7 +228,8 @@ export default {
|
|
|
this.followerCount = resData.userFollowCount.followerCount
|
|
|
}
|
|
|
})
|
|
|
- this.userVideoListWrapper(1, this.userId, 0)
|
|
|
+ //this.userVideoListWrapper(1, this.userId, 0)
|
|
|
+ this.getData()
|
|
|
},
|
|
|
mounted() {
|
|
|
// 当窗口宽度改变时获取屏幕宽度
|
|
|
@@ -282,44 +283,18 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.$router.push(path)
|
|
|
-
|
|
|
- /*this.currentPage = 1
|
|
|
- this.lastId = 0
|
|
|
- this.userStatusListWrapper(this.currentPage, this.userId, this.lastId)*/
|
|
|
} else if (this.activeName === 'video') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*this.currentPage = 1
|
|
|
- this.lastId = 0
|
|
|
- this.userVideoListWrapper(this.currentPage, this.userId, this.lastId)*/
|
|
|
} else if (this.activeName === 'image') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*this.currentPage = 1
|
|
|
- this.lastId = 0
|
|
|
- this.userVideoListWrapper(this.currentPage, this.userId, this.lastId)*/
|
|
|
} else if (this.activeName === 'audio') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*this.currentPage = 1
|
|
|
- this.lastId = 0
|
|
|
- this.userVideoListWrapper(this.currentPage, this.userId, this.lastId)*/
|
|
|
} else if (this.activeName === 'article') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*this.currentPage = 1
|
|
|
- this.lastId = 0
|
|
|
- this.userVideoListWrapper(this.currentPage, this.userId, this.lastId)*/
|
|
|
} else if (this.activeName === 'following') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*getUserFollowing(this.userId).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.followingList = res.data
|
|
|
- }
|
|
|
- })*/
|
|
|
} else if (this.activeName === 'follower') {
|
|
|
this.goToTab(this.activeName)
|
|
|
- /*getUserFollower(this.userId).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.followerList = res.data
|
|
|
- }
|
|
|
- })*/
|
|
|
}
|
|
|
},
|
|
|
goToTab(activeName) {
|