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-01-27 17:29:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02661442d2c3cc5b220d072849c3e8831f438ba6
02661442
1 parent
44f5dcda
新增二级栏目页面
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
5 deletions
PeopleDaily_Harmony/entry/src/main/ets/pages/ColumnPage.ets
PeopleDaily_Harmony/entry/src/main/resources/base/profile/main_pages.json
PeopleDaily_Harmony/wdComponent/src/main/ets/Index.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/BottomNavigationComponent.ets → PeopleDaily_Harmony/wdComponent/src/main/ets/components/page/BottomNavigationComponent.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/page/ColumnPageComponent.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/TopNavigationComponent.ets → PeopleDaily_Harmony/wdComponent/src/main/ets/components/page/TopNavigationComponent.ets
PeopleDaily_Harmony/entry/src/main/ets/pages/ColumnPage.ets
0 → 100644
View file @
0266144
import { ColumnPageComponent } from 'wdComponent';
import { Logger } from 'wdKit';
const TAG = 'ColumnPage';
/**
* 二级栏目页面,显示展排数据(comp list)
*/
@Entry
@Component
struct ColumnPage {
aboutToAppear() {
Logger.info(TAG, `aboutToAppear `);
}
aboutToDisappear() {
Logger.info(TAG, 'aboutToDisappear');
}
onPageShow() {
Logger.info(TAG, 'onPageShow');
}
onPageHide() {
Logger.info(TAG, 'onPageHide');
}
onBackPress() {
Logger.info(TAG, 'onBackPress');
}
build() {
Column() {
// TODO 跳转获取id
ColumnPageComponent({ pageId: "20011", channelId: "2001"});
}
}
}
\ No newline at end of file
...
...
PeopleDaily_Harmony/entry/src/main/resources/base/profile/main_pages.json
View file @
0266144
{
"src"
:
[
"pages/Index"
,
"pages/MainPage"
"pages/MainPage"
,
"pages/ColumnPage"
]
}
\ No newline at end of file
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/Index.ets
View file @
0266144
...
...
@@ -10,9 +10,9 @@ export { LoadingComponent } from "./components/view/LoadingComponent"
export { PageComponent } from "./components/page/PageComponent"
export { BottomNavigationComponent } from "./components/
view
/BottomNavigationComponent"
export { BottomNavigationComponent } from "./components/
page
/BottomNavigationComponent"
export { TopNavigationComponent } from "./components/
view
/TopNavigationComponent"
export { TopNavigationComponent } from "./components/
page
/TopNavigationComponent"
export { LabelComponent } from "./components/view/LabelComponent"
...
...
@@ -20,3 +20,5 @@ export { SmallVideoCardComponent } from "./components/view/SmallVideoCardCompone
export { BannerComponent } from "./components/view/BannerComponent"
export { ColumnPageComponent } from "./components/page/ColumnPageComponent"
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/components/
view
/BottomNavigationComponent.ets → PeopleDaily_Harmony/wdComponent/src/main/ets/components/
page
/BottomNavigationComponent.ets
View file @
0266144
...
...
@@ -3,7 +3,7 @@ import { Logger } from 'wdKit';
import { TopNavigationComponent } from './TopNavigationComponent';
import { BottomNavDTO } from '../../repository/bean/BottomNavDTO';
import { UIUtils } from '../../repository/UIUtils';
import { MinePageComponent } from '.
./page
/MinePageComponent';
import { MinePageComponent } from './MinePageComponent';
import PageViewModel from '../../viewmodel/PageViewModel';
const TAG = 'BottomNavigationComponent';
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/components/page/ColumnPageComponent.ets
0 → 100644
View file @
0266144
import { PageComponent } from './PageComponent';
const TAG = 'ColumnPageComponent';
/**
* 二级栏目页面,展排数据
*/
@Component
export struct ColumnPageComponent {
@State currentTopNavSelectedIndex: number = 0;
pageId: string = "";
channelId: string = "";
build() {
PageComponent({
currentTopNavSelectedIndex: $currentTopNavSelectedIndex,
navIndex: this.currentTopNavSelectedIndex,
pageId: this.pageId,
channelId: this.channelId,
});
}
}
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/components/
view
/TopNavigationComponent.ets → PeopleDaily_Harmony/wdComponent/src/main/ets/components/
page
/TopNavigationComponent.ets
View file @
0266144
import { LazyDataSource, Logger } from 'wdKit';
import { CompDTO } from '../../repository/bean/CompDTO';
import { TopNavDTO } from '../../repository/bean/TopNavDTO';
import { PageComponent } from '.
./page
/PageComponent';
import { PageComponent } from './PageComponent';
const TAG = 'TopNavigationComponent';
...
...
Please
register
or
login
to post a comment