Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -146,7 +146,7 @@ export struct LiveHorizontalCardComponent { | @@ -146,7 +146,7 @@ export struct LiveHorizontalCardComponent { | ||
| 146 | Column() { | 146 | Column() { |
| 147 | Stack({ alignContent: Alignment.BottomEnd }) { | 147 | Stack({ alignContent: Alignment.BottomEnd }) { |
| 148 | Image(this.loadImg ? item.coverUrl : '') | 148 | Image(this.loadImg ? item.coverUrl : '') |
| 149 | - .backgroundColor(0xf5f5f5) | 149 | + .backgroundColor(this.loadImg ? 0xffffff : 0xf5f5f5) |
| 150 | .aspectRatio(16 / 9) | 150 | .aspectRatio(16 / 9) |
| 151 | .width(this.compDTO.operDataList.length == 2 ? 210 : 150) | 151 | .width(this.compDTO.operDataList.length == 2 ? 210 : 150) |
| 152 | // .borderRadius(4) | 152 | // .borderRadius(4) |
| @@ -156,6 +156,8 @@ export struct LiveHorizontalCardComponent { | @@ -156,6 +156,8 @@ export struct LiveHorizontalCardComponent { | ||
| 156 | contentDTO: item | 156 | contentDTO: item |
| 157 | }) | 157 | }) |
| 158 | } | 158 | } |
| 159 | + .borderRadius(4) | ||
| 160 | + .border({width: 1, color: 0xf5f5f5}) | ||
| 159 | 161 | ||
| 160 | Text(item.newsTitle) | 162 | Text(item.newsTitle) |
| 161 | .fontSize($r("app.float.font_size_14")) | 163 | .fontSize($r("app.float.font_size_14")) |
-
Please register or login to post a comment