张善主

fix(意见反馈页):顶部底部适配

... ... @@ -40,6 +40,10 @@ export struct FeedBackActivity {
@State pics: PhotoListBean[] = [this.addPic] as PhotoListBean[]
@State toastText:ResourceStr = ""
// @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
dialogToast: CustomDialogController = new CustomDialogController({
builder: CustomToast({
bgColor:$r("app.color.color_B3000000"),
... ... @@ -60,6 +64,7 @@ export struct FeedBackActivity {
build() {
Column() {
Blank().height(`${this.topSafeHeight}px`)
//标题栏目
CustomTitleUI({ titleName: $r('app.string.feedback') })
Stack({ alignContent: Alignment.Bottom }) {
... ... @@ -285,7 +290,7 @@ export struct FeedBackActivity {
.height(CommonConstants.FULL_HEIGHT)
.scrollBar(BarState.Off)
.alignSelf(ItemAlign.Start)
.padding({ bottom: 44 })
.padding({ bottom: 64+64 })
Column(){
Text($r('app.string.submit'))
.textAlign(TextAlign.Center)
... ... @@ -301,10 +306,9 @@ export struct FeedBackActivity {
}
this.reportCommit()
})
.margin({bottom:64})
.margin({bottom:64+64})
}
}
// .margin({bottom:64})
}
.backgroundColor($r('app.color.color_fff'))
}
... ...