Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: 首页,页面滑动顶导按钮联动,时机修改。减少时延。 图集布局调整
Showing
4 changed files
with
15 additions
and
9 deletions
| @@ -113,9 +113,11 @@ export struct TopNavigationComponentNew { | @@ -113,9 +113,11 @@ export struct TopNavigationComponentNew { | ||
| 113 | 'middle': { 'anchor': '__container__', 'align': HorizontalAlign.Center }, | 113 | 'middle': { 'anchor': '__container__', 'align': HorizontalAlign.Center }, |
| 114 | 'bottom': { 'anchor': '__container__', 'align': VerticalAlign.Bottom } | 114 | 'bottom': { 'anchor': '__container__', 'align': VerticalAlign.Bottom } |
| 115 | }) | 115 | }) |
| 116 | - .onChange((index) => { | ||
| 117 | - Logger.info(TAG, `onChange index : ${index}`); | ||
| 118 | - | 116 | + .onAnimationStart((curIndex: number, index: number)=>{ |
| 117 | + Logger.info(TAG, `onAnimationStart ${curIndex} ${index}`); | ||
| 118 | + if (curIndex === index) { | ||
| 119 | + return | ||
| 120 | + } | ||
| 119 | if (this.isBroadcastByIndex(index)) { | 121 | if (this.isBroadcastByIndex(index)) { |
| 120 | // 跳转到播报页面 | 122 | // 跳转到播报页面 |
| 121 | ProcessUtils.gotoBroadcastPage(this.myChannelList[index].pageId) | 123 | ProcessUtils.gotoBroadcastPage(this.myChannelList[index].pageId) |
| @@ -133,7 +135,12 @@ export struct TopNavigationComponentNew { | @@ -133,7 +135,12 @@ export struct TopNavigationComponentNew { | ||
| 133 | this.currentTopNavSelectedIndex = index; | 135 | this.currentTopNavSelectedIndex = index; |
| 134 | this.changePage(this.currentTopNavSelectedIndex) | 136 | this.changePage(this.currentTopNavSelectedIndex) |
| 135 | } | 137 | } |
| 136 | - | 138 | + }) |
| 139 | + // .onAnimationEnd((index: number)=>{ | ||
| 140 | + // Logger.info(TAG, `onAnimationEnd ${index}`); | ||
| 141 | + // }) | ||
| 142 | + .onChange((index) => { | ||
| 143 | + Logger.info(TAG, `onChange index : ${index}`); | ||
| 137 | }) | 144 | }) |
| 138 | } | 145 | } |
| 139 | .width('100%') | 146 | .width('100%') |
| @@ -241,7 +241,7 @@ export struct OperRowListView { | @@ -241,7 +241,7 @@ export struct OperRowListView { | ||
| 241 | .padding({ | 241 | .padding({ |
| 242 | top: 10, | 242 | top: 10, |
| 243 | // bottom: 10 | 243 | // bottom: 10 |
| 244 | - bottom: `${this.bottomSafeHeight}px` | 244 | + bottom: px2vp(this.bottomSafeHeight) |
| 245 | // bottom: 50 | 245 | // bottom: 50 |
| 246 | }) | 246 | }) |
| 247 | } | 247 | } |
| @@ -32,7 +32,6 @@ struct MultiPictureDetailPage { | @@ -32,7 +32,6 @@ struct MultiPictureDetailPage { | ||
| 32 | relType: this.relType | 32 | relType: this.relType |
| 33 | }) | 33 | }) |
| 34 | } | 34 | } |
| 35 | - .padding({top: `${this.topSafeHeight}px`,bottom:`${this.bottomSafeHeight}px`}) | ||
| 36 | 35 | ||
| 37 | } | 36 | } |
| 38 | .backgroundColor(Color.Black) | 37 | .backgroundColor(Color.Black) |
| @@ -45,8 +45,8 @@ export struct MultiPictureDetailPageComponent { | @@ -45,8 +45,8 @@ export struct MultiPictureDetailPageComponent { | ||
| 45 | @Provide contentDetailData: ContentDetailDTO = {} as ContentDetailDTO | 45 | @Provide contentDetailData: ContentDetailDTO = {} as ContentDetailDTO |
| 46 | @Provide windowWidth: number = AppStorage.get<number>('windowWidth') || 0 | 46 | @Provide windowWidth: number = AppStorage.get<number>('windowWidth') || 0 |
| 47 | @Provide windowHeight: number = AppStorage.get<number>('windowHeight') || 0 | 47 | @Provide windowHeight: number = AppStorage.get<number>('windowHeight') || 0 |
| 48 | - @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | ||
| 49 | - @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | 48 | + @Consume bottomSafeHeight: number |
| 49 | + @Consume topSafeHeight: number | ||
| 50 | @Provide @Watch('onCurrentPageNumUpdated') currentPageNum: string = '01' | 50 | @Provide @Watch('onCurrentPageNumUpdated') currentPageNum: string = '01' |
| 51 | private swiperController: SwiperController = new SwiperController() | 51 | private swiperController: SwiperController = new SwiperController() |
| 52 | private swiperControllerItem: SwiperController = new SwiperController() | 52 | private swiperControllerItem: SwiperController = new SwiperController() |
| @@ -119,7 +119,7 @@ export struct MultiPictureDetailPageComponent { | @@ -119,7 +119,7 @@ export struct MultiPictureDetailPageComponent { | ||
| 119 | currentIndex: $currentIndex, | 119 | currentIndex: $currentIndex, |
| 120 | showCommentList: $showCommentList, | 120 | showCommentList: $showCommentList, |
| 121 | publishCommentModel: $publishCommentModel, | 121 | publishCommentModel: $publishCommentModel, |
| 122 | - interactData:$interactData | 122 | + interactData: this.interactData |
| 123 | }) | 123 | }) |
| 124 | 124 | ||
| 125 | } | 125 | } |
-
Please register or login to post a comment