onecold před 9 měsíci
rodič
revize
9f41d3a125

+ 6 - 7
entry/src/main/ets/pages/WebDavMainPage.ets

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

+ 2 - 1
entry/src/main/ets/view/LocalMusic.ets

@@ -6725,7 +6725,8 @@ export struct LocalMusic {
   playConLeft(isLeft: boolean = true) {
     Row() {
       // RotatingCover({ songLabel: this.currentSong?.pixelMapPath })
-      Image( this.currentSong?.pixelMapPath)
+      Image( StrUtil.isNotEmpty(this.currentSong?.pixelMapPath)?
+        this.currentSong?.pixelMapPath:$r('app.media.music_red'))
         .height(45)
         .objectFit(ImageFit.Contain)
         .alt( $r('app.media.music_red'))