|
@@ -163,9 +163,6 @@ export struct WebDavMainPage {
|
|
|
|
|
|
|
|
private buildSongMetaLine(song: VideoItem): string {
|
|
private buildSongMetaLine(song: VideoItem): string {
|
|
|
const parts: string[] = [];
|
|
const parts: string[] = [];
|
|
|
- if (StrUtil.isNotEmpty(song.album)) {
|
|
|
|
|
- parts.push(song.album as string);
|
|
|
|
|
- }
|
|
|
|
|
if (StrUtil.isNotEmpty(song.duration)) {
|
|
if (StrUtil.isNotEmpty(song.duration)) {
|
|
|
parts.push(song.duration as string);
|
|
parts.push(song.duration as string);
|
|
|
} else if (StrUtil.isNotEmpty(song.size)) {
|
|
} else if (StrUtil.isNotEmpty(song.size)) {
|
|
@@ -1028,12 +1025,13 @@ export struct WebDavMainPage {
|
|
|
Row({ space: 12 }) {
|
|
Row({ space: 12 }) {
|
|
|
// 序号
|
|
// 序号
|
|
|
// 歌曲封面
|
|
// 歌曲封面
|
|
|
- Image(song.pixelMapPath ? song.pixelMapPath : (song.pixelMap ?? $r('app.media.music_red')))
|
|
|
|
|
|
|
+ Image(song.pixelMapPath ? song.pixelMapPath : $r('app.media.music_red'))
|
|
|
.width(48)
|
|
.width(48)
|
|
|
.height(48)
|
|
.height(48)
|
|
|
- .borderRadius(4)
|
|
|
|
|
|
|
+ .borderRadius(10)
|
|
|
|
|
+ .sourceSize({width:38, height:38})
|
|
|
.alt($r('app.media.music_red'))
|
|
.alt($r('app.media.music_red'))
|
|
|
- .fillColor(song.pixelMapPath ? undefined : this.themeColor)
|
|
|
|
|
|
|
+ .fillColor(this.themeColor)
|
|
|
.objectFit(ImageFit.Cover)
|
|
.objectFit(ImageFit.Cover)
|
|
|
.margin({ left: 8 })
|
|
.margin({ left: 8 })
|
|
|
|
|
|
|
@@ -1089,7 +1087,8 @@ export struct WebDavMainPage {
|
|
|
ImageAnimator()
|
|
ImageAnimator()
|
|
|
.images(CommonConstants.IMAGE_FRAME_INFO)// 动画数组
|
|
.images(CommonConstants.IMAGE_FRAME_INFO)// 动画数组
|
|
|
.duration(1000)// 持续
|
|
.duration(1000)// 持续
|
|
|
- .state(this.animationState)// 动画状态
|
|
|
|
|
|
|
+ //.state(this.animationState)// 动画状态
|
|
|
|
|
+ .state(AnimationStatus.Running)// 动画状态
|
|
|
.fillMode(FillMode.Forwards)
|
|
.fillMode(FillMode.Forwards)
|
|
|
.width(18)
|
|
.width(18)
|
|
|
.margin({ right: 12, top: 8, bottom: 8 })
|
|
.margin({ right: 12, top: 8, bottom: 8 })
|