yangchenggong1_wd

fix:bug[17967] 号主页-页面展示_顶部展示异常

... ... @@ -36,7 +36,7 @@ struct PeopleShipHomePage {
@Provide @Watch('handleChangeAttentionStata') isLoadingAttention: boolean = false
//关注显示
@State attentionOpacity: boolean = false
@Provide topHeight: number = 286
@Provide topHeight: number = 214
@State isLoading: boolean = true
@State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
... ... @@ -123,13 +123,12 @@ struct PeopleShipHomePage {
})
}
}.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM])
}
.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM])
.alignItems(HorizontalAlign.Start)
.justifyContent(FlexAlign.Start)
.width('100%')
// .height('100%')
}
// .height('100%')
.width('100%')
}
... ...
... ... @@ -28,7 +28,7 @@ export struct PeopleShipHomePageTopComponent {
@State collapseTxt: string = '…展开';
private subTxt: string = '';
@State content: string = ''
@State topFixedHeight: number = 286
@State topFixedHeight: number = 214
@State lineInNum: number = 1
@Link topHeight: number
@State provinceName: string = ''
... ... @@ -39,7 +39,7 @@ export struct PeopleShipHomePageTopComponent {
// 顶部图片
Image($r('app.media.home_page_bg'))
.width('100%')
.height('120vp')
.height('48vp')
.objectFit(ImageFit.Fill)
.backgroundColor(Color.White)
// 头像和名称
... ... @@ -83,7 +83,7 @@ export struct PeopleShipHomePageTopComponent {
}
.width('100%')
.height('180vp')
.height('108vp')
.backgroundColor(Color.Transparent)
// 认证id:1蓝2黄,蓝v 只有官方认证,黄v有领域和身份认证
... ... @@ -321,7 +321,7 @@ export struct PeopleShipHomePageTopComponent {
}
}
if (this.detailModel) {
this.topFixedHeight = 286
this.topFixedHeight = 214
if (this.detailModel.region && this.detailModel.region.length > 0) {
this.provinceName = this.detailModel.region
} else {
... ...