Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -495,10 +495,14 @@ export struct TopNavigationComponentNew { | @@ -495,10 +495,14 @@ export struct TopNavigationComponentNew { | ||
| 495 | * 频道id变化,即指定频道跳转场景 | 495 | * 频道id变化,即指定频道跳转场景 |
| 496 | */ | 496 | */ |
| 497 | onAssignChannelChange() { | 497 | onAssignChannelChange() { |
| 498 | + | ||
| 498 | if (!this.isCurrentPage()) { | 499 | if (!this.isCurrentPage()) { |
| 499 | return | 500 | return |
| 500 | } | 501 | } |
| 501 | let channelId = this.assignChannel.channelId | 502 | let channelId = this.assignChannel.channelId |
| 503 | + | ||
| 504 | + Logger.debug(TAG,'------onAssignChannelChange--------->'+channelId+' ==>'+this._currentNavIndex) | ||
| 505 | + | ||
| 502 | let index = -1 | 506 | let index = -1 |
| 503 | if (this._currentNavIndex === 0) { | 507 | if (this._currentNavIndex === 0) { |
| 504 | // 第一个,新闻,先拿我的,再拿其他 | 508 | // 第一个,新闻,先拿我的,再拿其他 |
| @@ -559,12 +563,14 @@ export struct TopNavigationComponentNew { | @@ -559,12 +563,14 @@ export struct TopNavigationComponentNew { | ||
| 559 | for (let i = 0; i < this.moreChannelList.length; i++) { | 563 | for (let i = 0; i < this.moreChannelList.length; i++) { |
| 560 | let topNavDTO: TopNavDTO = this.moreChannelList[i] | 564 | let topNavDTO: TopNavDTO = this.moreChannelList[i] |
| 561 | if (topNavDTO.channelId?.toString() === channelId) { | 565 | if (topNavDTO.channelId?.toString() === channelId) { |
| 566 | + this.moreChannelList.splice(i,1) | ||
| 562 | return topNavDTO | 567 | return topNavDTO |
| 563 | } | 568 | } |
| 564 | } | 569 | } |
| 565 | for (let j = 0; j < this.localChannelList.length; j++) { | 570 | for (let j = 0; j < this.localChannelList.length; j++) { |
| 566 | let topNavDTO: TopNavDTO = this.localChannelList[j] | 571 | let topNavDTO: TopNavDTO = this.localChannelList[j] |
| 567 | if (topNavDTO.channelId?.toString() === channelId) { | 572 | if (topNavDTO.channelId?.toString() === channelId) { |
| 573 | + this.localChannelList.splice(j,1) | ||
| 568 | return topNavDTO | 574 | return topNavDTO |
| 569 | } | 575 | } |
| 570 | } | 576 | } |
-
Please register or login to post a comment