| | |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.getAuthorInfo(); |
| | | if (this.currentTab === 'works') { |
| | | this.videoQuery.pageNumber = 1 |
| | | this.nomoreVideo = false |
| | | this.getAuthorVideoPage(); |
| | | } else if (this.currentTab === 'collect') { |
| | | this.collectVideoQuery.pageNumber = 1 |
| | | this.nomoreCollectVideo = false |
| | | this.getAuthorCollectVideoPage() |
| | | } else if (this.currentTab === 'likes') { |
| | | this.likeVideoQuery.pageNumber = 1 |
| | | this.nomoreLikeVideo = false |
| | | this.getAuthorLikeVideoPage() |
| | | if (this.authorId) { |
| | | this.getAuthorInfo(); |
| | | if (this.currentTab === 'works') { |
| | | this.videoQuery.pageNumber = 1 |
| | | this.nomoreVideo = false |
| | | this.getAuthorVideoPage(); |
| | | } else if (this.currentTab === 'collect') { |
| | | this.collectVideoQuery.pageNumber = 1 |
| | | this.nomoreCollectVideo = false |
| | | this.getAuthorCollectVideoPage() |
| | | } else if (this.currentTab === 'likes') { |
| | | this.likeVideoQuery.pageNumber = 1 |
| | | this.nomoreLikeVideo = false |
| | | this.getAuthorLikeVideoPage() |
| | | } |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | console.log("收到参数", option); |
| | | this.authorId = option.authorId; |
| | | this.getAuthorInfo(); |
| | | this.getAuthorVideoPage(); |