zhangbo1_wd

漏提

@@ -2,6 +2,7 @@ import { PageComponent } from 'wdComponent/Index'; @@ -2,6 +2,7 @@ import { PageComponent } from 'wdComponent/Index';
2 import { HashMap } from '@kit.ArkTS'; 2 import { HashMap } from '@kit.ArkTS';
3 import { router } from '@kit.ArkUI'; 3 import { router } from '@kit.ArkUI';
4 import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; 4 import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils';
  5 +import { CustomTitleUI } from 'wdComponent/src/main/ets/components/reusable/CustomTitleUI';
5 6
6 const TAG = 'ColumnPage'; 7 const TAG = 'ColumnPage';
7 8
@@ -15,21 +16,26 @@ export struct ColumnPage { @@ -15,21 +16,26 @@ export struct ColumnPage {
15 @State param: AssignChannelParam = router.getParams() as AssignChannelParam 16 @State param: AssignChannelParam = router.getParams() as AssignChannelParam
16 pageId: string = ""; 17 pageId: string = "";
17 channelId: string = ""; 18 channelId: string = "";
  19 + pageName: string = ''
18 20
19 aboutToAppear() { 21 aboutToAppear() {
20 this.pageId = this.param.pageId 22 this.pageId = this.param.pageId
21 this.channelId = this.param.channelId 23 this.channelId = this.param.channelId
  24 + this.pageName = this.param.pageName
22 } 25 }
23 26
24 build() { 27 build() {
25 Column() { 28 Column() {
  29 + CustomTitleUI({ titleName: this.pageName })
26 PageComponent({ 30 PageComponent({
27 currentTopNavSelectedIndex: $currentTopNavSelectedIndex, 31 currentTopNavSelectedIndex: $currentTopNavSelectedIndex,
28 navIndex: this.currentTopNavSelectedIndex, 32 navIndex: this.currentTopNavSelectedIndex,
29 pageId: this.pageId, 33 pageId: this.pageId,
30 channelId: this.channelId, 34 channelId: this.channelId,
31 }); 35 });
32 - } 36 + }.height('100%')
  37 + .width('100%')
  38 + .backgroundColor($r('app.color.white'))
33 } 39 }
34 } 40 }
35 41