wangliang_wd

feat:优化我的界面等级展示,优化个人主页

... ... @@ -96,21 +96,16 @@ export default struct MinePageUserSimpleInfoUI {
})
if (this.levelId !== 0){
Stack(){
Image($r('app.media.mine_grade_bg'))
.width(44)
.height(15)
.objectFit(ImageFit.Auto)
Text(`等级${this.levelId}`)
.fontColor(Color.White)
.fontFamily('PingFang SC-Semibold')
.fontWeight(600)
.textAlign(TextAlign.Center)
.fontColor($r('app.color.white'))
.fontSize(10)
.width(this.levelId > 9 ? 35: 26)
.lineHeight(15)
}
.margin({top: 10})
.fontWeight(600)
.margin({ left: 6 })
.backgroundImage($r("app.media.mine_grade_bg"))
.backgroundImageSize(ImageSize.FILL)
.padding({left: 6,right: 6})
.height(16)
}
}
.alignItems(HorizontalAlign.Start)
... ...
... ... @@ -107,7 +107,7 @@ export struct HomePageBottomCommentComponent {
//没有更多数据 显示提示
if (!this.hasMore) {
ListItem() {
ListHasNoMoreDataUI().height(this.bottomCompH > 100 ? this.bottomCompH :100)
ListHasNoMoreDataUI().height(this.bottomCompH > 80 ? this.bottomCompH :80)
}
}
}
... ... @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent {
parentCommentUserName))
})
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*180
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160
if (status.commentIdList.length === 0) {
if (this.curPageNum === 1) this.data_comment.clear()
... ...