Browse Source

课件播放,隐藏title

liushengqiang 1 year ago
parent
commit
e67247051d
1 changed files with 19 additions and 8 deletions
  1. 19 8
      src/page-instrument/header-top/index.tsx

+ 19 - 8
src/page-instrument/header-top/index.tsx

@@ -1,4 +1,13 @@
-import { Transition, computed, defineComponent, onMounted, onUnmounted, reactive, ref, watch } from "vue";
+import {
+	Transition,
+	computed,
+	defineComponent,
+	onMounted,
+	onUnmounted,
+	reactive,
+	ref,
+	watch,
+} from "vue";
 import styles from "./index.module.less";
 
 import iconBack from "./image/icon-back.svg";
@@ -27,7 +36,7 @@ import StudentTop from "../custom-plugins/guide-page/student-top";
 import { HANDLE_WORK_ADD } from "../custom-plugins/work-index";
 import { browser } from "/src/utils";
 import store from "store";
-import "../component/the-modal-tip/index.module.less"
+import "../component/the-modal-tip/index.module.less";
 
 /** 头部数据和方法 */
 export const headTopData = reactive({
@@ -43,7 +52,7 @@ export const headTopData = reactive({
 			// 如果是pc端, 评测模式暂不可用
 			if (state.platform === IPlatform.PC) {
 				showConfirmDialog({
-					className: 'modalTip',
+					className: "modalTip",
 					title: "温馨提示",
 					message: "该功能暂未开放,敬请期待!",
 					showCancelButton: false,
@@ -250,11 +259,11 @@ export default defineComponent({
 				window.close();
 				return;
 			}
-			if ((browInfo.iPhone || browInfo.ios) && query.workRecord){
+			if ((browInfo.iPhone || browInfo.ios) && query.workRecord) {
 				setTimeout(() => {
 					api_back();
-				}, 550)
-				return
+				}, 550);
+				return;
 			}
 			api_back();
 		};
@@ -303,7 +312,7 @@ export default defineComponent({
 
 		// 设置改变触发
 		watch(state.setting, () => {
-			console.log(state.setting, "state.setting")
+			console.log(state.setting, "state.setting");
 			store.set("musicscoresetting", state.setting);
 		});
 
@@ -316,7 +325,9 @@ export default defineComponent({
 					>
 						<img src={iconBack} />
 					</div>
-					<Title class="pcTitle" text={state.examSongName} rightView={false} />
+					{query.iscurseplay === "play" ? null : (
+						<Title class="pcTitle" text={state.examSongName} rightView={false} />
+					)}
 
 					<div class={styles.headRight}>
 						<div