wangliang_wd

feat:优化首页频道选择逻辑

@@ -49,6 +49,8 @@ struct ChannelSubscriptionLayout { @@ -49,6 +49,8 @@ struct ChannelSubscriptionLayout {
49 49
50 changeTab: (index: number) => void = () => { 50 changeTab: (index: number) => void = () => {
51 } 51 }
  52 + changeTopNavTab: (index: number) => void = () => {
  53 + }
52 54
53 aboutToAppear() { 55 aboutToAppear() {
54 this.changeMyChannelData() 56 this.changeMyChannelData()
@@ -362,6 +364,7 @@ struct ChannelSubscriptionLayout { @@ -362,6 +364,7 @@ struct ChannelSubscriptionLayout {
362 .onClick(() => { 364 .onClick(() => {
363 this.indexSettingChannelId = item.channelId 365 this.indexSettingChannelId = item.channelId
364 AppStorage.set('indexSettingChannelId', item.channelId) 366 AppStorage.set('indexSettingChannelId', item.channelId)
  367 + this.changeTopNavTab(index)
365 }) 368 })
366 }) 369 })
367 } 370 }
@@ -287,7 +287,10 @@ export struct TopNavigationComponentNew { @@ -287,7 +287,10 @@ export struct TopNavigationComponentNew {
287 navItem: this.navItem, 287 navItem: this.navItem,
288 changeTab: (index) => { 288 changeTab: (index) => {
289 this.channelJumpToPage(index) 289 this.channelJumpToPage(index)
290 - } 290 + },
  291 + changeTopNavTab: (index) => {
  292 + this.changePage(index)
  293 + },
291 }) 294 })
292 .id('channelManageBtn') 295 .id('channelManageBtn')
293 .alignRules({ 296 .alignRules({