|
@@ -380,17 +380,20 @@ export default defineComponent({
|
|
<img style={{ display: state.playSource === "music" ? "none" : "" }} class={styles.iconBtn} src={headImg(`background.svg`)} />
|
|
<img style={{ display: state.playSource === "music" ? "none" : "" }} class={styles.iconBtn} src={headImg(`background.svg`)} />
|
|
<span>{state.playSource === "music" ? "原声" : "伴奏"}</span>
|
|
<span>{state.playSource === "music" ? "原声" : "伴奏"}</span>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class={[styles.btn]}
|
|
|
|
- onClick={async () => {
|
|
|
|
- metronomeData.disable = !metronomeData.disable;
|
|
|
|
- metronomeData.metro?.initPlayer();
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- <img style={{ display: metronomeData.disable ? "block" : "none" }} class={styles.iconBtn} src={headImg("tickoff.svg")} />
|
|
|
|
- <img style={{ display: !metronomeData.disable ? "block" : "none" }} class={styles.iconBtn} src={headImg("tickon.svg")} />
|
|
|
|
- <span style={{ whiteSpace: "nowrap" }}>节拍器</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ {
|
|
|
|
+ state.modeType !== "evaluating" &&
|
|
|
|
+ <div
|
|
|
|
+ class={[styles.btn]}
|
|
|
|
+ onClick={async () => {
|
|
|
|
+ metronomeData.disable = !metronomeData.disable;
|
|
|
|
+ metronomeData.metro?.initPlayer();
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ <img style={{ display: metronomeData.disable ? "block" : "none" }} class={styles.iconBtn} src={headImg("tickoff.svg")} />
|
|
|
|
+ <img style={{ display: !metronomeData.disable ? "block" : "none" }} class={styles.iconBtn} src={headImg("tickon.svg")} />
|
|
|
|
+ <span style={{ whiteSpace: "nowrap" }}>节拍器</span>
|
|
|
|
+ </div>
|
|
|
|
+ }
|
|
<div id={state.platform === IPlatform.PC ? "teacherTop-2" : "studnetT-2"} style={{ display: selectBtn.value.display ? "" : "none" }} class={[styles.btn, selectBtn.value.disabled && styles.disabled]} onClick={() => handleChangeSection()}>
|
|
<div id={state.platform === IPlatform.PC ? "teacherTop-2" : "studnetT-2"} style={{ display: selectBtn.value.display ? "" : "none" }} class={[styles.btn, selectBtn.value.disabled && styles.disabled]} onClick={() => handleChangeSection()}>
|
|
<img style={{ display: state.section.length === 0 ? "" : "none" }} class={styles.iconBtn} src={headImg(`section0.svg`)} />
|
|
<img style={{ display: state.section.length === 0 ? "" : "none" }} class={styles.iconBtn} src={headImg(`section0.svg`)} />
|
|
<img style={{ display: state.section.length === 1 ? "" : "none" }} class={styles.iconBtn} src={headImg(`section1.svg`)} />
|
|
<img style={{ display: state.section.length === 1 ? "" : "none" }} class={styles.iconBtn} src={headImg(`section1.svg`)} />
|