Showing
1 changed file
with
11 additions
and
8 deletions
| @@ -86,14 +86,17 @@ struct OtherNormalUserHomePage { | @@ -86,14 +86,17 @@ struct OtherNormalUserHomePage { | ||
| 86 | .lineHeight('50lpx') | 86 | .lineHeight('50lpx') |
| 87 | .fontWeight('500lpx') | 87 | .fontWeight('500lpx') |
| 88 | 88 | ||
| 89 | - Text(`等级${this.levelId}`) | ||
| 90 | - .textAlign(TextAlign.Center) | ||
| 91 | - .fontColor($r('app.color.color_ED2800')) | ||
| 92 | - .backgroundColor($r('app.color.white')) | ||
| 93 | - .fontSize('19lpx') | ||
| 94 | - .width('96lpx') | ||
| 95 | - .height('35lpx') | ||
| 96 | - .margin({ left: '10lpx' }) | 89 | + if(this.levelId>0){ |
| 90 | + Text(`等级${this.levelId}`) | ||
| 91 | + .fontColor($r('app.color.color_ED2800')) | ||
| 92 | + .fontSize('23lpx') | ||
| 93 | + .fontWeight(500) | ||
| 94 | + .margin({ left: '10lpx' }) | ||
| 95 | + .backgroundImage($r("app.media.my_grade_bg")) | ||
| 96 | + .backgroundImageSize(ImageSize.Cover) | ||
| 97 | + .padding({left:"17lpx",right:"8lpx"}) | ||
| 98 | + .height('35lpx') | ||
| 99 | + } | ||
| 97 | Blank() | 100 | Blank() |
| 98 | }.width('507lpx') | 101 | }.width('507lpx') |
| 99 | 102 |
-
Please register or login to post a comment