Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-09-05 16:04:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca8767884933172facc2e97eebf62f9732faaae4
ca876788
1 parent
8cb69168
feat:优化我的界面等级展示,优化个人主页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
ca87678
...
...
@@ -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}`)
.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})
Text(`等级${this.levelId}`)
.fontColor(Color.White)
.fontFamily('PingFang SC-Semibold')
.fontSize(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)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
ca87678
...
...
@@ -107,7 +107,7 @@ export struct HomePageBottomCommentComponent {
//没有更多数据 显示提示
if (!this.hasMore) {
ListItem() {
ListHasNoMoreDataUI().height(this.bottomCompH >
100 ? this.bottomCompH :10
0)
ListHasNoMoreDataUI().height(this.bottomCompH >
80 ? this.bottomCompH :8
0)
}
}
}
...
...
@@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent {
parentCommentUserName))
})
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*1
8
0
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*1
6
0
if (status.commentIdList.length === 0) {
if (this.curPageNum === 1) this.data_comment.clear()
...
...
Please
register
or
login
to post a comment