| | |
| | | </template> |
| | | |
| | | <script> |
| | | import DropdownMenu from '@/components/dropdown-menu.vue' |
| | | import DropdownMenu from '@/pages/video/dropdown-menu.vue' |
| | | |
| | | import {getAuthorInfo, getAuthorVideoPage, getAuthorCollectVideoPage, getAuthorLikeVideoPage} from '@/api/user.js' |
| | | import {subscribe, unSubscribe, delVideo, updateVideo, userDownVideo} from '@/api/video.js' |
| | |
| | | } |
| | | }, |
| | | 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(); |