zhangbo1_wd

新增栏目页面(频道详情)

... ... @@ -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");
}
... ...
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 = 'ColumnPageComponent';
const TAG = 'ColumnPage';
/**
* 二级栏目页面,展排数据
*/
@Entry
@Component
export struct ColumnPageComponent {
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,
});
}
}
}
... ...
... ... @@ -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
... ...