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
zhangbo1_wd
2024-04-24 20:04:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51975fc1ed6298187bf98e20fbecbd96e39d801b
51975fc1
1 parent
aaef3950
新增栏目页面(频道详情)
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ColumnPageComponent.ets → sight_harmony/products/phone/src/main/ets/pages/column/ColumnPage.ets
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
View file @
51975fc
...
...
@@ -122,4 +122,6 @@ export class WDRouterPage {
static reserveMorePage = new WDRouterPage("wdComponent", "ets/components/page/ReserveMorePage");
//金刚位聚合页
static themeListPage = new WDRouterPage("wdComponent", "ets/components/page/ThemeListPage");
// 栏目页面、频道详情
static columnPage = new WDRouterPage("phone", "ets/pages/column/ColumnPage");
}
...
...
sight_harmony/
features/wdComponent/src/main/ets/components/page/ColumnPageComponent
.ets → sight_harmony/
products/phone/src/main/ets/pages/column/ColumnPage
.ets
View file @
51975fc
import { PageComponent } from './PageComponent';
import { PageComponent } from 'wdComponent/Index';
import { HashMap } from '@kit.ArkTS';
import { router } from '@kit.ArkUI';
import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils';
const TAG = 'ColumnPage
Component
';
const TAG = 'ColumnPage';
/**
* 二级栏目页面,展排数据
*/
@Entry
@Component
export struct ColumnPage
Component
{
export struct ColumnPage {
@State currentTopNavSelectedIndex: number = 0;
@State param: AssignChannelParam = router.getParams() as AssignChannelParam
pageId: string = "";
channelId: string = "";
aboutToAppear() {
this.pageId = this.param.pageId
this.channelId = this.param.channelId
}
build() {
Column() {
PageComponent({
currentTopNavSelectedIndex: $currentTopNavSelectedIndex,
navIndex: this.currentTopNavSelectedIndex,
pageId: this.pageId,
channelId: this.channelId,
});
}
}
}
...
...
sight_harmony/products/phone/src/main/resources/base/profile/main_pages.json
View file @
51975fc
...
...
@@ -13,6 +13,7 @@
"pages/launchPage/LaunchAdvertisingPage"
,
"pages/broadcast/BroadcastPage"
,
"pages/launchPage/LaunchInterestsHobbiesPage"
,
"pages/SpacialTopicPage"
"pages/SpacialTopicPage"
,
"pages/column/ColumnPage"
]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment