|
@@ -11110,7 +11110,8 @@ export struct LocalMusic {
|
|
|
RectangleCoverView(){
|
|
RectangleCoverView(){
|
|
|
|
|
|
|
|
Stack({alignContent:Alignment.Center}){
|
|
Stack({alignContent:Alignment.Center}){
|
|
|
- Image(this.cover)
|
|
|
|
|
|
|
+ Image( StrUtil.isNotEmpty(this.cover)?
|
|
|
|
|
+ this.cover:$r('app.media.alt'))
|
|
|
.height(this.isHiCar()?(px2vp(this.windowHeight)*0.43):
|
|
.height(this.isHiCar()?(px2vp(this.windowHeight)*0.43):
|
|
|
this.isCoverOpacity()?(px2vp(this.windowHeight)*0.54):'auto')
|
|
this.isCoverOpacity()?(px2vp(this.windowHeight)*0.54):'auto')
|
|
|
.width(this.isHiCar()||this.isCoverOpacity()?'auto':this.isBigScreen() ? '72%' : this.isCoverTopBig ? '100%' : '88%')
|
|
.width(this.isHiCar()||this.isCoverOpacity()?'auto':this.isBigScreen() ? '72%' : this.isCoverTopBig ? '100%' : '88%')
|
|
@@ -11178,7 +11179,8 @@ export struct LocalMusic {
|
|
|
type: ShadowType.BLUR,
|
|
type: ShadowType.BLUR,
|
|
|
color: 'on_primary'
|
|
color: 'on_primary'
|
|
|
})
|
|
})
|
|
|
- Image(this.cover)
|
|
|
|
|
|
|
+ Image( StrUtil.isNotEmpty(this.cover)?
|
|
|
|
|
+ this.cover:$r('app.media.alt'))
|
|
|
.height(this.isHiCarSmall()?(this.isHiCarKuanBianPing()?140:px2vp(this.windowHeight)*0.38):
|
|
.height(this.isHiCarSmall()?(this.isHiCarKuanBianPing()?140:px2vp(this.windowHeight)*0.38):
|
|
|
(this.isCoverOpacity() ? (px2vp(this.windowHeight)*0.62) : this.isCoverRectangle ? 320 : 168))
|
|
(this.isCoverOpacity() ? (px2vp(this.windowHeight)*0.62) : this.isCoverRectangle ? 320 : 168))
|
|
|
.objectFit(this.isCoverRectangle ? ImageFit.Contain : ImageFit.Auto)
|
|
.objectFit(this.isCoverRectangle ? ImageFit.Contain : ImageFit.Auto)
|