|
@@ -643,6 +643,7 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
case 104: //收到查询专辑列表
|
|
case 104: //收到查询专辑列表
|
|
|
this.albumMap = e.data.data1;
|
|
this.albumMap = e.data.data1;
|
|
|
|
|
+
|
|
|
this.albumList = e.data.data2
|
|
this.albumList = e.data.data2
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -2330,7 +2331,7 @@ export struct LocalMusic {
|
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
.fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
- .visibility(this.modeType === 2 ? Visibility.Visible : Visibility.None)
|
|
|
|
|
|
|
+ .visibility(this.modeType === 2? Visibility.Visible : Visibility.None)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ left: 10 })
|
|
.margin({ left: 10 })
|
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
@@ -3075,7 +3076,7 @@ export struct LocalMusic {
|
|
|
.cachedCount(3)
|
|
.cachedCount(3)
|
|
|
// .columnsTemplate('1fr '.repeat(this.currentWidthBreakpoint === WidthBreakpoint.WIDTH_SM ? 2 : 5))
|
|
// .columnsTemplate('1fr '.repeat(this.currentWidthBreakpoint === WidthBreakpoint.WIDTH_SM ? 2 : 5))
|
|
|
.columnsTemplate(this.twoFingerType==3?'repeat(auto-fit, 150)':this.twoFingerType==2?'repeat(auto-fit, 110)':'repeat(auto-fit, 80)')
|
|
.columnsTemplate(this.twoFingerType==3?'repeat(auto-fit, 150)':this.twoFingerType==2?'repeat(auto-fit, 110)':'repeat(auto-fit, 80)')
|
|
|
- .rowsGap(this.twoFingerType==3?25:this.twoFingerType==2?20:10)
|
|
|
|
|
|
|
+ .rowsGap(this.twoFingerType==3?18:this.twoFingerType==2?12:3)
|
|
|
.visibility(this.isGridMusic?Visibility.Visible:Visibility.None)
|
|
.visibility(this.isGridMusic?Visibility.Visible:Visibility.None)
|
|
|
.scale({x:this.scaleValue,y:this.scaleValue,z:1})
|
|
.scale({x:this.scaleValue,y:this.scaleValue,z:1})
|
|
|
.gesture(PinchGesture({ fingers: 2 })
|
|
.gesture(PinchGesture({ fingers: 2 })
|
|
@@ -3151,8 +3152,8 @@ export struct LocalMusic {
|
|
|
.alt($r('app.media.ic_avatar6'))
|
|
.alt($r('app.media.ic_avatar6'))
|
|
|
.clip(true)
|
|
.clip(true)
|
|
|
.borderRadius({
|
|
.borderRadius({
|
|
|
- topLeft: 20,
|
|
|
|
|
- topRight : 20,
|
|
|
|
|
|
|
+ topLeft: 12,
|
|
|
|
|
+ topRight : 12,
|
|
|
bottomLeft: 0,
|
|
bottomLeft: 0,
|
|
|
bottomRight: 0
|
|
bottomRight: 0
|
|
|
})
|
|
})
|
|
@@ -3243,7 +3244,7 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
.width(this.getGridWight())
|
|
.width(this.getGridWight())
|
|
|
- .borderRadius(20)
|
|
|
|
|
|
|
+ .borderRadius(12)
|
|
|
.backgroundImage(item.pixelMapPath)
|
|
.backgroundImage(item.pixelMapPath)
|
|
|
.backgroundImageSize({ height: '100%',width:'100%' })
|
|
.backgroundImageSize({ height: '100%',width:'100%' })
|
|
|
.backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK)
|
|
.backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK)
|
|
@@ -3268,6 +3269,7 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
.backgroundColor(Color.Transparent)
|
|
.backgroundColor(Color.Transparent)
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
|
|
+ .padding({top:15})
|
|
|
.height(this.getGridAllHeight())
|
|
.height(this.getGridAllHeight())
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
if(this.isMultiSelect&&item.type!==CommonConstants.TYPE_IS_DIR){
|
|
if(this.isMultiSelect&&item.type!==CommonConstants.TYPE_IS_DIR){
|
|
@@ -3281,16 +3283,16 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getGridAllHeight(){
|
|
getGridAllHeight(){
|
|
|
- let heightG = 210
|
|
|
|
|
|
|
+ let heightG = 222
|
|
|
switch (this.twoFingerType){
|
|
switch (this.twoFingerType){
|
|
|
case 1:
|
|
case 1:
|
|
|
- heightG = 105
|
|
|
|
|
|
|
+ heightG = 118
|
|
|
break;
|
|
break;
|
|
|
case 2:
|
|
case 2:
|
|
|
- heightG = 155
|
|
|
|
|
|
|
+ heightG = 168
|
|
|
break;
|
|
break;
|
|
|
case 3:
|
|
case 3:
|
|
|
- heightG = 210
|
|
|
|
|
|
|
+ heightG = 222
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
return heightG
|
|
return heightG
|
|
@@ -6223,9 +6225,9 @@ export struct LocalMusic {
|
|
|
.visibility(this.isPuraWP()?Visibility.None:Visibility.Visible)
|
|
.visibility(this.isPuraWP()?Visibility.None:Visibility.Visible)
|
|
|
.borderRadius(this.isCoverRectangle ? 20 : '100%')
|
|
.borderRadius(this.isCoverRectangle ? 20 : '100%')
|
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE})
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE})
|
|
|
- // .transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }),
|
|
|
|
|
- // TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
|
|
- .align(Alignment.Center)// .opacity(this.isCoverOpacity()||this.isCoverRectangle?0:1)
|
|
|
|
|
|
|
+ .transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }),
|
|
|
|
|
+ TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
|
|
+ .align(Alignment.Center)//
|
|
|
.clip(true)
|
|
.clip(true)
|
|
|
.rotate({
|
|
.rotate({
|
|
|
x: 0,
|
|
x: 0,
|