|
@@ -18,8 +18,8 @@ import MusicType from "./music-type";
|
|
|
import { handleNoEndExit } from "../custom-plugins/recording-time";
|
|
|
import { handle_stopFollow } from "../follow-model";
|
|
|
import Camera from "./camera";
|
|
|
-import iconCamera from './image/icon-camera-off.png'
|
|
|
-import iconCameraOn from './image/icon-camera-on.png'
|
|
|
+import iconCamera from "./image/icon-camera-off.png";
|
|
|
+import iconCameraOn from "./image/icon-camera-on.png";
|
|
|
|
|
|
export const headData = reactive({
|
|
|
speedShow: false,
|
|
@@ -92,14 +92,10 @@ export default defineComponent({
|
|
|
|
|
|
/** 指法按钮 */
|
|
|
const fingeringBtn = computed(() => {
|
|
|
- // 没有指法 不显示
|
|
|
- if (!state.fingeringInfo.name) return { display: false, disabled: true };
|
|
|
- // 选择模式 不显示
|
|
|
- if (headData.modeMode) return { display: false, disabled: false };
|
|
|
+ // 没有指法 选择模式 评测模式 跟练模式 不显示
|
|
|
+ if (headData.modeMode || !state.fingeringInfo.name || ["evaluating", "follow"].includes(state.modeType)) return { display: false, disabled: true };
|
|
|
// 音频播放中 禁用
|
|
|
if (state.playState === "play") return { display: true, disabled: true };
|
|
|
- // 评测模式 不显示,跟练模式 不显示
|
|
|
- if (["evaluating", "follow"].includes(state.modeType)) return { display: false, disabled: true };
|
|
|
|
|
|
return {
|
|
|
disabled: false,
|
|
@@ -110,11 +106,9 @@ export default defineComponent({
|
|
|
/** 摄像头按钮 */
|
|
|
const cameraBtn = computed(() => {
|
|
|
// 选择模式 不显示
|
|
|
- if (headData.modeMode) return { display: false, disabled: false };
|
|
|
+ if (headData.modeMode || state.modeType !== "evaluating") return { display: false, disabled: true };
|
|
|
// 音频播放中 禁用
|
|
|
if (state.playState === "play") return { display: true, disabled: true };
|
|
|
- // 评测模式 不显示,跟练模式 不显示
|
|
|
- if (state.modeType !== 'evaluating') return { display: false, disabled: true };
|
|
|
|
|
|
return {
|
|
|
disabled: false,
|
|
@@ -125,11 +119,9 @@ export default defineComponent({
|
|
|
/** 选段按钮 */
|
|
|
const selectBtn = computed(() => {
|
|
|
// 选择模式 不显示
|
|
|
- if (headData.modeMode) return { display: false, disabled: false };
|
|
|
+ if (headData.modeMode || ["evaluating", "follow"].includes(state.modeType)) return { display: false, disabled: true };
|
|
|
// 音频播放中 禁用
|
|
|
if (state.playState === "play") return { display: true, disabled: true };
|
|
|
- // 评测模式 不显示,跟练模式 不显示
|
|
|
- if (["evaluating", "follow"].includes(state.modeType)) return { display: false, disabled: true };
|
|
|
|
|
|
return {
|
|
|
disabled: false,
|
|
@@ -317,8 +309,8 @@ export default defineComponent({
|
|
|
headData.cameraShow = !headData.cameraShow;
|
|
|
}}
|
|
|
>
|
|
|
- <img style={{display: state.setting.camera ? 'none' : ''}} class={styles.iconBtn} src={iconCamera} />
|
|
|
- <img style={{display: state.setting.camera ? '' : 'none'}} class={styles.iconBtn} src={iconCameraOn} />
|
|
|
+ <img style={{ display: state.setting.camera ? "none" : "" }} class={styles.iconBtn} src={iconCamera} />
|
|
|
+ <img style={{ display: state.setting.camera ? "" : "none" }} class={styles.iconBtn} src={iconCameraOn} />
|
|
|
<span>摄像头</span>
|
|
|
</div>
|
|
|
),
|