|
@@ -18,6 +18,7 @@ import request from '@/helpers/request'
|
|
|
import { state } from '@/state'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
import { listenerMessage, postMessage, promisefiyPostMessage } from '@/helpers/native-message'
|
|
|
+import qs from 'query-string'
|
|
|
import MusicScore from './component/musicScore'
|
|
|
import iconDian from './image/icon-dian.svg'
|
|
|
import iconPoint from './image/icon-point.svg'
|
|
@@ -1168,7 +1169,35 @@ export default defineComponent({
|
|
|
</div>
|
|
|
)}
|
|
|
</Transition>
|
|
|
- {isRender && m.type === 'IMG' && <img src={m.content} />}
|
|
|
+ {isRender && m.type === 'IMG' && (
|
|
|
+ <>
|
|
|
+ <img src={m.content} />
|
|
|
+ {m.materialMusicId && (
|
|
|
+ <div
|
|
|
+ class={[styles.goPractice, activeData.model ? '' : styles.hide]}
|
|
|
+ onClick={(e: any) => {
|
|
|
+ // 去云练习完整版
|
|
|
+ e.stopPropagation()
|
|
|
+ const parmas = qs.stringify({
|
|
|
+ id: m.materialMusicId
|
|
|
+ })
|
|
|
+ const src = `${location.origin}/orchestra-music-score/?` + parmas
|
|
|
+ postMessage({
|
|
|
+ api: 'openAccompanyWebView',
|
|
|
+ content: {
|
|
|
+ url: src,
|
|
|
+ orientation: 0,
|
|
|
+ c_orientation: 0,
|
|
|
+ isHideTitle: true,
|
|
|
+ statusBarTextColor: false,
|
|
|
+ isOpenLight: true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ ></div>
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ )}
|
|
|
{isRender && m.type === 'SONG' && (
|
|
|
<MusicScore
|
|
|
activeModel={activeData.model}
|