wangliang_wd

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

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