张善主

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

@@ -40,6 +40,10 @@ export struct FeedBackActivity { @@ -40,6 +40,10 @@ export struct FeedBackActivity {
40 @State pics: PhotoListBean[] = [this.addPic] as PhotoListBean[] 40 @State pics: PhotoListBean[] = [this.addPic] as PhotoListBean[]
41 41
42 @State toastText:ResourceStr = "" 42 @State toastText:ResourceStr = ""
  43 +
  44 + // @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
  45 + @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
  46 +
43 dialogToast: CustomDialogController = new CustomDialogController({ 47 dialogToast: CustomDialogController = new CustomDialogController({
44 builder: CustomToast({ 48 builder: CustomToast({
45 bgColor:$r("app.color.color_B3000000"), 49 bgColor:$r("app.color.color_B3000000"),
@@ -60,6 +64,7 @@ export struct FeedBackActivity { @@ -60,6 +64,7 @@ export struct FeedBackActivity {
60 64
61 build() { 65 build() {
62 Column() { 66 Column() {
  67 + Blank().height(`${this.topSafeHeight}px`)
63 //标题栏目 68 //标题栏目
64 CustomTitleUI({ titleName: $r('app.string.feedback') }) 69 CustomTitleUI({ titleName: $r('app.string.feedback') })
65 Stack({ alignContent: Alignment.Bottom }) { 70 Stack({ alignContent: Alignment.Bottom }) {
@@ -285,7 +290,7 @@ export struct FeedBackActivity { @@ -285,7 +290,7 @@ export struct FeedBackActivity {
285 .height(CommonConstants.FULL_HEIGHT) 290 .height(CommonConstants.FULL_HEIGHT)
286 .scrollBar(BarState.Off) 291 .scrollBar(BarState.Off)
287 .alignSelf(ItemAlign.Start) 292 .alignSelf(ItemAlign.Start)
288 - .padding({ bottom: 44 }) 293 + .padding({ bottom: 64+64 })
289 Column(){ 294 Column(){
290 Text($r('app.string.submit')) 295 Text($r('app.string.submit'))
291 .textAlign(TextAlign.Center) 296 .textAlign(TextAlign.Center)
@@ -301,10 +306,9 @@ export struct FeedBackActivity { @@ -301,10 +306,9 @@ export struct FeedBackActivity {
301 } 306 }
302 this.reportCommit() 307 this.reportCommit()
303 }) 308 })
304 - .margin({bottom:64}) 309 + .margin({bottom:64+64})
305 } 310 }
306 } 311 }
307 - // .margin({bottom:64})  
308 } 312 }
309 .backgroundColor($r('app.color.color_fff')) 313 .backgroundColor($r('app.color.color_fff'))
310 } 314 }