|
@@ -626,7 +626,7 @@ export struct LocalMusic {
|
|
|
this.isPlayListBgGrass = PreferencesUtil.getBooleanSync(SettingPage.IS_PLAYLIST_BG_GRASS, true)
|
|
this.isPlayListBgGrass = PreferencesUtil.getBooleanSync(SettingPage.IS_PLAYLIST_BG_GRASS, true)
|
|
|
this.isShowHeader = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_HEADER, true)
|
|
this.isShowHeader = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_HEADER, true)
|
|
|
this.volume = PreferencesUtil.getNumberSync('DefalutVolume', this.volume)
|
|
this.volume = PreferencesUtil.getNumberSync('DefalutVolume', this.volume)
|
|
|
- this.isSwipe = PreferencesUtil.getBooleanSync(SettingPage.IS_SWIPE, true)
|
|
|
|
|
|
|
+ this.isSwipe = PreferencesUtil.getBooleanSync(SettingPage.IS_SWIPE, false)
|
|
|
this.openSkipSongAnimate = PreferencesUtil.getBooleanSync(SettingPage.OPEN_SKIPSONG_ANIMATE, true)
|
|
this.openSkipSongAnimate = PreferencesUtil.getBooleanSync(SettingPage.OPEN_SKIPSONG_ANIMATE, true)
|
|
|
//如果是hicar连接状态,这些都是false
|
|
//如果是hicar连接状态,这些都是false
|
|
|
if(this.isHiCar()){
|
|
if(this.isHiCar()){
|
|
@@ -4788,6 +4788,12 @@ export struct LocalMusic {
|
|
|
@State genreStr: string = ''
|
|
@State genreStr: string = ''
|
|
|
@State imagePathStr: string = ''
|
|
@State imagePathStr: string = ''
|
|
|
|
|
|
|
|
|
|
+ @State albumArtistStr: string = ''
|
|
|
|
|
+ @State composerStr: string = ''
|
|
|
|
|
+ @State lyricistStr: string = ''
|
|
|
|
|
+ @State commentStr: string = ''
|
|
|
|
|
+ @State discStr: string = ''
|
|
|
|
|
+
|
|
|
doUpdateData() {
|
|
doUpdateData() {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
|
|
|
@@ -4811,14 +4817,14 @@ export struct LocalMusic {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let doChangeLyric = false
|
|
|
|
|
- if(item.filePath==this.currentSong?.filePath){
|
|
|
|
|
- if(this.lyricConStr !== this.lyricContent){
|
|
|
|
|
- doChangeLyric = true
|
|
|
|
|
- }
|
|
|
|
|
- }else if(this.lyricConStr !== this.tempLyricContent){
|
|
|
|
|
- doChangeLyric = true
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // let doChangeLyric = false
|
|
|
|
|
+ // if(item.filePath==this.currentSong?.filePath){
|
|
|
|
|
+ // if(this.lyricConStr !== this.lyricContent){
|
|
|
|
|
+ // doChangeLyric = true
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }else if(this.lyricConStr !== this.tempLyricContent){
|
|
|
|
|
+ // doChangeLyric = true
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
//用户更改了封面,那就内嵌下封面
|
|
//用户更改了封面,那就内嵌下封面
|
|
|
if(StrUtil.isNotEmpty(this.imagePathStr)){
|
|
if(StrUtil.isNotEmpty(this.imagePathStr)){
|
|
@@ -4835,22 +4841,32 @@ export struct LocalMusic {
|
|
|
title: this.titleStr,
|
|
title: this.titleStr,
|
|
|
artist: this.artistStr,
|
|
artist: this.artistStr,
|
|
|
album: this.ablumStr,
|
|
album: this.ablumStr,
|
|
|
- lyrics:this.lyricConStr,
|
|
|
|
|
|
|
+ // LYRICS:this.lyricConStr,
|
|
|
|
|
+ // USLT:this.lyricConStr,
|
|
|
TYER:this.yearStr,
|
|
TYER:this.yearStr,
|
|
|
genre:this.genreStr,
|
|
genre:this.genreStr,
|
|
|
track:this.trackStr,
|
|
track:this.trackStr,
|
|
|
|
|
+ albumartist:this.albumArtistStr,
|
|
|
|
|
+ TPE2:this.albumArtistStr,//ID3v2 中通常没有专门的 "专辑艺术家" 字段,但有些软件会使用 TPE2 来表示专辑艺
|
|
|
|
|
+ COMPOSER:this.composerStr,
|
|
|
|
|
+ lyricist:this.lyricistStr,
|
|
|
|
|
+ TEXT:this.lyricistStr,//ID3v2 使用 TEXT 字段来表示作词者
|
|
|
|
|
+ comment:this.commentStr,
|
|
|
|
|
+ // comm:this.commentStr,//ID3v2:使用 COMM(Comment)字段。
|
|
|
|
|
+ disc:this.discStr,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
//内嵌下标签的值,设置overwrite为true会直接修改原文件
|
|
//内嵌下标签的值,设置overwrite为true会直接修改原文件
|
|
|
const result:boolean = await repairAudioMetadata(
|
|
const result:boolean = await repairAudioMetadata(
|
|
|
item.filePath,
|
|
item.filePath,
|
|
|
|
|
+ this.lyricConStr,
|
|
|
metadata,
|
|
metadata,
|
|
|
true
|
|
true
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
if (result) {
|
|
if (result) {
|
|
|
this.table.updateMediaInfo(item.filePath, this.titleStr, this.artistStr, this.ablumStr,this.lyricConStr,
|
|
this.table.updateMediaInfo(item.filePath, this.titleStr, this.artistStr, this.ablumStr,this.lyricConStr,
|
|
|
- this.yearStr,this.genreStr,this.trackStr,
|
|
|
|
|
|
|
+ this.yearStr,this.genreStr,this.trackStr,this.albumArtistStr,this.composerStr, this.lyricistStr,this.commentStr,this.discStr,
|
|
|
(success: boolean, error?: string) => {
|
|
(success: boolean, error?: string) => {
|
|
|
// this.isShowEdit = false
|
|
// this.isShowEdit = false
|
|
|
if(this.isGridMusic){
|
|
if(this.isGridMusic){
|
|
@@ -4871,6 +4887,11 @@ export struct LocalMusic {
|
|
|
this.currentSong.year = this.yearStr
|
|
this.currentSong.year = this.yearStr
|
|
|
this.currentSong.genre = this.genreStr
|
|
this.currentSong.genre = this.genreStr
|
|
|
this.currentSong.track = this.trackStr
|
|
this.currentSong.track = this.trackStr
|
|
|
|
|
+
|
|
|
|
|
+ this.currentSong.ALBUMARTIST = this.albumArtistStr
|
|
|
|
|
+ this.currentSong.COMPOSER = this.composerStr
|
|
|
|
|
+ this.currentSong.LYRICIST = this.lyricistStr
|
|
|
|
|
+ this.currentSong.COMMENT = this.commentStr
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.doUpdateData()
|
|
this.doUpdateData()
|
|
@@ -4885,7 +4906,8 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- console.log('onecold 元数据更新失败');
|
|
|
|
|
|
|
+ ToastUtil.showToast('内嵌音乐标签失败')
|
|
|
|
|
+ console.log('onecold 内嵌音乐标签失败');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -4976,6 +4998,7 @@ export struct LocalMusic {
|
|
|
.fontSize(12)
|
|
.fontSize(12)
|
|
|
.height(38)
|
|
.height(38)
|
|
|
.width(88)
|
|
.width(88)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.MIDDLE,scale:0.6 })
|
|
|
.backgroundColor(this.themeColor)
|
|
.backgroundColor(this.themeColor)
|
|
|
.stateEffect(true)
|
|
.stateEffect(true)
|
|
|
.margin({ right: 5, left: 12 })
|
|
.margin({ right: 5, left: 12 })
|
|
@@ -5003,6 +5026,7 @@ export struct LocalMusic {
|
|
|
.fontSize(12)
|
|
.fontSize(12)
|
|
|
.height(38)
|
|
.height(38)
|
|
|
.width(88)
|
|
.width(88)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.MIDDLE,scale:0.6 })
|
|
|
.backgroundColor(this.themeColor)
|
|
.backgroundColor(this.themeColor)
|
|
|
.stateEffect(true)
|
|
.stateEffect(true)
|
|
|
.margin({ right: 12, left: 5 })
|
|
.margin({ right: 12, left: 5 })
|
|
@@ -5114,6 +5138,7 @@ export struct LocalMusic {
|
|
|
.height(40)
|
|
.height(40)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
|
|
|
+ .type(InputType.Number)
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ right: 20, left: 10 })
|
|
.margin({ right: 20, left: 10 })
|
|
@@ -5133,6 +5158,7 @@ export struct LocalMusic {
|
|
|
.height(40)
|
|
.height(40)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
|
|
|
+ .type(InputType.Number)
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ right: 20, left: 10 })
|
|
.margin({ right: 20, left: 10 })
|
|
@@ -5144,6 +5170,27 @@ export struct LocalMusic {
|
|
|
.margin({ top: 10, bottom: 10 })
|
|
.margin({ top: 10, bottom: 10 })
|
|
|
.justifyContent(FlexAlign.Start)
|
|
.justifyContent(FlexAlign.Start)
|
|
|
|
|
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('碟号:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ TextInput({ text:item.disc })
|
|
|
|
|
+ .height(40)
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .type(InputType.Number)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ right: 20, left: 10 })
|
|
|
|
|
+ .onChange((val: string) => {
|
|
|
|
|
+ this.discStr = val
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
Row() {
|
|
Row() {
|
|
|
Text('风格:')
|
|
Text('风格:')
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
@@ -5165,14 +5212,114 @@ export struct LocalMusic {
|
|
|
.justifyContent(FlexAlign.Start)
|
|
.justifyContent(FlexAlign.Start)
|
|
|
|
|
|
|
|
Row() {
|
|
Row() {
|
|
|
- Text('歌词:')
|
|
|
|
|
|
|
+ Text('专辑艺术家:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ TextInput({ text: item.ALBUMARTIST })
|
|
|
|
|
+ .height(40)
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ right: 20, left: 10 })
|
|
|
|
|
+ .onChange((val: string) => {
|
|
|
|
|
+ this.albumArtistStr = val
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('作曲:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ TextInput({ text: item.COMPOSER })
|
|
|
|
|
+ .height(40)
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ right: 20, left: 10 })
|
|
|
|
|
+ .onChange((val: string) => {
|
|
|
|
|
+ this.composerStr = val
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('作词:')
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ left: 22 })
|
|
.margin({ left: 22 })
|
|
|
|
|
+ TextInput({ text: item.LYRICIST })
|
|
|
|
|
+ .height(40)
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ right: 20, left: 10 })
|
|
|
|
|
+ .onChange((val: string) => {
|
|
|
|
|
+ this.lyricistStr = val
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('注释:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ TextInput({ text: item.COMMENT })
|
|
|
|
|
+ .height(40)
|
|
|
|
|
+ .maxLines(1)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ right: 20, left: 10 })
|
|
|
|
|
+ .onChange((val: string) => {
|
|
|
|
|
+ this.commentStr = val
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Column(){
|
|
|
|
|
+ Text('歌词:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+
|
|
|
|
|
+ Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
|
|
|
+ SymbolGlyph($r('sys.symbol.trash_fill'))
|
|
|
|
|
+ .fontSize(25)
|
|
|
|
|
+ .alignSelf(ItemAlign.Center)
|
|
|
|
|
+ .margin({ left: 22,top:15})
|
|
|
|
|
+ }
|
|
|
|
|
+ .backgroundColor(Color.Transparent)
|
|
|
|
|
+ .visibility(StrUtil.isEmpty(this.tempLyricContent)&&StrUtil.isEmpty(this.lyricConStr)?
|
|
|
|
|
+ Visibility.None:Visibility.Visible)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.MIDDLE,scale:0.6 })
|
|
|
|
|
+ .onClick(()=>{
|
|
|
|
|
+ this.lyricConStr = ''
|
|
|
|
|
+ this.lyricContent = ''
|
|
|
|
|
+ this.tempLyricContent = ''
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
TextArea({ text: StrUtil.isNotEmpty(this.lyricConStr)?this.lyricConStr:
|
|
TextArea({ text: StrUtil.isNotEmpty(this.lyricConStr)?this.lyricConStr:
|
|
|
- item.filePath === this.currentSong?.filePath ? this.lyricContent : this.tempLyricContent })
|
|
|
|
|
|
|
+ this.tempLyricContent })
|
|
|
.type(TextAreaType.NORMAL)
|
|
.type(TextAreaType.NORMAL)
|
|
|
- .height(275)
|
|
|
|
|
|
|
+ .height('auto')
|
|
|
.fontSize(14)
|
|
.fontSize(14)
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
@@ -5193,6 +5340,7 @@ export struct LocalMusic {
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.height(50)
|
|
.height(50)
|
|
|
.width(100)
|
|
.width(100)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.MIDDLE,scale:0.6 })
|
|
|
.backgroundColor(this.themeColor)
|
|
.backgroundColor(this.themeColor)
|
|
|
.stateEffect(true)
|
|
.stateEffect(true)
|
|
|
.margin({ right: 20, bottom: 20 })
|
|
.margin({ right: 20, bottom: 20 })
|
|
@@ -5206,6 +5354,7 @@ export struct LocalMusic {
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.height(50)
|
|
.height(50)
|
|
|
.width(100)
|
|
.width(100)
|
|
|
|
|
+ .clickEffect({ level: ClickEffectLevel.MIDDLE,scale:0.6 })
|
|
|
.backgroundColor(this.themeColor)
|
|
.backgroundColor(this.themeColor)
|
|
|
.stateEffect(true)
|
|
.stateEffect(true)
|
|
|
.margin({ left: 20, bottom: 20 })
|
|
.margin({ left: 20, bottom: 20 })
|
|
@@ -5216,6 +5365,9 @@ export struct LocalMusic {
|
|
|
this.isShowEdit = false
|
|
this.isShowEdit = false
|
|
|
}
|
|
}
|
|
|
this.setEditStrEmpty()
|
|
this.setEditStrEmpty()
|
|
|
|
|
+ if(this.isShowPlay){
|
|
|
|
|
+ this.isShowEdit = false
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -5243,6 +5395,11 @@ export struct LocalMusic {
|
|
|
this.genreStr = ''
|
|
this.genreStr = ''
|
|
|
this.yearStr = ''
|
|
this.yearStr = ''
|
|
|
this.trackStr = ''
|
|
this.trackStr = ''
|
|
|
|
|
+ this.albumArtistStr = ''
|
|
|
|
|
+ this.composerStr = ''
|
|
|
|
|
+ this.lyricistStr = ''
|
|
|
|
|
+ this.commentStr = ''
|
|
|
|
|
+ this.discStr = ''
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Builder
|
|
@Builder
|
|
@@ -5497,6 +5654,80 @@ export struct LocalMusic {
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
.margin({ top: 10, bottom: 10 })
|
|
.margin({ top: 10, bottom: 10 })
|
|
|
.justifyContent(FlexAlign.Start)
|
|
.justifyContent(FlexAlign.Start)
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('碟号:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ Text(currentItem.disc)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .margin({ left: 10 })
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('专辑艺术家:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ Text(currentItem.ALBUMARTIST)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .margin({ left: 10 })
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('作曲家:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ Text(currentItem.COMPOSER)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .margin({ left: 10 })
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('作词家:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ Text(currentItem.LYRICIST)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .margin({ left: 10 })
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
+
|
|
|
|
|
+ Row() {
|
|
|
|
|
+ Text('注释:')
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .margin({ left: 22 })
|
|
|
|
|
+ Text(currentItem.COMMENT)
|
|
|
|
|
+ .fontSize(14)
|
|
|
|
|
+ .margin({ left: 10 })
|
|
|
|
|
+ .fontColor($r('app.color.text_color'))
|
|
|
|
|
+ .layoutWeight(1)
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
|
|
|
|
|
|
|
|
|
|
Row() {
|
|
Row() {
|
|
@@ -9391,6 +9622,7 @@ export struct LocalMusic {
|
|
|
break;
|
|
break;
|
|
|
case 15: //编辑标签
|
|
case 15: //编辑标签
|
|
|
this.setEditStrEmpty()
|
|
this.setEditStrEmpty()
|
|
|
|
|
+ this.tempLyricContent = this.lyricContent
|
|
|
this.isShowEdit = !this.isShowEdit;
|
|
this.isShowEdit = !this.isShowEdit;
|
|
|
break;
|
|
break;
|
|
|
case 16: //悬浮歌词
|
|
case 16: //悬浮歌词
|