|
|
@@ -4060,10 +4060,20 @@ export struct LocalMusic {
|
|
|
this.isFavMusic = true
|
|
|
this.titleBarModel.setLeftIconMain($r('app.media.left_back_white'))
|
|
|
}else {
|
|
|
- this.currentTitleName = '歌单:'+item.name
|
|
|
+ this.currentTitleName = item.name
|
|
|
this.currentPath = item.filePath
|
|
|
this.currentTitleCover = $r('app.media.ic_avatar5')
|
|
|
this.getSortedFiles(this.currentPath)
|
|
|
+ //进入歌单的时候的滚动位置在顶部
|
|
|
+ setTimeout(() => {
|
|
|
+ if(this.modeType ==0){
|
|
|
+ if (this.isGridMusic) {
|
|
|
+ this.scroller.scrollTo({ xOffset: 0, yOffset: 0 })
|
|
|
+ } else {
|
|
|
+ this.listScroller.scrollTo({ xOffset: 0, yOffset: 0 })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, 300)
|
|
|
}
|
|
|
|
|
|
break;
|