Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-09-19 14:51:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
489a4b6fcf6424a7d9c3a51abb39de2e8ccac18f
489a4b6f
1 parent
a34562ba
feat:优化首页频道选择逻辑
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
View file @
489a4b6
...
...
@@ -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)
})
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
489a4b6
...
...
@@ -287,7 +287,10 @@ export struct TopNavigationComponentNew {
navItem: this.navItem,
changeTab: (index) => {
this.channelJumpToPage(index)
}
},
changeTopNavTab: (index) => {
this.changePage(index)
},
})
.id('channelManageBtn')
.alignRules({
...
...
Please
register
or
login
to post a comment