Showing
2 changed files
with
8 additions
and
1 deletions
| @@ -143,7 +143,7 @@ export struct DetailPlayVLivePage { | @@ -143,7 +143,7 @@ export struct DetailPlayVLivePage { | ||
| 143 | 143 | ||
| 144 | Stack({ alignContent: Alignment.Top }) { | 144 | Stack({ alignContent: Alignment.Top }) { |
| 145 | // 直播背景图,模糊处理 | 145 | // 直播背景图,模糊处理 |
| 146 | - Image(this.liveDetailPageLogic.imgUrl) | 146 | + Image(this.liveDetailPageLogic.getLiveCoverUrl()) |
| 147 | .height('100%') | 147 | .height('100%') |
| 148 | .width('100%') | 148 | .width('100%') |
| 149 | .blur(100) | 149 | .blur(100) |
| @@ -84,4 +84,11 @@ export class LiveDetailPageLogic { | @@ -84,4 +84,11 @@ export class LiveDetailPageLogic { | ||
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | } | 86 | } |
| 87 | + | ||
| 88 | + getLiveCoverUrl() { | ||
| 89 | + if (this.contentDetailData.fullColumnImgUrls.length > 0) { | ||
| 90 | + return this.contentDetailData.fullColumnImgUrls[0].url | ||
| 91 | + } | ||
| 92 | + return '' | ||
| 93 | + } | ||
| 87 | } | 94 | } |
-
Please register or login to post a comment