Explorar o código

无封面的时候,播放控制条默认背景alt

onecold hai 8 meses
pai
achega
4cc0fee6f9
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      entry/src/main/ets/pages/NewIndex.ets

+ 3 - 3
entry/src/main/ets/pages/NewIndex.ets

@@ -349,11 +349,11 @@ struct NewIndex {
       this.loadPlaylistList()
     });
 
-    if(Utility.isOpenTime()&&!PreferencesUtil.getBooleanSync('isShowHaoPingDialog', false)){
+    if(Utility.isOpenTime()&&!PreferencesUtil.getBooleanSync('isShowHaoPingDialog179', false)){
       setTimeout(()=>{
         Utility.showHaoPingDialog(this.getUIContext(),this.context,this.appName,this.bundleName)
         PreferencesUtil.putSync('isShowHaoPingDialog', true)
-      },20000)
+      },25000)
     }
   }
 
@@ -479,7 +479,7 @@ struct NewIndex {
         .margin({ bottom:DeviceUtil.getDeviceType() === resourceManager.DeviceType.DEVICE_TYPE_2IN1
           ? 30 :this.bottomSafeHeight })
         .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK)
-        .backgroundImage( this.cover)
+        .backgroundImage(StrUtil.isEmpty(this.cover) ?$r('app.media.alt'):this.cover)
         .visibility(this.isMultiSelect||(this.mType>0&&this.mType<6) ? Visibility.None : Visibility.Visible)
         .backgroundImageSize( {  width: '100%' })
         .animation({