|
|
@@ -814,7 +814,7 @@ export struct LocalMusic {
|
|
|
if (curPath === this.rootPath) {
|
|
|
this.titleBarModel.setLeftIconMain($r('app.media.menu'))
|
|
|
} else {
|
|
|
-
|
|
|
+ this.currentTitleName = Utility.getFileDirName(this.currentPath, this.rootPath)
|
|
|
if (this.rootPath === Utility.getParentDirectory(curPath)) {
|
|
|
this.titleBarModel.setLeftIconMain($r('app.media.left_back_white'))
|
|
|
}
|
|
|
@@ -1998,6 +1998,33 @@ export struct LocalMusic {
|
|
|
}else {
|
|
|
this.getListView()
|
|
|
}
|
|
|
+ if(this.modeType==0){
|
|
|
+ Column() {
|
|
|
+ Button('同步数据', { type: ButtonType.Capsule, stateEffect: true })
|
|
|
+ .width(130)
|
|
|
+ .height(50)
|
|
|
+ .margin({ top: 100, bottom: 40 })
|
|
|
+ .backgroundColor(this.themeColor)
|
|
|
+ .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
+ .onClick(() => {
|
|
|
+ this.asyncCurrentPathData()
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ .height(100)
|
|
|
+ .position({top:300})
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ .opacity(this.isZero ? 1 : 0)
|
|
|
+ .visibility(this.isZero&&!this.isFavMusic&&!this.isHistory
|
|
|
+ && this.modeType === 0 ? Visibility.Visible : Visibility.None)
|
|
|
+ .animation({
|
|
|
+ duration: 666,
|
|
|
+ curve: 'ease-in-out' // 可选动画曲线
|
|
|
+ })
|
|
|
+ .width('100%')
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
.layoutWeight(1)
|
|
|
.height('100%')
|
|
|
@@ -2094,30 +2121,7 @@ export struct LocalMusic {
|
|
|
.position(this.isShowCoverTitle()?{ bottom:78}
|
|
|
:{ bottom:this.isPhoneLan()?130: 168 }) // 将 Row 固定在底部
|
|
|
|
|
|
- if(this.modeType==0){
|
|
|
- Column() {
|
|
|
- Button('同步数据', { type: ButtonType.Capsule, stateEffect: true })
|
|
|
- .width(130)
|
|
|
- .height(50)
|
|
|
- .margin({ top: 50, bottom: 40 })
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
-
|
|
|
- .onClick(() => {
|
|
|
- this.asyncCurrentPathData()
|
|
|
- })
|
|
|
|
|
|
- }
|
|
|
- .height('60%')
|
|
|
- .justifyContent(FlexAlign.Center)
|
|
|
- .opacity(this.isZero ? 1 : 0)
|
|
|
- .visibility(this.isZero&&!this.isFavMusic&&!this.isHistory
|
|
|
- && this.modeType === 0 ? Visibility.Visible : Visibility.None)
|
|
|
- .animation({
|
|
|
- duration: 666,
|
|
|
- curve: 'ease-in-out' // 可选动画曲线
|
|
|
- })
|
|
|
- .width('100%')
|
|
|
- }
|
|
|
}
|
|
|
.width('100%')
|
|
|
.height('100%')
|