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-08-30 09:57:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9eb453db128fbdc9fa3cfb2f310a7772e1d695df
9eb453db
1 parent
c4e11977
feat:优化频道选择
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
sight_harmony/features/wdBean/src/main/ets/bean/navigation/TopNavDTO.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
sight_harmony/features/wdBean/src/main/ets/bean/navigation/TopNavDTO.ets
View file @
9eb453d
...
...
@@ -4,7 +4,7 @@
export class TopNavDTO {
channelId: number = 0; //频道id
channelStyle: number = 0; //频道样式;1-沉浸式;2-信息流
channelType: number = 0; //
频道样式;1-沉浸式;2-信息流;3-特殊频道(跳转指定页面的,如版面)
channelType: number = 0; //
// 频道类型:1:主频道 2:地方频道
defaultPermitted: number = 0; //允许设置为默认首页 0:否, 1:是;【首页设置频道】
delPermitted: number = 0; //允许删除 0:否, 1:是;【撤销属性】
fontCColor: string = ''; // 频道展示样式颜色(选中状态)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/ChannelSubscriptionLayout.ets
View file @
9eb453d
...
...
@@ -80,11 +80,12 @@ struct ChannelSubscriptionLayout {
}
/*
删除的频道信息回到原栏目中去
*channelType 频道类型:1:主频道 2:地方频道
*/
if (item.
moreChannel === '1'
) {
if (item.
channelType === 1
) {
this.moreChannelList.unshift(item)
}
if (item.
localChannel === '1'
) {
if (item.
channelType === 2
) {
this.localChannelList.unshift(item)
}
...
...
Please
register
or
login
to post a comment