Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
9 changed files
with
10 additions
and
16 deletions
| @@ -108,7 +108,7 @@ export struct ZhSingleRow02 { | @@ -108,7 +108,7 @@ export struct ZhSingleRow02 { | ||
| 108 | Column() { | 108 | Column() { |
| 109 | if (this.moreWidth > this.initMoreWidth + 2) { | 109 | if (this.moreWidth > this.initMoreWidth + 2) { |
| 110 | Text(this.moreTips) | 110 | Text(this.moreTips) |
| 111 | - .fontSize(8) | 111 | + .fontSize(9) |
| 112 | .fontColor(0x858585) | 112 | .fontColor(0x858585) |
| 113 | .width(8) | 113 | .width(8) |
| 114 | } | 114 | } |
| @@ -179,7 +179,7 @@ export struct ZhSingleRow03 { | @@ -179,7 +179,7 @@ export struct ZhSingleRow03 { | ||
| 179 | Column() { | 179 | Column() { |
| 180 | if (this.moreWidth > this.initMoreWidth + 2) { | 180 | if (this.moreWidth > this.initMoreWidth + 2) { |
| 181 | Text(this.moreTips) | 181 | Text(this.moreTips) |
| 182 | - .fontSize(8) | 182 | + .fontSize(9) |
| 183 | .fontColor(0x858585) | 183 | .fontColor(0x858585) |
| 184 | .width(8) | 184 | .width(8) |
| 185 | } | 185 | } |
| @@ -70,7 +70,6 @@ struct PeopleShipHomePage { | @@ -70,7 +70,6 @@ struct PeopleShipHomePage { | ||
| 70 | .objectRepeat(ImageRepeat.NoRepeat) | 70 | .objectRepeat(ImageRepeat.NoRepeat) |
| 71 | .backgroundColor(Color.White) | 71 | .backgroundColor(Color.White) |
| 72 | .visibility(this.isLoading ? Visibility.None : Visibility.Visible) | 72 | .visibility(this.isLoading ? Visibility.None : Visibility.Visible) |
| 73 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 74 | 73 | ||
| 75 | Row() | 74 | Row() |
| 76 | .height(px2vp(this.topSafeHeight)) | 75 | .height(px2vp(this.topSafeHeight)) |
| @@ -78,7 +77,6 @@ struct PeopleShipHomePage { | @@ -78,7 +77,6 @@ struct PeopleShipHomePage { | ||
| 78 | .backgroundColor($r('app.color.white')) | 77 | .backgroundColor($r('app.color.white')) |
| 79 | .visibility(this.topOpacity > 0 ? Visibility.Visible : Visibility.None) | 78 | .visibility(this.topOpacity > 0 ? Visibility.Visible : Visibility.None) |
| 80 | .opacity(this.topOpacity ) | 79 | .opacity(this.topOpacity ) |
| 81 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 82 | } | 80 | } |
| 83 | 81 | ||
| 84 | Column(){ | 82 | Column(){ |
| @@ -141,10 +139,10 @@ struct PeopleShipHomePage { | @@ -141,10 +139,10 @@ struct PeopleShipHomePage { | ||
| 141 | }) | 139 | }) |
| 142 | } | 140 | } |
| 143 | } | 141 | } |
| 144 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM]) | ||
| 145 | .alignItems(HorizontalAlign.Start) | 142 | .alignItems(HorizontalAlign.Start) |
| 146 | .justifyContent(FlexAlign.Start) | 143 | .justifyContent(FlexAlign.Start) |
| 147 | .width('100%') | 144 | .width('100%') |
| 145 | + .margin({top:px2vp(this.topSafeHeight)}) | ||
| 148 | } | 146 | } |
| 149 | .width('100%') | 147 | .width('100%') |
| 150 | }else{ | 148 | }else{ |
| @@ -165,7 +163,6 @@ struct PeopleShipHomePage { | @@ -165,7 +163,6 @@ struct PeopleShipHomePage { | ||
| 165 | } | 163 | } |
| 166 | 164 | ||
| 167 | aboutToAppear() { | 165 | aboutToAppear() { |
| 168 | - WindowModel.shared.setWindowLayoutFullScreen(false) | ||
| 169 | this.getData() | 166 | this.getData() |
| 170 | } | 167 | } |
| 171 | 168 |
| @@ -167,7 +167,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | @@ -167,7 +167,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | ||
| 167 | Column() { | 167 | Column() { |
| 168 | if (this.moreWidth > this.initMoreWidth + 2) { | 168 | if (this.moreWidth > this.initMoreWidth + 2) { |
| 169 | Text(this.moreTips) | 169 | Text(this.moreTips) |
| 170 | - .fontSize(8) | 170 | + .fontSize(9) |
| 171 | .fontColor(0x858585) | 171 | .fontColor(0x858585) |
| 172 | .width(8) | 172 | .width(8) |
| 173 | } | 173 | } |
| @@ -190,7 +190,7 @@ export struct LiveHorizontalCardComponent { | @@ -190,7 +190,7 @@ export struct LiveHorizontalCardComponent { | ||
| 190 | Column() { | 190 | Column() { |
| 191 | if (this.moreWidth > this.initMoreWidth + 2) { | 191 | if (this.moreWidth > this.initMoreWidth + 2) { |
| 192 | Text(this.moreTips) | 192 | Text(this.moreTips) |
| 193 | - .fontSize(8) | 193 | + .fontSize(9) |
| 194 | .fontColor(0x858585) | 194 | .fontColor(0x858585) |
| 195 | .width(8) | 195 | .width(8) |
| 196 | } | 196 | } |
| @@ -38,6 +38,7 @@ struct MineHomePage { | @@ -38,6 +38,7 @@ struct MineHomePage { | ||
| 38 | @State isCommentEnter:string = ""; | 38 | @State isCommentEnter:string = ""; |
| 39 | @State isConnectNetwork : boolean = NetworkUtil.isNetConnected() | 39 | @State isConnectNetwork : boolean = NetworkUtil.isNetConnected() |
| 40 | @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | 40 | @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 |
| 41 | + @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | ||
| 41 | pageShowTime:number = 0; | 42 | pageShowTime:number = 0; |
| 42 | pageHideTime:number = 0; | 43 | pageHideTime:number = 0; |
| 43 | 44 | ||
| @@ -69,7 +70,6 @@ struct MineHomePage { | @@ -69,7 +70,6 @@ struct MineHomePage { | ||
| 69 | .width('100%') | 70 | .width('100%') |
| 70 | .height('355lpx') | 71 | .height('355lpx') |
| 71 | .objectFit(ImageFit.Cover) | 72 | .objectFit(ImageFit.Cover) |
| 72 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 73 | 73 | ||
| 74 | Row() | 74 | Row() |
| 75 | .height(px2vp(this.topSafeHeight)) | 75 | .height(px2vp(this.topSafeHeight)) |
| @@ -77,7 +77,6 @@ struct MineHomePage { | @@ -77,7 +77,6 @@ struct MineHomePage { | ||
| 77 | .backgroundColor($r('app.color.white')) | 77 | .backgroundColor($r('app.color.white')) |
| 78 | .visibility(this.tileOpacity > 0 ? 0 : 1) | 78 | .visibility(this.tileOpacity > 0 ? 0 : 1) |
| 79 | .opacity(this.tileOpacity ) | 79 | .opacity(this.tileOpacity ) |
| 80 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 81 | } | 80 | } |
| 82 | 81 | ||
| 83 | Column(){ | 82 | Column(){ |
| @@ -287,8 +286,10 @@ struct MineHomePage { | @@ -287,8 +286,10 @@ struct MineHomePage { | ||
| 287 | .scrollBar(BarState.Off) | 286 | .scrollBar(BarState.Off) |
| 288 | .width('100%') | 287 | .width('100%') |
| 289 | .layoutWeight(1) | 288 | .layoutWeight(1) |
| 290 | - }.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM]) | 289 | + } |
| 290 | + .margin({top:px2vp(this.topSafeHeight)}) | ||
| 291 | }.width('100%') | 291 | }.width('100%') |
| 292 | + .padding({bottom:px2vp(this.bottomSafeHeight)}) | ||
| 292 | .layoutWeight(1) | 293 | .layoutWeight(1) |
| 293 | }else{ | 294 | }else{ |
| 294 | Column(){ | 295 | Column(){ |
| @@ -140,7 +140,6 @@ export struct MultiPictureListPage { | @@ -140,7 +140,6 @@ export struct MultiPictureListPage { | ||
| 140 | .id('e_picture_container') | 140 | .id('e_picture_container') |
| 141 | // 设置顶部绘制延伸到状态栏 | 141 | // 设置顶部绘制延伸到状态栏 |
| 142 | // 设置底部绘制延伸到导航条 | 142 | // 设置底部绘制延伸到导航条 |
| 143 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | ||
| 144 | } | 143 | } |
| 145 | 144 | ||
| 146 | /** | 145 | /** |
| @@ -70,7 +70,6 @@ struct OtherNormalUserHomePage { | @@ -70,7 +70,6 @@ struct OtherNormalUserHomePage { | ||
| 70 | .width('100%') | 70 | .width('100%') |
| 71 | .height('355lpx') | 71 | .height('355lpx') |
| 72 | .objectFit(ImageFit.Cover) | 72 | .objectFit(ImageFit.Cover) |
| 73 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 74 | 73 | ||
| 75 | Row() | 74 | Row() |
| 76 | .height(px2vp(this.topSafeHeight)) | 75 | .height(px2vp(this.topSafeHeight)) |
| @@ -78,7 +77,6 @@ struct OtherNormalUserHomePage { | @@ -78,7 +77,6 @@ struct OtherNormalUserHomePage { | ||
| 78 | .backgroundColor($r('app.color.white')) | 77 | .backgroundColor($r('app.color.white')) |
| 79 | .visibility(this.tileOpacity > 0 ? 0 : 1) | 78 | .visibility(this.tileOpacity > 0 ? 0 : 1) |
| 80 | .opacity(this.tileOpacity ) | 79 | .opacity(this.tileOpacity ) |
| 81 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP]) | ||
| 82 | } | 80 | } |
| 83 | 81 | ||
| 84 | Column(){ | 82 | Column(){ |
| @@ -254,7 +252,7 @@ struct OtherNormalUserHomePage { | @@ -254,7 +252,7 @@ struct OtherNormalUserHomePage { | ||
| 254 | .scrollBar(BarState.Off) | 252 | .scrollBar(BarState.Off) |
| 255 | .width('100%') | 253 | .width('100%') |
| 256 | .layoutWeight(1) | 254 | .layoutWeight(1) |
| 257 | - }.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM]) | 255 | + } |
| 258 | }.width('100%') | 256 | }.width('100%') |
| 259 | .layoutWeight(1) | 257 | .layoutWeight(1) |
| 260 | }else{ | 258 | }else{ |
| @@ -68,7 +68,6 @@ struct VisitorCommentPage { | @@ -68,7 +68,6 @@ struct VisitorCommentPage { | ||
| 68 | .width("100%") | 68 | .width("100%") |
| 69 | .height("100%") | 69 | .height("100%") |
| 70 | .backgroundColor($r('app.color.white')) | 70 | .backgroundColor($r('app.color.white')) |
| 71 | - .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM]) | ||
| 72 | CustomPullToRefresh({ | 71 | CustomPullToRefresh({ |
| 73 | alldata:this.data, | 72 | alldata:this.data, |
| 74 | scroller:this.scroller, | 73 | scroller:this.scroller, |
-
Please register or login to post a comment