|
@@ -126,7 +126,7 @@ export default defineComponent({
|
|
|
console.log(error);
|
|
|
}
|
|
|
|
|
|
- console.log(res, 'data', data.reshing, 'musicSubject');
|
|
|
+ // console.log(res, 'data', data.reshing, 'musicSubject');
|
|
|
if (data.reshing) {
|
|
|
data.list = [];
|
|
|
data.reshing = false;
|
|
@@ -471,6 +471,15 @@ export default defineComponent({
|
|
|
musicIframeLoad();
|
|
|
}
|
|
|
);
|
|
|
+ // 合奏曲谱转换时,更新曲谱信息
|
|
|
+ watch(
|
|
|
+ () => data.showMusicImg,
|
|
|
+ () => {
|
|
|
+ if (isEnsemble.value) {
|
|
|
+ musicIframeLoad();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
|
|
|
const musicImg = computed(() => {
|
|
|
let imgs: any = [];
|
|
@@ -651,6 +660,13 @@ export default defineComponent({
|
|
|
onClick={(e: Event) => {
|
|
|
e.stopPropagation();
|
|
|
handlePlay(item);
|
|
|
+ if (
|
|
|
+ data.listActive === index &&
|
|
|
+ data.playState === 'play' &&
|
|
|
+ isEnsemble.value
|
|
|
+ ) {
|
|
|
+ musicIframeLoad();
|
|
|
+ }
|
|
|
}}>
|
|
|
试听
|
|
|
<img
|
|
@@ -672,6 +688,13 @@ export default defineComponent({
|
|
|
onClick={(e: Event) => {
|
|
|
e.stopPropagation();
|
|
|
handlePlay(item);
|
|
|
+ if (
|
|
|
+ data.listActive === index &&
|
|
|
+ data.playState === 'play' &&
|
|
|
+ isEnsemble.value
|
|
|
+ ) {
|
|
|
+ musicIframeLoad();
|
|
|
+ }
|
|
|
}}>
|
|
|
试听
|
|
|
<img
|
|
@@ -806,7 +829,8 @@ export default defineComponent({
|
|
|
id="staffIframeRef"
|
|
|
style={{
|
|
|
width: '100%',
|
|
|
- height: '100%'
|
|
|
+ height: '100%',
|
|
|
+ paddingTop: '20px'
|
|
|
// opacity: loading.value ? 0 : 1
|
|
|
}}
|
|
|
src={data.iframeSrc}
|