Showing
2 changed files
with
10 additions
and
8 deletions
| @@ -95,15 +95,17 @@ struct MineHomePage { | @@ -95,15 +95,17 @@ struct MineHomePage { | ||
| 95 | } | 95 | } |
| 96 | WDRouterRule.jumpWithPage(WDRouterPage.editUserNikeNamePage,params) | 96 | WDRouterRule.jumpWithPage(WDRouterPage.editUserNikeNamePage,params) |
| 97 | }) | 97 | }) |
| 98 | + | ||
| 98 | if(this.levelId>0){ | 99 | if(this.levelId>0){ |
| 99 | - Text(`等级${this.levelId}`) | ||
| 100 | - .textAlign(TextAlign.Center) | ||
| 101 | - .fontColor($r('app.color.color_ED2800')) | ||
| 102 | - .backgroundColor($r('app.color.white')) | ||
| 103 | - .fontSize('19lpx') | ||
| 104 | - .width('96lpx') | ||
| 105 | - .height('35lpx') | ||
| 106 | - .margin({ left: '10lpx' }) | 100 | + Text(`等级${this.levelId}`) |
| 101 | + .fontColor($r('app.color.color_ED2800')) | ||
| 102 | + .fontSize('23lpx') | ||
| 103 | + .fontWeight(500) | ||
| 104 | + .margin({ left: '10lpx' }) | ||
| 105 | + .backgroundImage($r("app.media.my_grade_bg")) | ||
| 106 | + .backgroundImageSize(ImageSize.Cover) | ||
| 107 | + .padding({left:"17lpx",right:"8lpx"}) | ||
| 108 | + .height('35lpx') | ||
| 107 | } | 109 | } |
| 108 | 110 | ||
| 109 | Blank() | 111 | Blank() |
569 Bytes
-
Please register or login to post a comment