Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: fix: 小视频横划卡边缘消失问题 fix: 小视频横划卡边缘消失问题 fix |> 修复语音输入,点击搜索后,弹窗未消失问题
Showing
3 changed files
with
11 additions
and
10 deletions
| @@ -96,7 +96,7 @@ export struct ZhSingleRow02 { | @@ -96,7 +96,7 @@ export struct ZhSingleRow02 { | ||
| 96 | pageId: this.pageId, | 96 | pageId: this.pageId, |
| 97 | pageName: this.pageName | 97 | pageName: this.pageName |
| 98 | }) | 98 | }) |
| 99 | - .margin({ right: 8, left: index === 0 ? 10 : 0 }) | 99 | + .margin({ right: 8, left: index === 0 ? 16 : 0 }) |
| 100 | }) | 100 | }) |
| 101 | } | 101 | } |
| 102 | if (this.compDTO.operDataList.length > 2 && this.showMore()) { | 102 | if (this.compDTO.operDataList.length > 2 && this.showMore()) { |
| @@ -159,8 +159,8 @@ export struct ZhSingleRow02 { | @@ -159,8 +159,8 @@ export struct ZhSingleRow02 { | ||
| 159 | bottom: $r('app.float.card_comp_pagePadding_tb') | 159 | bottom: $r('app.float.card_comp_pagePadding_tb') |
| 160 | }) | 160 | }) |
| 161 | .backgroundColor(0xffffff) | 161 | .backgroundColor(0xffffff) |
| 162 | - .width('100%') | ||
| 163 | - .margin({ bottom: 8 }) | 162 | + .width('101%') |
| 163 | + .margin({ bottom: 8, left: -6 }) | ||
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | @Builder | 166 | @Builder |
| @@ -206,7 +206,7 @@ export struct ZhSingleRow02 { | @@ -206,7 +206,7 @@ export struct ZhSingleRow02 { | ||
| 206 | } | 206 | } |
| 207 | .justifyContent(FlexAlign.SpaceBetween) | 207 | .justifyContent(FlexAlign.SpaceBetween) |
| 208 | .margin({ bottom: 10 }) | 208 | .margin({ bottom: 10 }) |
| 209 | - .padding({left: 10}) | 209 | + .padding({left: 16}) |
| 210 | .width('100%') | 210 | .width('100%') |
| 211 | } | 211 | } |
| 212 | } | 212 | } |
| @@ -40,7 +40,7 @@ export struct SearchComponent { | @@ -40,7 +40,7 @@ export struct SearchComponent { | ||
| 40 | @StorageProp('currentBreakpoint') @Watch("currentChanged") currentBreakpoint: string = 'sm'; | 40 | @StorageProp('currentBreakpoint') @Watch("currentChanged") currentBreakpoint: string = 'sm'; |
| 41 | private breakpointSystem = new BreakpointSystem(); | 41 | private breakpointSystem = new BreakpointSystem(); |
| 42 | @State percent: number = 1 | 42 | @State percent: number = 1 |
| 43 | - private commentInputDialogController?: CustomDialogController | 43 | + private voiceInputDialogController?: CustomDialogController |
| 44 | 44 | ||
| 45 | currentChanged() { | 45 | currentChanged() { |
| 46 | if (this.currentBreakpoint == "md" || this.currentBreakpoint == "lg") { | 46 | if (this.currentBreakpoint == "md" || this.currentBreakpoint == "lg") { |
| @@ -419,16 +419,16 @@ export struct SearchComponent { | @@ -419,16 +419,16 @@ export struct SearchComponent { | ||
| 419 | 419 | ||
| 420 | VoiceRecoginizer.checkPemmission(getContext(this) as common.UIAbilityContext) | 420 | VoiceRecoginizer.checkPemmission(getContext(this) as common.UIAbilityContext) |
| 421 | 421 | ||
| 422 | - this.commentInputDialogController = new CustomDialogController({ | 422 | + this.voiceInputDialogController = new CustomDialogController({ |
| 423 | builder: VoiceSearchCustomDialog ( | 423 | builder: VoiceSearchCustomDialog ( |
| 424 | { onSearchBtnClick:((content:string) => { | 424 | { onSearchBtnClick:((content:string) => { |
| 425 | - this.commentInputDialogController?.close() | ||
| 426 | this.searchText = content | 425 | this.searchText = content |
| 427 | if (StringUtils.isNotEmpty(this.searchText)) { | 426 | if (StringUtils.isNotEmpty(this.searchText)) { |
| 428 | SearcherAboutDataModel.putSearchHistoryData(this.searchText) | 427 | SearcherAboutDataModel.putSearchHistoryData(this.searchText) |
| 429 | this.getSearchHistoryData() | 428 | this.getSearchHistoryData() |
| 430 | this.getSearchInputResData(this.searchText) | 429 | this.getSearchInputResData(this.searchText) |
| 431 | } | 430 | } |
| 431 | + this.voiceInputDialogController?.close() | ||
| 432 | }) | 432 | }) |
| 433 | } | 433 | } |
| 434 | ), | 434 | ), |
| @@ -436,8 +436,8 @@ export struct SearchComponent { | @@ -436,8 +436,8 @@ export struct SearchComponent { | ||
| 436 | alignment: DialogAlignment.Bottom, | 436 | alignment: DialogAlignment.Bottom, |
| 437 | customStyle: true, | 437 | customStyle: true, |
| 438 | backgroundColor: "#50000000", | 438 | backgroundColor: "#50000000", |
| 439 | - }).open() | ||
| 440 | - | 439 | + }) |
| 440 | + this.voiceInputDialogController.open() | ||
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | getSearchResultCountData() { | 443 | getSearchResultCountData() { |
| @@ -137,7 +137,8 @@ export struct LiveHorizontalCardComponent { | @@ -137,7 +137,8 @@ export struct LiveHorizontalCardComponent { | ||
| 137 | this.liveToMore(); | 137 | this.liveToMore(); |
| 138 | }) | 138 | }) |
| 139 | } | 139 | } |
| 140 | - }.justifyContent(FlexAlign.SpaceBetween) | 140 | + } |
| 141 | + .justifyContent(FlexAlign.SpaceBetween) | ||
| 141 | // .padding({ left: 16, right: 16 }) | 142 | // .padding({ left: 16, right: 16 }) |
| 142 | .margin({ bottom: 10 }) | 143 | .margin({ bottom: 10 }) |
| 143 | .width(CommonConstants.FULL_WIDTH) | 144 | .width(CommonConstants.FULL_WIDTH) |
-
Please register or login to post a comment