liushengqiang 2 years ago
parent
commit
280488ef5a

+ 2 - 2
src/page-orchestra/custom-plugins/unitTest/index.tsx

@@ -55,7 +55,7 @@ export default defineComponent({
 		const getUnitData = async () => {
 			const search = getQuery();
 			if (!search.questionId) return "";
-			handleHide(["tips-step-0", "tips-step-2", "selectionBox"]);
+			handleHide(["tips-step-0", "selectionBox"]);
 			handleStartEvaluat();
 			handleCloseModeMode();
 			try {
@@ -72,7 +72,7 @@ export default defineComponent({
 		const getlessonTrainingData = async () => {
 			const search = getQuery();
 			if (!search.lessonTrainingId) return;
-			handleHide(["tips-step-3", "selectionBox"]);
+			handleHide(["tips-step-4", "selectionBox"]);
 			try {
 				const res: any = await request.post(`/studentLessonTraining/trainingRecord/${search.courseScheduleId}?userId=${storeData.user?.id}`);
 				if (Array.isArray(res?.data?.trainings)) {

+ 2 - 2
src/page-orchestra/main.ts

@@ -13,9 +13,9 @@ import "./theme.css";
 (function () {
 	const u = navigator.userAgent;
 	setStoreData({
-		isApp: u.includes("ORCHESTRAAPPI") || u.includes("ORCHESTRAAPPA") || u.includes("Mac OS X") || /(iPhone|iPad|iPod|iOS)/i.test(u) || u.indexOf("Android") > -1 || u.indexOf("Adr") > -1,
+		isApp: (window as any)?.ORCHESTRA || (window as any).webkit?.messageHandlers?.ORCHESTRA ? true : false,
 		platformApi: u.includes("ORCHESTRATEACHER") ? "/api-teacher" : u.includes("ORCHESTRASTUDENT") ? "/api-student" : "/api-backend",
-		platformType: u.includes("ORCHESTRATEACHER") ? "TEACHER" : u.includes("ORCHESTRASTUDENT") ? "STUDENT" : "WEB",
+		platformType: u.includes("ORCHESTRATEACHER") ? "TEACHER" : u.includes("ORCHESTRASTUDENT") ? "STUDENT" : "STUDENT",//"WEB",
 		proxy: import.meta.env.DEV ? "/orchestra" : ""
 	});
 })();

+ 1 - 0
src/view/evaluating/index.tsx

@@ -136,6 +136,7 @@ export const handlePerformDetection = async () => {
 	if (evaluatingData.checkStep === 0) {
 		// 检测耳机
 		const erji = await checkUseEarphone();
+		console.log("🚀 ~ erji:", erji)
 		evaluatingData.checkStep = 1;
 		if (erji) {
 			handlePerformDetection();