yangchenggong1_wd

fix |> 20568 【依赖华为】我的评论列表中,上方展示的昵称,换行比安卓早,并且等级的位置展示不正确

@@ -7,6 +7,7 @@ import { OtherHomePageBottomCommentComponent } from '../components/mine/home/Oth @@ -7,6 +7,7 @@ import { OtherHomePageBottomCommentComponent } from '../components/mine/home/Oth
7 import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent'; 7 import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent';
8 import { CustomTitleUI } from '../components/reusable/CustomTitleUI'; 8 import { CustomTitleUI } from '../components/reusable/CustomTitleUI';
9 import { EmptyComponent } from '../components/view/EmptyComponent'; 9 import { EmptyComponent } from '../components/view/EmptyComponent';
  10 +import { UserGradeTextSpan } from '../components/view/UserGradeTextSpan';
10 import MinePageDatasModel from '../model/MinePageDatasModel'; 11 import MinePageDatasModel from '../model/MinePageDatasModel';
11 import { OtherUserDetailRequestItem } from '../viewmodel/OtherUserDetailRequestItem'; 12 import { OtherUserDetailRequestItem } from '../viewmodel/OtherUserDetailRequestItem';
12 13
@@ -110,6 +111,12 @@ struct OtherNormalUserHomePage { @@ -110,6 +111,12 @@ struct OtherNormalUserHomePage {
110 111
111 Column() { 112 Column() {
112 Row() { 113 Row() {
  114 + UserGradeTextSpan({nameContent:`${this.userName}`,gradeContent:`等级${this.levelId}`,gradeWidth:this.levelId >9 ? 50 : 45})
  115 +
  116 + }.constraintSize({maxWidth:`calc(100% - 16vp - 90vp)`})
  117 + .padding({top:8})
  118 +
  119 + /*Row() {
113 Text(`${this.userName}`) 120 Text(`${this.userName}`)
114 .fontColor($r('app.color.white')) 121 .fontColor($r('app.color.white'))
115 .maxLines(1) 122 .maxLines(1)
@@ -130,7 +137,7 @@ struct OtherNormalUserHomePage { @@ -130,7 +137,7 @@ struct OtherNormalUserHomePage {
130 .height('35lpx') 137 .height('35lpx')
131 } 138 }
132 Blank() 139 Blank()
133 - }.width('507lpx') 140 + }.width('507lpx')*/
134 141
135 Row() { 142 Row() {
136 Row() { 143 Row() {