|
@@ -308,7 +308,11 @@ export default defineComponent({
|
|
|
shareCall(str)
|
|
|
setTimeout(() => {
|
|
|
if(Date.now() - t < 3500){
|
|
|
- window.location.href = location.origin + '/#/transfer'
|
|
|
+ if (window.location.pathname.includes('teacher')) {
|
|
|
+ window.location.href = location.origin + '/student' + '/#/transfer'
|
|
|
+ } else {
|
|
|
+ window.location.href = location.origin + '/student' + '/#/download'
|
|
|
+ }
|
|
|
}
|
|
|
}, 3000)
|
|
|
}
|
|
@@ -423,7 +427,7 @@ export default defineComponent({
|
|
|
window.location.href = location.origin + '/student' + '/#/transfer'
|
|
|
} else {
|
|
|
router.push({
|
|
|
- path:"/transfer"
|
|
|
+ path:"/download"
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -437,8 +441,8 @@ export default defineComponent({
|
|
|
});
|
|
|
// 初始化五线谱
|
|
|
function initStaff(){
|
|
|
- const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
|
|
|
- // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
|
|
|
+ // const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
|
|
|
+ const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
|
|
|
staffState.staffSrc = src
|
|
|
window.addEventListener('message', (event) => {
|
|
|
const { api, height } = event.data;
|
|
@@ -621,12 +625,12 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
<Sticky zIndex={1000} offsetTop={state.heightV - 1 + "px"}>
|
|
|
- <div class={[styles.playSection, plyrState.mediaTimeShow && styles.mediaTimeShow,!plyrState.loaded && styles.notLoaded,isLandscapeScreen.value&&styles.isLandscapeScreen]} id="playMediaSection" onClick={handlerClickPlay}>
|
|
|
+ <div class={[styles.playSection, plyrState.mediaTimeShow && styles.mediaTimeShow,!plyrState.loaded && styles.notLoaded,isLandscapeScreen.value&&styles.isLandscapeScreen, state.playType === 'Audio' && styles.isLandscapeScreen2]} id="playMediaSection" onClick={handlerClickPlay}>
|
|
|
{
|
|
|
isLandscapeScreen.value &&
|
|
|
<div class={styles.backBox}>
|
|
|
<img class={styles.backImg} src={backImg} onClick={handlerBack}/>
|
|
|
- <div class={styles.musicDetail}>
|
|
|
+ <div class={[styles.musicDetail, state.playType === 'Audio' && styles.adMusicDetail]}>
|
|
|
<div class={styles.musicSheetName}>
|
|
|
<NoticeBar
|
|
|
text={state.musicDetail?.musicSheetName}
|