王士厅

fix: 【华为验收】折叠屏,意见反馈,提交按钮与底部导航条重叠,解决方案增加提交按钮的底部边距

... ... @@ -42,7 +42,7 @@ export struct FeedBackActivity {
@State toastText:ResourceStr = ""
// @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
dialogToast: CustomDialogController = new CustomDialogController({
... ... @@ -291,7 +291,7 @@ export struct FeedBackActivity {
.height(CommonConstants.FULL_HEIGHT)
.scrollBar(BarState.Off)
.alignSelf(ItemAlign.Start)
.padding({ bottom: 64+64 })
.padding({ bottom: 64+64+15 })
Column(){
Text($r('app.string.submit'))
.textAlign(TextAlign.Center)
... ... @@ -307,7 +307,7 @@ export struct FeedBackActivity {
}
this.reportCommit()
})
.margin({bottom:64+64})
.margin({ bottom: 64+64+15 })
}
}
}
... ...
... ... @@ -11,10 +11,8 @@ export struct CustomTitleUI {
//标题栏目
if(this.imgBack){
Image($r('app.media.back_icon'))
// .width(`${this.calcHeight(46)}lpx`)
.width(24)
.height(24)
// .height(`${this.calcHeight(46)}lpx`)
.width(`${this.calcHeight(46)}lpx`)
.height(`${this.calcHeight(46)}lpx`)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.id("back_icon")
... ... @@ -22,8 +20,7 @@ export struct CustomTitleUI {
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
})
.margin({left:16})
// .margin({left:`${this.calcHeight(31)}lpx`})
.margin({left:`${this.calcHeight(31)}lpx`})
.onClick(()=>{
router.back()
})
... ... @@ -32,20 +29,17 @@ export struct CustomTitleUI {
Text(this.titleName)
.maxLines(1)
.id("title")
.fontSize(18)
// .fontSize(`${this.calcHeight(35)}lpx`)
.fontSize(`${this.calcHeight(35)}lpx`)
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight(26)
// .lineHeight(`${this.calcHeight(50)}lpx`)
.lineHeight(`${this.calcHeight(50)}lpx`)
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
middle: {anchor: "__container__", align: HorizontalAlign.Center}
})
}
// .height(`${this.calcHeight(84)}lpx`)
.height(44)
.height(`${this.calcHeight(84)}lpx`)
.width('100%')
.backgroundColor($r('app.color.white'))
}
... ...