|
@@ -1,6 +1,5 @@
|
|
|
import { Skeleton } from "vant";
|
|
|
import { computed, defineComponent, nextTick, onBeforeMount, onBeforeUnmount, onMounted, reactive, Transition, watch, watchEffect } from "vue";
|
|
|
-import { useRoute } from "vue-router";
|
|
|
import { formateTimes } from "../../helpers/formateMusic";
|
|
|
import Metronome, { metronomeData } from "../../helpers/metronome";
|
|
|
import state, { isRhythmicExercises, musicscoresettingKey } from "../../state";
|
|
@@ -12,7 +11,7 @@ import { sysMusicScoreAccompanimentQueryPage } from "../api";
|
|
|
import EvaluatModel from "../evaluat-model";
|
|
|
import HeaderTop from "../header-top";
|
|
|
import styles from "./index.module.less";
|
|
|
-import { api_cloudLoading, api_openCamera, api_setStatusBarVisibility, isSpecialShapedScreen } from "/src/helpers/communication";
|
|
|
+import { api_cloudLoading, api_openCamera, api_setStatusBarVisibility, isSpecialShapedScreen } from "/src/helpers/communication";
|
|
|
import { getQuery } from "/src/utils/queryString";
|
|
|
import Evaluating, { evaluatingData } from "/src/view/evaluating";
|
|
|
import MeasureSpeed from "/src/view/plugins/measure-speed";
|
|
@@ -24,6 +23,8 @@ import FollowPractice from "/src/view/follow-practice";
|
|
|
import FollowModel from "../follow-model";
|
|
|
import RecordingTime from "../custom-plugins/recording-time";
|
|
|
import UnitTest from "../custom-plugins/unitTest";
|
|
|
+import CheckStudentVip from "../custom-plugins/check-student-vip";
|
|
|
+import AfterClassTraining from "../custom-plugins/after-class-training";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "music-list",
|
|
@@ -105,7 +106,7 @@ export default defineComponent({
|
|
|
|
|
|
// 映射声部ID
|
|
|
state.subjectId = mappingVoicePart(state.subjectId as any, "ORCHESTRA");
|
|
|
- console.log("🚀 ~ state.subjectId:", state.subjectId);
|
|
|
+ // console.log("🚀 ~ state.subjectId:", state.subjectId);
|
|
|
// 是否打击乐
|
|
|
state.isPercussion = state.subjectId == 23 || state.subjectId == 113 || state.subjectId == 121 || isRhythmicExercises();
|
|
|
|
|
@@ -120,6 +121,8 @@ export default defineComponent({
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
(window as any).appName = "colexiu";
|
|
|
Promise.all([sysMusicScoreAccompanimentQueryPage(query.id)]).then((values) => {
|
|
@@ -260,15 +263,20 @@ export default defineComponent({
|
|
|
</div>
|
|
|
)}
|
|
|
|
|
|
- {/* 公用的插件 */}
|
|
|
+ {/* 插件 */}
|
|
|
<div class="plugins-box">
|
|
|
{state.musicRendered && (
|
|
|
<>
|
|
|
+ {/* 设置选段小节速度 */}
|
|
|
<MeasureSpeed />
|
|
|
{/* 统计训练时长 */}
|
|
|
- {storeData.platformType === 'STUDENT' && <RecordingTime />}
|
|
|
+ {storeData.platformType === "STUDENT" && <RecordingTime />}
|
|
|
{/* 单元测验 和 课后训练 */}
|
|
|
- {storeData.platformType === 'STUDENT' && <UnitTest />}
|
|
|
+ {storeData.platformType === "STUDENT" && <UnitTest />}
|
|
|
+ {/* 学生端检测是否是会员 */}
|
|
|
+ {storeData.platformType === "STUDENT" && <CheckStudentVip />}
|
|
|
+ {/* 后台课后训练小节选择 */}
|
|
|
+ {storeData.platformType === "WEB" && <AfterClassTraining />}
|
|
|
</>
|
|
|
)}
|
|
|
</div>
|