diff --git a/features/fund/src/main/ets/view/FundComponent.ets b/features/fund/src/main/ets/view/FundComponent.ets index 7b815c87c541a8e634da19a7aee23ed677a8be99..3860aee7607026a768f8cfddca155ad5b702fdcc 100644 --- a/features/fund/src/main/ets/view/FundComponent.ets +++ b/features/fund/src/main/ets/view/FundComponent.ets @@ -18,7 +18,9 @@ import { FundConstants } from '../constants/FundConstants'; import FundingViewModel from '../viewmodel/FundingViewModel'; @Component + // [Start fund_component] export struct FundComponent { + // [StartExclude fund_component_1] @State currentPoint: string = CommonConstants.BREAK_POINT_SM; @State tabBarIndex: number = 0; @State backgroundX: number = 0; @@ -153,6 +155,7 @@ export struct FundComponent { Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { TabContent(){ Row() { + // [EndExclude fund_component_1] List() { ForEach(new BreakpointUtil({ sm: FundingViewModel.getAllFundInfo(0, 2), @@ -183,6 +186,7 @@ export struct FundComponent { lg: 3 }).getValue(this.currentPoint)) .width(CommonConstants.FULL_WIDTH_PERCENT) + // [StartExclude fund_component_2] .scrollBar(BarState.Off) } .height(CommonConstants.FULL_HEIGHT_PERCENT) @@ -490,4 +494,6 @@ export struct FundComponent { this.backgroundX = vp2px(this.backgroundX) }) } -} \ No newline at end of file + // [EndExclude fund_component_2] +} +// [End fund_component] \ No newline at end of file diff --git a/features/fund/src/main/ets/view/FundingDetail.ets b/features/fund/src/main/ets/view/FundingDetail.ets index dc5178d78974a7fd73150325a68db7ad903519f5..b8f67056f68328d0730aa9a2d1cb9b511412a69a 100644 --- a/features/fund/src/main/ets/view/FundingDetail.ets +++ b/features/fund/src/main/ets/view/FundingDetail.ets @@ -56,6 +56,7 @@ export struct FundingDetail { barPosition: this.breakPoint === CommonConstants.BREAK_POINT_LG ? BarPosition.Start : BarPosition.End }) { TabContent() { + // [Start funding_detail] Navigation(this.pageInfo) { FundNavigationComponent({ listIndex: this.index }) } @@ -64,6 +65,7 @@ export struct FundingDetail { .hideBackButton(true) .mode(this.breakPoint === CommonConstants.BREAK_POINT_LG ? NavigationMode.Split : NavigationMode.Stack) .navBarWidth(FundConstants.NAV_BAR_WIDTH) + // [End funding_detail] } .tabBar(this.BuildTabs($r('app.media.ic_public_home_filled'), $r('app.string.tab_bar_home'), 0)) @@ -107,7 +109,7 @@ export struct FundingDetail { bottom: this.bottom }) } - + // [Start build_nav_destination] @Builder buildNavDestination(name: string, param: object) { if (name === CommonConstants.PATH_DETAIL) { @@ -127,7 +129,7 @@ export struct FundingDetail { } } } - + // [End build_nav_destination] @Builder BuildTabs(icon: Resource, title: ResourceStr, index: number) { Column({ space: FundConstants.TAB_COLUMN_SPACE }) { diff --git a/features/home/src/main/ets/view/AdvertisementDialog.ets b/features/home/src/main/ets/view/AdvertisementDialog.ets index 9521196b99603ce3c38a8f84e4e76f267c137d9c..408e4536d82c30e12bff5fc1e9df0f50b9f14e69 100644 --- a/features/home/src/main/ets/view/AdvertisementDialog.ets +++ b/features/home/src/main/ets/view/AdvertisementDialog.ets @@ -14,7 +14,7 @@ */ import { BreakpointUtil, CommonConstants } from '@ohos/basic'; - +// [Start advertisement_dialog] @CustomDialog export struct AdvertisementDialog { @StorageProp('breakPoint') currentPoint: string = CommonConstants.BREAK_POINT_SM; @@ -24,6 +24,7 @@ export struct AdvertisementDialog { build() { Column() { + // [StartExclude advertisement_dialog] Row() { Image($r('app.media.ic_public_close')) .width($r('app.float.common_image_width')) @@ -53,6 +54,7 @@ export struct AdvertisementDialog { .onClick(() => { this.controller.close(); }) + // [EndExclude advertisement_dialog] } .width(new BreakpointUtil({ sm: $r('app.float.dialog_width_sm'), @@ -65,4 +67,5 @@ export struct AdvertisementDialog { lg: $r('app.float.dialog_all_height_lg') }).getValue(this.currentPoint)) } -} \ No newline at end of file +} +// [End advertisement_dialog] \ No newline at end of file diff --git a/product/phone/src/main/ets/pages/Index.ets b/product/phone/src/main/ets/pages/Index.ets index 7889791fcf5811bca92a3521d15c02d80e46e747..fae3efd2ed719371248b85a9fa87633c3cf736f4 100644 --- a/product/phone/src/main/ets/pages/Index.ets +++ b/product/phone/src/main/ets/pages/Index.ets @@ -21,13 +21,16 @@ import { ComparisonDetailPage, ComparisonInfo } from '@ohos/fundComparison'; @Entry @Component + // [Start init_pop_custom_style] struct Index { + // [StartExclude init_pop_custom_style] @StorageLink('breakPoint') breakPoint: string = CommonConstants.BREAK_POINT_SM; @State currentTabIndex: number = 0; @StorageProp('avoidArea') topHeight: number = 0; @StorageProp('bottom') bottom: number = 0; @State backgroundImageY: number = 0; @StorageLink('pageIndexInfos') pageIndexInfos: NavPathStack = new NavPathStack(); + // [EndExclude init_pop_custom_style] dialogController: CustomDialogController = new CustomDialogController({ builder: AdvertisementDialog(), backgroundColor: $r('app.color.dialog_background'), @@ -39,7 +42,7 @@ struct Index { aboutToAppear() { this.dialogController.open(); } - + // [StartExclude init_pop_custom_style] onPageShow() { window.getLastWindow(getContext(this)).then((windowStage: window.Window) => { let area = windowStage.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM); @@ -230,4 +233,6 @@ struct Index { .hideTitleBar(true) .hideToolBar(true) } -} \ No newline at end of file + // [EndExclude init_pop_custom_style] +} +// [End init_pop_custom_style] \ No newline at end of file