فهرست منبع

modalTransition: ModalTransition.ALPHA改成ModalTransition.DEFAULT,

onecold 8 ماه پیش
والد
کامیت
ee2e087a70
1فایلهای تغییر یافته به همراه5 افزوده شده و 10 حذف شده
  1. 5 10
      entry/src/main/ets/view/LocalMusic.ets

+ 5 - 10
entry/src/main/ets/view/LocalMusic.ets

@@ -7157,7 +7157,7 @@ export struct LocalMusic {
     .height(this.bottomBarHeight)
     .hitTestBehavior(HitTestMode.Transparent)
     .bindContentCover($$this.isShowPlay, this.MusicPlayBuilder(), {
-      modalTransition: ModalTransition.ALPHA,
+      modalTransition: ModalTransition.DEFAULT,
       onWillDisappear: () => {
         this.setShowPlayFalse()
       },
@@ -9349,10 +9349,10 @@ export struct LocalMusic {
               duration: 500,
               curve: Curve.Sharp
             }, () => {
-              this.scaleValueImage = Math.min(1, Math.max(0.3, 1 - event.offsetY / 350));
+              this.scaleValueImage = Math.min(1, Math.max(0.5, 1 - event.offsetY / 600));
               console.info('onecold scaleValueImage:', this.scaleValueImage)
 
-              this.scaleValueText =Math.min(1, Math.max(0.6, 1 - event.offsetY / 400));
+              this.scaleValueText =Math.min(1, Math.max(0.6, 1 - event.offsetY / 700));
             })
           }
         })
@@ -11095,8 +11095,7 @@ export struct LocalMusic {
 
 
         }
-
-
+        .width('100%')
         // 唱针以左上角为点选择逆时针40度
         Image($r('app.media.ic_music_cover_hand'))
           .height(130)
@@ -11239,7 +11238,6 @@ export struct LocalMusic {
       .visibility(this.isHide ? Visibility.Hidden : Visibility.Visible)
       .onClick(() => {
         this.setShowPlayFalse()
-
       })
 
 
@@ -13888,11 +13886,8 @@ export struct LocalMusic {
             !this.videoUrl.startsWith('https://') &&
             !FileUtil.accessSync(this.videoUrl)) {
             ToastUtil.showToast(Utility.resourceToString(getContext(), $r('app.string.file_not_exist')))
-          } else {
-            // ToastUtil.showToast(getContext()
-            //   .resourceManager
-            //   .getStringByNameSync("Honey_the_video_is_playing_errant_The_system_is_wandering"))
           }
+
         }
 
         that.hideLoadIng();