diff --git a/features/home/src/main/ets/view/BannerView.ets b/features/home/src/main/ets/view/BannerView.ets index 6c61d3641d8a4e288e1d28f6aa0ad332d4c0c34e..be38b58b68478b91ae42a5cd7168a78299e108f6 100644 --- a/features/home/src/main/ets/view/BannerView.ets +++ b/features/home/src/main/ets/view/BannerView.ets @@ -57,9 +57,9 @@ export struct BannerView { Column() { // Banner layout. Row() { - // [Start 2] + // [Start pc] Swiper() { - // [StartExclude 2] + // [StartExclude pc] LazyForEach(this.bannerDataSource, (item: Banner, index: number) => { Stack() { Image(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? item.getBannerImg().getImgSrcSm() : @@ -131,7 +131,7 @@ export struct BannerView { right: this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? $r('app.float.banner_padding_sm') : 0 }) }, (item: Banner, index: number) => index + JSON.stringify(item)) - // [EndExclude 2] + // [EndExclude pc] } .displayCount(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? 1 : HomeConstants.TWO) // Interval between banner images @@ -142,7 +142,7 @@ export struct BannerView { .nextMargin(new BreakpointType($r('app.float.swiper_prev_next_margin_sm'), $r('app.float.swiper_prev_next_margin_md'), $r('app.float.swiper_prev_next_margin_lg')) .getValue(this.currentWidthBreakpoint)) - // [End 2] + // [End pc] // Setting the navigation point Style of the swiper. .indicator(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? Indicator.dot() .itemWidth($r('app.float.swiper_item_size')) diff --git a/features/search/src/main/ets/view/SearchForHua.ets b/features/search/src/main/ets/view/SearchForHua.ets index d2a1f51d30f44449d91a696c990fb3fb67c1c8c7..91d42f3c3088c51e4b9452aabbd850d815829f24 100644 --- a/features/search/src/main/ets/view/SearchForHua.ets +++ b/features/search/src/main/ets/view/SearchForHua.ets @@ -24,9 +24,9 @@ export struct SearchForHua { build() { Column() { - // [Start 1] + // [Start pc] List() { - // [StartExclude 1] + // [StartExclude pc] ForEach(SearchConstants.HUA_LIST, (item: string, index: number) => { ListItem() { Column() { @@ -54,11 +54,11 @@ export struct SearchForHua { }) } }) - // [EndExclude 1] + // [EndExclude pc] } .lanes(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_LG ? SearchConstants.SEARCH_LIST_LANES[1] : SearchConstants.SEARCH_LIST_LANES[2]) - // [End 1] + // [End pc] } .layoutWeight(1) .padding({ top: $r('app.float.search_hua_list_padding') })