wangliang_wd

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

... ... @@ -49,6 +49,8 @@ struct ChannelSubscriptionLayout {
changeTab: (index: number) => void = () => {
}
changeTopNavTab: (index: number) => void = () => {
}
aboutToAppear() {
this.changeMyChannelData()
... ... @@ -362,6 +364,7 @@ struct ChannelSubscriptionLayout {
.onClick(() => {
this.indexSettingChannelId = item.channelId
AppStorage.set('indexSettingChannelId', item.channelId)
this.changeTopNavTab(index)
})
})
}
... ...
... ... @@ -287,7 +287,10 @@ export struct TopNavigationComponentNew {
navItem: this.navItem,
changeTab: (index) => {
this.channelJumpToPage(index)
}
},
changeTopNavTab: (index) => {
this.changePage(index)
},
})
.id('channelManageBtn')
.alignRules({
... ...