|
@@ -194,17 +194,17 @@ export default defineComponent({
|
|
res.data.audioType === 'MIDI'
|
|
res.data.audioType === 'MIDI'
|
|
? 1
|
|
? 1
|
|
: 0
|
|
: 0
|
|
- this.mp3Url = res.data.metronomeUrl || res.data.url
|
|
|
|
|
|
+ this.mp3Url = res.data.audioFileUrl //res.data.metronomeUrl || res.data.url
|
|
} else {
|
|
} else {
|
|
this.midiUrl = res.data.midiUrl
|
|
this.midiUrl = res.data.midiUrl
|
|
}
|
|
}
|
|
|
|
|
|
this.backgroundMp3s = (res.data.background || []).map((item, index) => {
|
|
this.backgroundMp3s = (res.data.background || []).map((item, index) => {
|
|
if (index === 0) {
|
|
if (index === 0) {
|
|
- this.bgmp3Url = item.metronomeUrl || item.audioFileUrl
|
|
|
|
|
|
+ this.bgmp3Url = item.audioFileUrl
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
- url: this.hasBeat ? item.metronomeUrl : item.audioFileUrl,
|
|
|
|
|
|
+ url: item.audioFileUrl,
|
|
track: item.track
|
|
track: item.track
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -223,8 +223,9 @@ export default defineComponent({
|
|
sourceType: 'TEACHER',
|
|
sourceType: 'TEACHER',
|
|
mp3Type,
|
|
mp3Type,
|
|
hasBeat: this.hasBeat,
|
|
hasBeat: this.hasBeat,
|
|
- url: this.hasBeat ? '' : this.mp3Url,
|
|
|
|
- metronomeUrl: this.hasBeat ? this.mp3Url : '',
|
|
|
|
|
|
+ // url: this.hasBeat ? '' : this.mp3Url,
|
|
|
|
+ // metronomeUrl: this.hasBeat ? this.mp3Url : '',
|
|
|
|
+ audioFileUrl: this.mp3Url,
|
|
showFingering: Number(this.showFingering),
|
|
showFingering: Number(this.showFingering),
|
|
musicTag: this.tags.join(','),
|
|
musicTag: this.tags.join(','),
|
|
musicSubject: Number(this.selectedSubjectList?.label) || undefined,
|
|
musicSubject: Number(this.selectedSubjectList?.label) || undefined,
|
|
@@ -237,9 +238,9 @@ export default defineComponent({
|
|
composer: this.composer,
|
|
composer: this.composer,
|
|
musicPrice: this.musicPrice,
|
|
musicPrice: this.musicPrice,
|
|
background: this.backgroundMp3s.map(item => ({
|
|
background: this.backgroundMp3s.map(item => ({
|
|
- audioFileUrl: this.hasBeat ? '' : this.bgmp3Url,
|
|
|
|
- track: item.track,
|
|
|
|
- metronomeUrl: this.hasBeat ? this.bgmp3Url : ''
|
|
|
|
|
|
+ audioFileUrl: this.bgmp3Url,
|
|
|
|
+ track: item.track
|
|
|
|
+ // metronomeUrl: this.hasBeat ? this.bgmp3Url : ''
|
|
}))
|
|
}))
|
|
}
|
|
}
|
|
},
|
|
},
|