|
@@ -41,7 +41,7 @@ import { mappingVoicePart, subjectFingering } from "/src/view/fingering/fingerin
|
|
|
import Fingering from "/src/view/fingering";
|
|
|
import store from "store";
|
|
|
import Tick, { handleInitTick } from "/src/view/tick";
|
|
|
-import FollowPractice from "/src/view/follow-practice";
|
|
|
+import FollowPractice, { followData } from "/src/view/follow-practice";
|
|
|
import FollowModel from "../follow-model";
|
|
|
import RecordingTime from "../custom-plugins/recording-time";
|
|
|
import WorkIndex from "../custom-plugins/work-index";
|
|
@@ -58,7 +58,7 @@ export default defineComponent({
|
|
|
paddingLeft: "",
|
|
|
headerHide: false,
|
|
|
/** 页面显示 */
|
|
|
- pageShow: true
|
|
|
+ pageShow: true,
|
|
|
});
|
|
|
const getAPPData = async () => {
|
|
|
const screenData = await isSpecialShapedScreen();
|
|
@@ -126,13 +126,14 @@ export default defineComponent({
|
|
|
state.accompany = data.accompany;
|
|
|
state.midiUrl = data.midiUrl;
|
|
|
state.parentCategoriesId = data.musicTag;
|
|
|
+ state.musicSheetCategoriesId = data.musicSheetCategoriesId;
|
|
|
state.playMode = data.audioType === "MP3" ? "MP3" : "MIDI";
|
|
|
state.originSpeed = state.speed = data.playSpeed;
|
|
|
state.track = data.code || data.track;
|
|
|
state.enableNotation = data.notation ? true : false;
|
|
|
|
|
|
// 映射声部ID
|
|
|
- state.subjectId = mappingVoicePart(state.track as any || state.subjectId, "INSTRUMENT");
|
|
|
+ state.subjectId = mappingVoicePart((state.track as any) || state.subjectId, "INSTRUMENT");
|
|
|
// console.log("🚀 ~ state.subjectId:", state.subjectId, state.track as any , state.subjectId)
|
|
|
// 是否打击乐
|
|
|
// state.isPercussion =
|
|
@@ -143,7 +144,7 @@ export default defineComponent({
|
|
|
|
|
|
// 设置指法
|
|
|
state.fingeringInfo = subjectFingering(state.subjectId);
|
|
|
- console.log("🚀 ~ state.fingeringInfo:", state.fingeringInfo, state.subjectId, state.track)
|
|
|
+ console.log("🚀 ~ state.fingeringInfo:", state.fingeringInfo, state.subjectId, state.track);
|
|
|
|
|
|
// 检测是否原音和伴奏都有
|
|
|
if (!state.music || !state.accompany) {
|
|
@@ -298,7 +299,7 @@ export default defineComponent({
|
|
|
)}
|
|
|
</Transition>
|
|
|
<div class={[styles.headHeight, detailData.headerHide && styles.headHide]}>
|
|
|
- {state.musicRendered && <HeaderTop onClose={() => detailData.pageShow = false} />}
|
|
|
+ {state.musicRendered && <HeaderTop onClose={() => (detailData.pageShow = false)} />}
|
|
|
</div>
|
|
|
<div
|
|
|
id="scrollContainer"
|
|
@@ -349,8 +350,14 @@ export default defineComponent({
|
|
|
<RecordingTime />
|
|
|
{/* 作业 */}
|
|
|
{query.workRecord && <WorkIndex pageShow={detailData.pageShow} />}
|
|
|
+ {followData.start + ""}
|
|
|
{/* 曲谱列表 */}
|
|
|
- {/* <TheMusicList /> */}
|
|
|
+ {state.playState == "play" ||
|
|
|
+ followData.start ||
|
|
|
+ evaluatingData.startBegin ||
|
|
|
+ query.workRecord ? null : (
|
|
|
+ <TheMusicList />
|
|
|
+ )}
|
|
|
</>
|
|
|
)}
|
|
|
</div>
|