Showing
1 changed file
with
14 additions
and
2 deletions
| 1 | import { ContentDTO } from 'wdBean/Index' | 1 | import { ContentDTO } from 'wdBean/Index' |
| 2 | import { DateTimeUtils } from 'wdKit/Index' | 2 | import { DateTimeUtils } from 'wdKit/Index' |
| 3 | +import { LottieView } from '../../components/lottie/LottieView'; | ||
| 3 | 4 | ||
| 4 | /** | 5 | /** |
| 5 | * 这里是样式卡中,右下角显示的音视频信息 | 6 | * 这里是样式卡中,右下角显示的音视频信息 |
| @@ -36,8 +37,19 @@ export struct CardMediaInfo { | @@ -36,8 +37,19 @@ export struct CardMediaInfo { | ||
| 36 | Text('预约') | 37 | Text('预约') |
| 37 | .mediaText() | 38 | .mediaText() |
| 38 | } else if (this.contentDTO?.liveInfo?.liveState === 'running') { | 39 | } else if (this.contentDTO?.liveInfo?.liveState === 'running') { |
| 39 | - Image($r('app.media.card_live')) | ||
| 40 | - .mediaLogo() | 40 | + LottieView({ |
| 41 | + name: 'live_status_wait', | ||
| 42 | + path: "lottie/live_detail_living.json", | ||
| 43 | + lottieWidth: 14, | ||
| 44 | + lottieHeight: 14, | ||
| 45 | + autoplay: true, | ||
| 46 | + loop: true, | ||
| 47 | + }) | ||
| 48 | + .margin({ | ||
| 49 | + right: '2vp' | ||
| 50 | + }) | ||
| 51 | + // Image($r('app.media.card_live')) | ||
| 52 | + // .mediaLogo() | ||
| 41 | Text('直播中') | 53 | Text('直播中') |
| 42 | .mediaText() | 54 | .mediaText() |
| 43 | } else if (this.contentDTO?.liveInfo?.liveState === 'end' && this.contentDTO?.liveInfo?.replayUri) { | 55 | } else if (this.contentDTO?.liveInfo?.liveState === 'end' && this.contentDTO?.liveInfo?.replayUri) { |
-
Please register or login to post a comment