|
@@ -5,7 +5,7 @@ import styles from './music-detail.module.less'
|
|
import { Button, Image, Picker, Popup, Skeleton } from 'vant'
|
|
import { Button, Image, Picker, Popup, Skeleton } from 'vant'
|
|
import iconBg from './images/music-img-default.png'
|
|
import iconBg from './images/music-img-default.png'
|
|
import iconDownload from './images/icon-download.png'
|
|
import iconDownload from './images/icon-download.png'
|
|
-import iconChange from './images/icon-change.png'
|
|
|
|
|
|
+// import iconChange from './images/icon-change.png'
|
|
import iconMusic from './images/icon-music.png'
|
|
import iconMusic from './images/icon-music.png'
|
|
import { postMessage, promisefiyPostMessage } from '@/helpers/native-message'
|
|
import { postMessage, promisefiyPostMessage } from '@/helpers/native-message'
|
|
import request from '@/helpers/request'
|
|
import request from '@/helpers/request'
|
|
@@ -153,10 +153,10 @@ export default defineComponent({
|
|
const getInstrumentItem = (instruments: any, name = '') => {
|
|
const getInstrumentItem = (instruments: any, name = '') => {
|
|
name = name.toLocaleLowerCase().replace(/ /g, '') //.replace(/\d*/gi, '')
|
|
name = name.toLocaleLowerCase().replace(/ /g, '') //.replace(/\d*/gi, '')
|
|
if (!name) return ''
|
|
if (!name) return ''
|
|
- for (let key in instruments) {
|
|
|
|
|
|
+ for (const key in instruments) {
|
|
const item = instruments[key]
|
|
const item = instruments[key]
|
|
const _key = item.track?.toLocaleLowerCase().replace(/ /g, '') //.replace(/\d*/gi, '')
|
|
const _key = item.track?.toLocaleLowerCase().replace(/ /g, '') //.replace(/\d*/gi, '')
|
|
- console.log(_key)
|
|
|
|
|
|
+ // console.log(_key)
|
|
if (_key === name) {
|
|
if (_key === name) {
|
|
return item
|
|
return item
|
|
}
|
|
}
|
|
@@ -170,7 +170,7 @@ export default defineComponent({
|
|
staffData.musicPdfUrl = row.musicPdfUrl
|
|
staffData.musicPdfUrl = row.musicPdfUrl
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
staffData.partNames = await getPartNames(row.xmlFileUrl)
|
|
staffData.partNames = await getPartNames(row.xmlFileUrl)
|
|
let partList = row.background || []
|
|
let partList = row.background || []
|
|
@@ -342,16 +342,14 @@ export default defineComponent({
|
|
</p>
|
|
</p>
|
|
<p class={styles.author}>{staffData.details.composer}</p>
|
|
<p class={styles.author}>{staffData.details.composer}</p>
|
|
</div>}
|
|
</div>}
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class={[styles.showImgContainer, staffData.musicPdfUrl && styles.pdfContainer]}>
|
|
<div class={[styles.showImgContainer, staffData.musicPdfUrl && styles.pdfContainer]}>
|
|
{/* {staffData.details?.musicSheetType === 'CONCERT' ? (
|
|
{/* {staffData.details?.musicSheetType === 'CONCERT' ? (
|
|
<> */}
|
|
<> */}
|
|
{loading.value && (
|
|
{loading.value && (
|
|
- <>
|
|
|
|
<Skeleton title row={7} />
|
|
<Skeleton title row={7} />
|
|
- </>
|
|
|
|
)}
|
|
)}
|
|
|
|
|
|
{staffData.details.id ? staffData.musicPdfUrl ? (
|
|
{staffData.details.id ? staffData.musicPdfUrl ? (
|